mirror of https://github.com/OpenTTD/OpenTTD
(svn r8917) [0.5] -Codechange (win32): Do not empty the data-path for the installer if you press the 'Back' button.
parent
5bfdc6e75a
commit
cd6d6d32d3
|
@ -311,15 +311,18 @@ NoAbort:
|
||||||
|
|
||||||
ClearErrors
|
ClearErrors
|
||||||
; Now, let's populate $CDDRIVE
|
; 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
|
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."
|
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
|
Goto TruFinish
|
||||||
NoTTD:
|
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."
|
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:
|
TruFinish:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 2" "State" $CDDRIVE ; TTDLX path
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 3" "Text" $AddWinPrePopulate ; Caption
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 3" "Text" $AddWinPrePopulate ; Caption
|
||||||
DoneCD:
|
DoneCD:
|
||||||
; Initialize the dialog *AFTER* we've changed the text otherwise we won't see the changes
|
; Initialize the dialog *AFTER* we've changed the text otherwise we won't see the changes
|
||||||
|
|
Loading…
Reference in New Issue