Archive: bug in registry, or what's wrong here?


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?

Windows is not case sentivive.

Add some message boxes to your code to check what causes the problem.


found the failure :)
wrong jump in later script.


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.


These a page specific settings, set them before a single page macro (for both install and uninstall).