Old 23rd January 2010, 22:39   #1
ChocJunkie
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 120
Registry plug-in: Search

Hi

I faild using the registry search functionality. But I don't know what I'm doing wrong.
code:
Function INSTALLDISP::_getVideoCardId
Push $R0 # handle of search
Push $R1
Push $R2
Push $R3
Push $R4

# Open registry search
${registry::Open} "${INSTALLDISP::_VideoCardRegKey}" "/V=0 /S=0" $R0
${If} "$R0" == 0
# Error handling
${EndIf}

# Search for ID
${registry::Find} "$R0" $R1 $R2 $R3 $R4
MessageBox MB_OK "Path: $R1 $\n value/key: $r2 $\n string: $R3 $\n type: $R4"

# Close search
${registry::Close} "$R0"

_end:
Pop $R4
Pop $R3
Pop $R2
Pop $R1
Pop $R0
FunctionEnd


I've always get an empty return. That means $R1 is equal $R0, $R1 is equal the options specified as second parameter of the call ("/V=0 /S=0") and $R3 and $R4 are empty.
I tried different keys to search in. The result is always the same.

What am I doing wrong? ^^'

Thank you
CJ
ChocJunkie is offline   Reply With Quote
Old 25th January 2010, 10:27   #2
ChocJunkie
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 120
Ok, it has been my fault. I modificated my Registry plug-in to handle 64 bit registry. Over the weekend, I've tested on a 32 bit OS. Because of that it could not work ... I forgott.
Sorry.
ChocJunkie is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump