Old 29th December 2006, 00:12   #1
soundken
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
soundken is offline   Reply With Quote
Old 29th December 2006, 01:03   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
you dont need double backslashes in registry "path"

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 29th December 2006, 16:07   #3
soundken
Junior Member
 
Join Date: Dec 2006
Posts: 9
That seems to have fixed it, thanks!
soundken is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump