Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Registry plug-in: Search (http://forums.winamp.com/showthread.php?t=316502)

ChocJunkie 23rd January 2010 21:39

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 25th January 2010 09:27

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.


All times are GMT. The time now is 18:04.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.