aboutsummaryrefslogtreecommitdiffstats
path: root/installer/UltraStar Deluxe.nsi
diff options
context:
space:
mode:
authorcanni0 <canni0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-03 16:00:23 +0000
committercanni0 <canni0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-03 16:00:23 +0000
commitf8df3baf3415fbea2c56eaebca2def446c15c71b (patch)
treef95a8ec049b000c812e9bf6d63729bebcb5a1a29 /installer/UltraStar Deluxe.nsi
parent461b900dfcab9a702c6b15cfe0e7d19150feb6f0 (diff)
downloadusdx-f8df3baf3415fbea2c56eaebca2def446c15c71b.tar.gz
usdx-f8df3baf3415fbea2c56eaebca2def446c15c71b.tar.xz
usdx-f8df3baf3415fbea2c56eaebca2def446c15c71b.zip
- Fixed Welcome Page
- Added Sections and LangStrings - Exported and merged language files for easier multi language support git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1431 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'installer/UltraStar Deluxe.nsi')
-rw-r--r--installer/UltraStar Deluxe.nsi108
1 files changed, 95 insertions, 13 deletions
diff --git a/installer/UltraStar Deluxe.nsi b/installer/UltraStar Deluxe.nsi
index 59754466..78e448fc 100644
--- a/installer/UltraStar Deluxe.nsi
+++ b/installer/UltraStar Deluxe.nsi
@@ -24,8 +24,6 @@
!include "${path_settings}\GameExplorer.nsh"
!include "${path_settings}\functions.nsh"
-
-
; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
; Export Settings
; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
@@ -57,9 +55,6 @@ OutFile "ultrastardx-${version}-installer-full.exe"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${path_images}\${img_side}"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${path_images}\${img_side}"
-; Settings:
-
-
; Abort Warnings:
!define MUI_ABORTWARNING
@@ -74,6 +69,12 @@ OutFile "ultrastardx-${version}-installer-full.exe"
; Pages Installation Routine Settings
; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
+; Welcome Page:
+
+!define MUI_WELCOMEPAGE_TITLE_3LINES
+!define MUI_WELCOMEPAGE_TITLE "$(page_welcome_title)"
+!define MUI_WELCOMEPAGE_TEXT "$(page_welcome_txt)"
+
; License Page:
!define MUI_LICENSEPAGE_RADIOBUTTONS
@@ -202,7 +203,7 @@ ${EndIf}
WriteUninstaller "$INSTDIR\Uninstall.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "${p_name}"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "${name}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
@@ -248,12 +249,12 @@ SectionEnd
; Steven Dunston - Northern Star
;
-Section /o "Joshua Morin - On the run" g2Section2
+Section /o "Joshua Morin - On The Run" g2Section2
; AddSize 2200
SetOverwrite try
SetOutPath "$INSTDIR"
- CreateDirectory "$INSTDIR\Songs\Joshua Morin - On the run"
- SetOutPath "$INSTDIR\Songs\Joshua Morin - On the run\"
+ CreateDirectory "$INSTDIR\Songs\Joshua Morin - On The Run"
+ SetOutPath "$INSTDIR\Songs\Joshua Morin - On The Run\"
; Download song:
NSISdl::download /TIMEOUT=30000 ${download_song3} $TEMP\Song-On-the-run.zip
@@ -262,7 +263,7 @@ Section /o "Joshua Morin - On the run" g2Section2
StrCmp $R0 "success" dlok
MessageBox MB_OK|MB_ICONEXCLAMATION "Download Error, click OK to Continue" /SD IDOK
dlok:
- nsisunz::Unzip "$TEMP\Song-On-the-run.zip" "$INSTDIR\Songs\Joshua Morin - On the run\"
+ nsisunz::Unzip "$TEMP\Song-On-the-run.zip" "$INSTDIR\Songs\Joshua Morin - On The Run\"
Delete "$TEMP\Song-On-the-run.zip"
@@ -322,7 +323,7 @@ SectionGroupEnd
SectionGroup $(name_section3) Section3
- Section "Orange" g3Section1
+ Section /o "Orange" g3Section1
; AddSize 700
; Download theme orange:
@@ -340,7 +341,7 @@ SectionGroup $(name_section3) Section3
SectionEnd
- Section "Streetlight" g3Section2
+ Section /o "Streetlight" g3Section2
; AddSize 1000
; Download theme Streetlight:
@@ -358,7 +359,7 @@ SectionEnd
SectionEnd
- Section "Vistar" g3Section3
+ Section /o "Vistar" g3Section3
; AddSize 1000
; Download theme Vistar:
@@ -377,6 +378,63 @@ SectionEnd
SectionEnd
+ Section /o "BlueSensation" g3Section4
+; AddSize 1000
+
+; Download theme BlueSensation:
+
+ NSISdl::download /TIMEOUT=30000 ${download_theme4} $TEMP\Theme-BlueSensation.zip
+
+ Pop $R0 ;Get the return value
+ StrCmp $R0 "success" dlok
+ MessageBox MB_OK|MB_ICONEXCLAMATION "Download Error, click OK to Continue" /SD IDOK
+ dlok:
+ nsisunz::Unzip "$TEMP\Theme-BlueSensation.zip" "$INSTDIR\"
+
+ Delete "$TEMP\Theme-BlueSensation.zip"
+
+ SetOutPath "$INSTDIR"
+
+SectionEnd
+
+ Section /o "WiiStar" g3Section5
+; AddSize 1000
+
+; Download theme WiiStar:
+
+ NSISdl::download /TIMEOUT=30000 ${download_theme5} $TEMP\Theme-WiiStar.zip
+
+ Pop $R0 ;Get the return value
+ StrCmp $R0 "success" dlok
+ MessageBox MB_OK|MB_ICONEXCLAMATION "Download Error, click OK to Continue" /SD IDOK
+ dlok:
+ nsisunz::Unzip "$TEMP\Theme-WiiStar.zip" "$INSTDIR\"
+
+ Delete "$TEMP\Theme-WiiStar.zip"
+
+ SetOutPath "$INSTDIR"
+
+SectionEnd
+
+ Section /o "iStar" g3Section6
+; AddSize 1000
+
+; Download theme iStar:
+
+ NSISdl::download /TIMEOUT=30000 ${download_theme6} $TEMP\Theme-iStar.zip
+
+ Pop $R0 ;Get the return value
+ StrCmp $R0 "success" dlok
+ MessageBox MB_OK|MB_ICONEXCLAMATION "Download Error, click OK to Continue" /SD IDOK
+ dlok:
+ nsisunz::Unzip "$TEMP\Theme-iStar.zip" "$INSTDIR\"
+
+ Delete "$TEMP\Theme-iStar.zip"
+
+ SetOutPath "$INSTDIR"
+
+SectionEnd
+
SectionGroupEnd
;------------------------------------
@@ -403,6 +461,30 @@ ${EndIf}
SectionEnd
; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
+; Section Descriptions
+; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
+
+
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3)
+
+ !insertmacro MUI_DESCRIPTION_TEXT ${g2Section1} $(DESC_g2Section1)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g2Section2} $(DESC_g2Section2)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g2Section3} $(DESC_g2Section3)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g2Section4} $(DESC_g2Section4)
+
+ !insertmacro MUI_DESCRIPTION_TEXT ${g3Section1} $(DESC_g3Section1)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g3Section2} $(DESC_g3Section2)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g3Section3} $(DESC_g3Section3)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g3Section4} $(DESC_g3Section4)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g3Section5} $(DESC_g3Section5)
+ !insertmacro MUI_DESCRIPTION_TEXT ${g3Section6} $(DESC_g3Section6)
+
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
; Language Support
; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~