Registry plug-in: Search
Hi :)
I faild using the registry search functionality. But I don't know what I'm doing wrong.
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