Windows installer remembers previous install location.
This commit is contained in:
@@ -22,13 +22,15 @@ Name "OpenRA"
|
||||
OutFile "OpenRA.exe"
|
||||
|
||||
InstallDir $PROGRAMFILES\OpenRA
|
||||
InstallDirRegKey HKLM "Software\OpenRA" "InstallDir"
|
||||
|
||||
SetCompressor lzma
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
|
||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
|
||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenRA"
|
||||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
||||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "OpenRA"
|
||||
@@ -38,9 +40,7 @@ Var StartMenuFolder
|
||||
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
;!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
;!insertmacro MUI_UNPAGE_WELCOME
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
!insertmacro MUI_UNPAGE_FINISH
|
||||
@@ -50,6 +50,10 @@ Var StartMenuFolder
|
||||
;***************************
|
||||
;Section Definitions
|
||||
;***************************
|
||||
Section "-Reg" Reg
|
||||
WriteRegStr HKLM "Software\OpenRA" "InstallDir" $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
Section "Client" Client
|
||||
SetOutPath "$INSTDIR"
|
||||
File "${SRCDIR}\OpenRA.Game.exe"
|
||||
@@ -260,7 +264,7 @@ Function ${UN}Clean
|
||||
|
||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
|
||||
DeleteRegKey HKCU "Software\OpenRA"
|
||||
;DeleteRegKey HKCU "Software\OpenRA"
|
||||
FunctionEnd
|
||||
!macroend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user