Skip to content
⌘ NSIS Forum Archive

bug in registry, or what's wrong here?

5 posts

Comm@nder21#

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?
Joost Verburg#
Windows is not case sentivive.

Add some message boxes to your code to check what causes the problem.
Comm@nder21#
another thing:
if i !define MUI_FINISHPAGE_TITLE_3LINES, the installer-finish-page is shown correctly with extra space, but the uninstaller-page isnt!
!define MUI_WELCOMEPAGE_TITLE_3LINES works correctly on both installer and uninstaller.
i've defined each one only one time, before all the page-defines.
Joost Verburg#
These a page specific settings, set them before a single page macro (for both install and uninstall).