split INSTALL_PROGRAM_FILES into INSTALL_PROGRAM_LIBRARIES and !ifdef INSTALL_EXECUTABLES
This commit is contained in:
+11
-7
@@ -86,6 +86,7 @@
|
|||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\Program\${PRODUCT_FAMILY}.exe"
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\Program\${PRODUCT_FAMILY}.exe"
|
||||||
!define MUI_FINISHPAGE_RUN_NOTCHECKED
|
!define MUI_FINISHPAGE_RUN_NOTCHECKED
|
||||||
!define MUI_FINISHPAGE_RUN_TEXT "$(TEXT_IO_LAUNCH_THE_GAME)"
|
!define MUI_FINISHPAGE_RUN_TEXT "$(TEXT_IO_LAUNCH_THE_GAME)"
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
@@ -186,7 +187,7 @@ Section "Main Section" SecMain
|
|||||||
AllowSkipFiles off
|
AllowSkipFiles off
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
|
|
||||||
!ifdef INSTALL_PROGRAM_FILES
|
!ifdef INSTALL_PROGRAM_LIBRARIES
|
||||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||||
|
|
||||||
; add registry entries
|
; add registry entries
|
||||||
@@ -304,17 +305,19 @@ Section "Main Section" SecMain
|
|||||||
!ifdef INSTALL_INTERNAL_PCKS
|
!ifdef INSTALL_INTERNAL_PCKS
|
||||||
CreateDirectory "$INSTDIR\pcks"
|
CreateDirectory "$INSTDIR\pcks"
|
||||||
SetOutPath "$INSTDIR\pcks"
|
SetOutPath "$INSTDIR\pcks"
|
||||||
File "pcks\*.*"
|
File /r "pcks\*.*"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\Program"
|
SetOutPath "$INSTDIR\Program"
|
||||||
|
!ifdef INSTALL_EXECUTABLES
|
||||||
File "Program\${PRODUCT_FAMILY}.exe"
|
File "Program\${PRODUCT_FAMILY}.exe"
|
||||||
File "Program\${PRODUCT_FAMILY}.vdi"
|
File "Program\${PRODUCT_FAMILY}.vdi"
|
||||||
File "Program\tools.exe"
|
File "Program\tools.exe"
|
||||||
|
!endif
|
||||||
!ifdef ASSOCIATE_SMZIP
|
!ifdef ASSOCIATE_SMZIP
|
||||||
Call RefreshShellIcons
|
Call RefreshShellIcons
|
||||||
!endif
|
!endif
|
||||||
!ifdef INSTALL_PROGRAM_FILES
|
!ifdef INSTALL_PROGRAM_LIBRARIES
|
||||||
File "Program\mfc71.dll"
|
File "Program\mfc71.dll"
|
||||||
File "Program\msvcr71.dll"
|
File "Program\msvcr71.dll"
|
||||||
File "Program\msvcp71.dll"
|
File "Program\msvcp71.dll"
|
||||||
@@ -440,7 +443,7 @@ FunctionEnd
|
|||||||
|
|
||||||
Function PreInstall
|
Function PreInstall
|
||||||
|
|
||||||
!ifdef INSTALL_PROGRAM_FILES
|
!ifdef INSTALL_PROGRAM_LIBRARIES
|
||||||
; force uninstall of previous version using NSIS
|
; force uninstall of previous version using NSIS
|
||||||
; We need to wait until the uninstaller finishes before continuing, since it's possible
|
; We need to wait until the uninstaller finishes before continuing, since it's possible
|
||||||
; to click the next button again before the uninstaller's window appears and takes focus.
|
; to click the next button again before the uninstaller's window appears and takes focus.
|
||||||
@@ -620,14 +623,15 @@ Section "Uninstall"
|
|||||||
RMDir "$INSTDIR\Data"
|
RMDir "$INSTDIR\Data"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!ifdef INSTALL_EXECUTABLES
|
||||||
Delete "$INSTDIR\Program\${PRODUCT_FAMILY}.exe"
|
Delete "$INSTDIR\Program\${PRODUCT_FAMILY}.exe"
|
||||||
|
Delete "$INSTDIR\Program\${PRODUCT_FAMILY}.vdi"
|
||||||
Delete "$INSTDIR\Program\tools.exe"
|
Delete "$INSTDIR\Program\tools.exe"
|
||||||
Delete "$INSTDIR\Program\mfc71.dll"
|
!endif
|
||||||
!ifdef ASSOCIATE_SMZIP
|
!ifdef ASSOCIATE_SMZIP
|
||||||
Call un.RefreshShellIcons
|
Call un.RefreshShellIcons
|
||||||
!endif
|
!endif
|
||||||
Delete "$INSTDIR\Program\${PRODUCT_FAMILY}.vdi"
|
!ifdef INSTALL_PROGRAM_LIBRARIES
|
||||||
!ifdef INSTALL_PROGRAM_FILES
|
|
||||||
Delete "$INSTDIR\Program\mfc71.dll"
|
Delete "$INSTDIR\Program\mfc71.dll"
|
||||||
Delete "$INSTDIR\Program\msvcr71.dll"
|
Delete "$INSTDIR\Program\msvcr71.dll"
|
||||||
Delete "$INSTDIR\Program\msvcp71.dll"
|
Delete "$INSTDIR\Program\msvcp71.dll"
|
||||||
|
|||||||
Reference in New Issue
Block a user