Skip to content
⌘ NSIS Forum Archive

ReadRegStr works sometimes ?

3 posts

soundken#

ReadRegStr works sometimes ?

I perform the following registry read to get the iTunes program files folder location:

ReadRegStr $iTunesFolder HKCR "Applications\\iTunes.exe\\DefaultIcon" ""

Sometimes I get a blank value in $iTunesFolder and sometimes I get the real value that's in the registry.

This will be on the same machine in consecutive runs of the installer.

I put a MessageBox in right after the call to see what I get, this is how I know that it is blank sometimes.

Has anyone had intermittent problems like this reading the registry?

Thanks,
Ken