installer edits

This commit is contained in:
AJ Kelly
2010-06-27 18:49:27 -05:00
parent eefa1dd6c3
commit d4c2a893c7
+40 -23
View File
@@ -4,7 +4,7 @@
; hacked by AJ for sm-ssc ; hacked by AJ for sm-ssc
; NOTE: this .NSI script is designed for NSIS v2.0+ ; NOTE: this .NSI script is designed for NSIS v2.0+
;-------------------------------- ;-------------------------------------------------------------------------------
;Includes ;Includes
!include "MUI.nsh" ; Modern UI !include "MUI.nsh" ; Modern UI
@@ -15,7 +15,7 @@
; the title screen version text. ; the title screen version text.
!include "src\ProductInfo.inc" !include "src\ProductInfo.inc"
;-------------------------------- ;-------------------------------------------------------------------------------
;General ;General
!system "echo Compressing executables. This may take a moment ..." ignore !system "echo Compressing executables. This may take a moment ..." ignore
@@ -51,7 +51,7 @@
InstallColors /windows InstallColors /windows
InstProgressFlags smooth InstProgressFlags smooth
;-------------------------------- ;-------------------------------------------------------------------------------
;Interface Settings ;Interface Settings
!define MUI_HEADERIMAGE !define MUI_HEADERIMAGE
@@ -61,7 +61,7 @@
!define MUI_ICON "Installer\install.ico" !define MUI_ICON "Installer\install.ico"
!define MUI_UNICON "Installer\uninstall.ico" !define MUI_UNICON "Installer\uninstall.ico"
;-------------------------------- ;-------------------------------------------------------------------------------
;Language Selection Dialog Settings ;Language Selection Dialog Settings
;Remember the installer language ;Remember the installer language
@@ -69,7 +69,7 @@
!define MUI_LANGDLL_REGISTRY_KEY "Software\${PRODUCT_ID}" !define MUI_LANGDLL_REGISTRY_KEY "Software\${PRODUCT_ID}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
;-------------------------------- ;-------------------------------------------------------------------------------
;Pages ;Pages
!ifdef SHOW_AUTORUN !ifdef SHOW_AUTORUN
@@ -94,7 +94,7 @@
!insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES !insertmacro MUI_UNPAGE_INSTFILES
;-------------------------------- ;-------------------------------------------------------------------------------
;Languages ;Languages
!insertmacro MUI_LANGUAGE "English" # first language is the default language !insertmacro MUI_LANGUAGE "English" # first language is the default language
@@ -153,7 +153,7 @@
!system '"Program\StepMania.exe" --ExportNsisStrings' !system '"Program\StepMania.exe" --ExportNsisStrings'
!include "nsis_strings_temp.inc" !include "nsis_strings_temp.inc"
;-------------------------------- ;-------------------------------------------------------------------------------
;Reserve Files ;Reserve Files
;These files should be inserted before other files in the data block ;These files should be inserted before other files in the data block
@@ -162,7 +162,7 @@
!insertmacro MUI_RESERVEFILE_LANGDLL !insertmacro MUI_RESERVEFILE_LANGDLL
;-------------------------------- ;-------------------------------------------------------------------------------
;Utility Functions ;Utility Functions
!ifdef ASSOCIATE_SMZIP !ifdef ASSOCIATE_SMZIP
!define SHCNE_ASSOCCHANGED 0x08000000 !define SHCNE_ASSOCCHANGED 0x08000000
@@ -180,7 +180,7 @@ Function un.RefreshShellIcons
FunctionEnd FunctionEnd
!endif !endif
;-------------------------------- ;-------------------------------------------------------------------------------
;Installer Sections ;Installer Sections
Section "Main Section" SecMain Section "Main Section" SecMain
@@ -272,7 +272,7 @@ Section "Main Section" SecMain
RMDir /r "$INSTDIR\NoteSkins\dance\Delta" RMDir /r "$INSTDIR\NoteSkins\dance\Delta"
; the "midi-*" noteskin series was formerly known as just "midi". ; the "midi-*" noteskin series was formerly known as just "midi".
RMDir /r "$INSTDIR\NoteSkins\dance\midi" RMDir /r "$INSTDIR\NoteSkins\dance\midi"
; we may also want to remove the new ones? ; we may also want to remove the new ones.
RMDir /r "$INSTDIR\NoteSkins\dance\midi-note" RMDir /r "$INSTDIR\NoteSkins\dance\midi-note"
RMDir /r "$INSTDIR\NoteSkins\dance\midi-solo" RMDir /r "$INSTDIR\NoteSkins\dance\midi-solo"
RMDir /r "$INSTDIR\NoteSkins\dance\midi-vivid" RMDir /r "$INSTDIR\NoteSkins\dance\midi-vivid"
@@ -282,6 +282,8 @@ Section "Main Section" SecMain
; pump ; pump
RMDir /r "$INSTDIR\NoteSkins\pump\default" RMDir /r "$INSTDIR\NoteSkins\pump\default"
RMDir /r "$INSTDIR\NoteSkins\pump\simple" RMDir /r "$INSTDIR\NoteSkins\pump\simple"
; kb7
RMDir /r "$INSTDIR\NoteSkins\kb7\default"
; lights ; lights
RMDir /r "$INSTDIR\NoteSkins\lights\default" RMDir /r "$INSTDIR\NoteSkins\lights\default"
SetOutPath "$INSTDIR\NoteSkins" SetOutPath "$INSTDIR\NoteSkins"
@@ -309,6 +311,11 @@ Section "Main Section" SecMain
File /r /x CVS /x .svn "NoteSkins\pump\simple" File /r /x CVS /x .svn "NoteSkins\pump\simple"
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
; install kb7 noteskins
SetOutPath "$INSTDIR\NoteSkins\kb7"
File /r /x CVS /x .svn "NoteSkins\kb7\default"
SetOutPath "$INSTDIR"
; install lights noteskin ; install lights noteskin
SetOutPath "$INSTDIR\NoteSkins\lights" SetOutPath "$INSTDIR\NoteSkins\lights"
File /r /x CVS /x .svn "NoteSkins\lights\default" File /r /x CVS /x .svn "NoteSkins\lights\default"
@@ -394,9 +401,10 @@ Section "Main Section" SecMain
; xxx: StepMania.exe ; xxx: StepMania.exe
; xxx: make desktop shortcut an option ; xxx: make desktop shortcut an option
!ifdef MAKE_DESKTOP_SHORTCUT !ifdef MAKE_DESKTOP_SHORTCUT
CreateShortCut "$DESKTOP\$(TEXT_IO_RUN).lnk" "$INSTDIR\Program\StepMania.exe" CreateShortCut "$DESKTOP\$(TEXT_IO_RUN).lnk" "$INSTDIR\Program\StepMania-SSE2.exe"
!endif !endif
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\$(TEXT_IO_RUN).lnk" "$INSTDIR\Program\StepMania.exe" CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\$(TEXT_IO_RUN).lnk" "$INSTDIR\Program\StepMania-SSE2.exe"
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\$(TEXT_IO_RUN_WITHOUT_SSE2).lnk" "$INSTDIR\Program\StepMania.exe"
!ifdef MAKE_OPEN_PROGRAM_FOLDER_SHORTCUT !ifdef MAKE_OPEN_PROGRAM_FOLDER_SHORTCUT
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\$(TEXT_IO_OPEN_PROGRAM_FOLDER).lnk" "$WINDIR\explorer.exe" "$INSTDIR\" CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\$(TEXT_IO_OPEN_PROGRAM_FOLDER).lnk" "$WINDIR\explorer.exe" "$INSTDIR\"
!endif !endif
@@ -421,7 +429,7 @@ Section "Main Section" SecMain
SectionEnd SectionEnd
;-------------------------------- ;-------------------------------------------------------------------------------
;Installer Functions ;Installer Functions
!ifdef SHOW_AUTORUN !ifdef SHOW_AUTORUN
@@ -608,7 +616,7 @@ Function .onInit
FunctionEnd FunctionEnd
;-------------------------------- ;-------------------------------------------------------------------------------
;Uninstaller Section ;Uninstaller Section
; todo: update big time ; todo: update big time
@@ -655,17 +663,26 @@ Section "Uninstall"
RMDir /r "$INSTDIR\NoteSkins\common\default" RMDir /r "$INSTDIR\NoteSkins\common\default"
RMDir "$INSTDIR\NoteSkins\common" RMDir "$INSTDIR\NoteSkins\common"
RMDir /r "$INSTDIR\NoteSkins\dance\default" RMDir /r "$INSTDIR\NoteSkins\dance\default"
RMDir /r "$INSTDIR\NoteSkins\dance\flat" RMDir /r "$INSTDIR\NoteSkins\dance\Delta"
RMDir /r "$INSTDIR\NoteSkins\dance\gamma" RMDir /r "$INSTDIR\NoteSkins\dance\midi-note"
RMDir /r "$INSTDIR\NoteSkins\dance\note" RMDir /r "$INSTDIR\NoteSkins\dance\midi-routine-p1"
RMDir /r "$INSTDIR\NoteSkins\dance\solo" RMDir /r "$INSTDIR\NoteSkins\dance\midi-routine-p2"
RMDir /r "$INSTDIR\NoteSkins\dance\midi-solo"
RMDir /r "$INSTDIR\NoteSkins\dance\midi-vivid"
RMDir /r "$INSTDIR\NoteSkins\dance\retro"
RMDir "$INSTDIR\NoteSkins\dance" RMDir "$INSTDIR\NoteSkins\dance"
RMDir /r "$INSTDIR\NoteSkins\pump\classic"
RMDir /r "$INSTDIR\NoteSkins\pump\default" RMDir /r "$INSTDIR\NoteSkins\pump\default"
RMDir /r "$INSTDIR\NoteSkins\pump\simple"
RMDir "$INSTDIR\NoteSkins\pump" RMDir "$INSTDIR\NoteSkins\pump"
RMDir /r "$INSTDIR\NoteSkins\para\default"
RMDir "$INSTDIR\NoteSkins\para" RMDir /r "$INSTDIR\NoteSkins\kb7\default"
RMDir "$INSTDIR\NoteSkins" RMDir "$INSTDIR\NoteSkins\kb7"
; we don't currently install para noteskins
;RMDir /r "$INSTDIR\NoteSkins\para\default"
;RMDir "$INSTDIR\NoteSkins\para"
;RMDir "$INSTDIR\NoteSkins"
RMDir /r "$INSTDIR\BackgroundEffects" RMDir /r "$INSTDIR\BackgroundEffects"
@@ -732,7 +749,7 @@ Section "Uninstall"
SectionEnd SectionEnd
;-------------------------------- ;-------------------------------------------------------------------------------
;Uninstaller Functions ;Uninstaller Functions
Function un.onInit Function un.onInit