radmonius
18th November 2006 16:48 UTC
Choose directory if Registry entry does not Exists
HI All,
I am trying to create an installer, but I need to only display the choose directory dialog if the registry directory entry does not exists or is not valid... I have not been successful in my efforts to do this. Can anyone give me a hand?
Thanks,
Radmonius
radmonius
18th November 2006 20:31 UTC
OK.. I figured it out...
I check for the empty string in a function and skip the directory page if the $InstallDir Variable has something in it
Afrow UK
18th November 2006 21:05 UTC
You should do checks... first check if $INSTDIR is empty "" with StrCmp then check it exists with IfFileExists "$INSTDIR\*.*"
-Stu