|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Posts: 9
|
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
you dont need double backslashes in registry "path"
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2006
Posts: 9
|
That seems to have fixed it, thanks!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|