bug in registry, or what's wrong here?
hi folks!
i've got problems with my script, using this code:
ReadRegStr $INSTDIR HKLM "SOFTWARE\EA GAMES\Battlefield 1942" "GAMEDIR"
StrCmp "$INSTDIR" "" NoBF 0
IfFileExists "$INSTDIR\BF1942.exe" +2 0
IfFileExists "$INSTDIR\bf1942.exe" 0 NoBF
Goto End
NoBF:
MessageBox MB_OK|MB_ICONSTOP "$(nobf)" IDOK Abort
End:
my problem is, that the messagebox shouldn't apear on my system, but does.
the key exists in my registry, exactly written how i did in the script. also the exe exists. i'm checking it two times, coz i thought the error was caused by case-sensitivity. but it didn't solve it.
any suggestions?