Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ReadRegStr works sometimes ? (http://forums.winamp.com/showthread.php?t=262638)

soundken 29th December 2006 00:12

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

Anders 29th December 2006 01:03

you dont need double backslashes in registry "path"

soundken 29th December 2006 16:07

That seems to have fixed it, thanks!


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.