Thread: Registry plugin
View Single Post
Old 15th January 2009, 17:45   #133
groove1963
Junior Member
 
Join Date: Jan 2009
Posts: 6
Hi,

I have a strange problem with a "registry::find" in an installer which at the moment only seems to occur when the installer is used on an iMac (running Windows XP).

The "registry::find" is using 100% CPU, memory consumption is going up to 1 GB, then back down to about 15 MB, but the call never returns to the main code.

The parameters of the failing call to "registry::find" are:
  • 2190896
  • SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 024 Name microsoft enhanced rsa and aes cryptographic provider (prototype)
  • REG_SZ

Here is the code fragment using the registry find (it is scanning the registry for USB 2.0 high speed controllers):
code:

${registry::Open} "HKEY_LOCAL_MACHINE" "/K=0 /V=1 /S=1 /NI='enhanced' /T=REG_SZ" $0
${registry::Find} $0 $1 $2 $3 $4
${While} $4 != ""
${StrCase} $3 "$3" "L"
${StrLoc} $5 $3 "controller" ">"
${If} $5 != ""
${StrLoc} $5 $3 "usb" ">"
${If} $5 != ""
StrCpy $UsbEnhancedController $3
${ExitWhile}
${EndIf}
${EndIf}
${registry::Find} $0 $1 $2 $3 $4
${EndWhile}

${registry::Close} $0
${registry::Unload}



Any suggestions?

- Chris
groove1963 is offline   Reply With Quote