diff -r 61bfaa6036eb -r 26572e97b611 os/win32/installer/install.nsi --- a/os/win32/installer/install.nsi Tue Feb 27 15:29:11 2007 +0000 +++ b/os/win32/installer/install.nsi Tue Feb 27 15:51:52 2007 +0000 @@ -311,15 +311,18 @@ ClearErrors ; Now, let's populate $CDDRIVE - ReadRegStr $CDDRIVE HKLM "SOFTWARE\Fish Technology Group\Transport Tycoon Deluxe" "HDPath" + ReadRegStr $R0 HKLM "SOFTWARE\Fish Technology Group\Transport Tycoon Deluxe" "HDPath" IfErrors NoTTD + StrCmp $CDDRIVE "" 0 Populated + StrCpy $CDDRIVE $R0 +Populated: StrCpy $AddWinPrePopulate "Setup has detected your TTD folder. Don't change the folder. Simply press Next." - !insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 2" "State" $CDDRIVE ; TTDLX path Goto TruFinish NoTTD: StrCpy $AddWinPrePopulate "Setup couldn't find TTD. Please enter the path where the graphics files from TTD are stored and press Next to continue." TruFinish: ClearErrors + !insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 2" "State" $CDDRIVE ; TTDLX path !insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 3" "Text" $AddWinPrePopulate ; Caption DoneCD: ; Initialize the dialog *AFTER* we've changed the text otherwise we won't see the changes