diff options
author | Jacek Antonelli | 2008-12-09 22:25:37 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-09 22:25:41 -0600 |
commit | 22b861982f2efd5d16097a012627e73b9fb85834 (patch) | |
tree | 6152a84b92c682e271bdd52d46cd1728454f679a /linden/indra/newview/installers/windows/installer_template.nsi | |
parent | Second Life viewer sources 1.22.1-RC (diff) | |
download | meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.zip meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.gz meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.bz2 meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.xz |
Second Life viewer sources 1.22.2-RC
Diffstat (limited to 'linden/indra/newview/installers/windows/installer_template.nsi')
-rw-r--r-- | linden/indra/newview/installers/windows/installer_template.nsi | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/linden/indra/newview/installers/windows/installer_template.nsi b/linden/indra/newview/installers/windows/installer_template.nsi index 01bd98f..db9f565 100644 --- a/linden/indra/newview/installers/windows/installer_template.nsi +++ b/linden/indra/newview/installers/windows/installer_template.nsi | |||
@@ -31,15 +31,27 @@ RequestExecutionLevel admin ; on Vista we must be admin because we write to Prog | |||
31 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 31 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
32 | !include "%%SOURCE%%\installers\windows\lang_de.nsi" | 32 | !include "%%SOURCE%%\installers\windows\lang_de.nsi" |
33 | !include "%%SOURCE%%\installers\windows\lang_en-us.nsi" | 33 | !include "%%SOURCE%%\installers\windows\lang_en-us.nsi" |
34 | !include "%%SOURCE%%\installers\windows\lang_ja.nsi" | ||
35 | !include "%%SOURCE%%\installers\windows\lang_ko.nsi" | ||
36 | !include "%%SOURCE%%\installers\windows\lang_pt-br.nsi" | ||
37 | !include "%%SOURCE%%\installers\windows\lang_fr.nsi" | ||
38 | !include "%%SOURCE%%\installers\windows\lang_es.nsi" | 34 | !include "%%SOURCE%%\installers\windows\lang_es.nsi" |
35 | !include "%%SOURCE%%\installers\windows\lang_fr.nsi" | ||
36 | !include "%%SOURCE%%\installers\windows\lang_ja.nsi" | ||
39 | !include "%%SOURCE%%\installers\windows\lang_it.nsi" | 37 | !include "%%SOURCE%%\installers\windows\lang_it.nsi" |
38 | !include "%%SOURCE%%\installers\windows\lang_ko.nsi" | ||
40 | !include "%%SOURCE%%\installers\windows\lang_nl.nsi" | 39 | !include "%%SOURCE%%\installers\windows\lang_nl.nsi" |
40 | !include "%%SOURCE%%\installers\windows\lang_pt-br.nsi" | ||
41 | !include "%%SOURCE%%\installers\windows\lang_zh.nsi" | 41 | !include "%%SOURCE%%\installers\windows\lang_zh.nsi" |
42 | 42 | ||
43 | # *TODO: Move these into the language files themselves | ||
44 | LangString LanguageCode ${LANG_GERMAN} "de" | ||
45 | LangString LanguageCode ${LANG_ENGLISH} "en" | ||
46 | LangString LanguageCode ${LANG_SPANISH} "es" | ||
47 | LangString LanguageCode ${LANG_FRENCH} "fr" | ||
48 | LangString LanguageCode ${LANG_JAPANESE} "ja" | ||
49 | LangString LanguageCode ${LANG_ITALIAN} "it" | ||
50 | LangString LanguageCode ${LANG_KOREAN} "ko" | ||
51 | LangString LanguageCode ${LANG_DUTCH} "nl" | ||
52 | LangString LanguageCode ${LANG_PORTUGUESEBR} "pt" | ||
53 | LangString LanguageCode ${LANG_SIMPCHINESE} "zh" | ||
54 | |||
43 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 55 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
44 | ;; Tweak for different servers/builds (this placeholder is replaced by viewer_manifest.py) | 56 | ;; Tweak for different servers/builds (this placeholder is replaced by viewer_manifest.py) |
45 | ;; For example: | 57 | ;; For example: |
@@ -79,6 +91,7 @@ Var INSTEXE | |||
79 | Var INSTFLAGS | 91 | Var INSTFLAGS |
80 | Var INSTSHORTCUT | 92 | Var INSTSHORTCUT |
81 | Var COMMANDLINE ; command line passed to this installer, set in .onInit | 93 | Var COMMANDLINE ; command line passed to this installer, set in .onInit |
94 | Var SHORTCUT_LANG_PARAM ; "--set InstallLanguage de", passes language to viewer | ||
82 | 95 | ||
83 | ;;; Function definitions should go before file includes, because calls to | 96 | ;;; Function definitions should go before file includes, because calls to |
84 | ;;; DLLs like LangDLL trigger an implicit file include, so if that call is at | 97 | ;;; DLLs like LangDLL trigger an implicit file include, so if that call is at |
@@ -107,7 +120,7 @@ label_ask_launch: | |||
107 | 120 | ||
108 | label_launch: | 121 | label_launch: |
109 | # Assumes SetOutPath $INSTDIR | 122 | # Assumes SetOutPath $INSTDIR |
110 | Exec '"$INSTDIR\$INSTEXE" $INSTFLAGS' | 123 | Exec '"$INSTDIR\$INSTEXE" $INSTFLAGS $SHORTCUT_LANG_PARAM' |
111 | label_no_launch: | 124 | label_no_launch: |
112 | Pop $R0 | 125 | Pop $R0 |
113 | FunctionEnd | 126 | FunctionEnd |
@@ -725,13 +738,15 @@ Call RemoveOldReleaseNotes | |||
725 | ;; This placeholder is replaced by the complete list of all the files in the installer, by viewer_manifest.py | 738 | ;; This placeholder is replaced by the complete list of all the files in the installer, by viewer_manifest.py |
726 | %%INSTALL_FILES%% | 739 | %%INSTALL_FILES%% |
727 | 740 | ||
741 | # Pass the installer's language to the client to use as a default | ||
742 | StrCpy $SHORTCUT_LANG_PARAM "--set InstallLanguage $(LanguageCode)" | ||
728 | 743 | ||
729 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 744 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
730 | ; Shortcuts in start menu | 745 | ; Shortcuts in start menu |
731 | CreateDirectory "$SMPROGRAMS\$INSTSHORTCUT" | 746 | CreateDirectory "$SMPROGRAMS\$INSTSHORTCUT" |
732 | SetOutPath "$INSTDIR" | 747 | SetOutPath "$INSTDIR" |
733 | CreateShortCut "$SMPROGRAMS\$INSTSHORTCUT\$INSTSHORTCUT.lnk" \ | 748 | CreateShortCut "$SMPROGRAMS\$INSTSHORTCUT\$INSTSHORTCUT.lnk" \ |
734 | "$INSTDIR\$INSTEXE" "$INSTFLAGS" | 749 | "$INSTDIR\$INSTEXE" "$INSTFLAGS $SHORTCUT_LANG_PARAM" |
735 | 750 | ||
736 | 751 | ||
737 | WriteINIStr "$SMPROGRAMS\$INSTSHORTCUT\SL Create Account.url" \ | 752 | WriteINIStr "$SMPROGRAMS\$INSTSHORTCUT\SL Create Account.url" \ |
@@ -749,8 +764,10 @@ CreateShortCut "$SMPROGRAMS\$INSTSHORTCUT\Uninstall $INSTSHORTCUT.lnk" \ | |||
749 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 764 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
750 | ; Other shortcuts | 765 | ; Other shortcuts |
751 | SetOutPath "$INSTDIR" | 766 | SetOutPath "$INSTDIR" |
752 | CreateShortCut "$DESKTOP\$INSTSHORTCUT.lnk" "$INSTDIR\$INSTEXE" "$INSTFLAGS" | 767 | CreateShortCut "$DESKTOP\$INSTSHORTCUT.lnk" \ |
753 | CreateShortCut "$INSTDIR\$INSTSHORTCUT.lnk" "$INSTDIR\$INSTEXE" "$INSTFLAGS" | 768 | "$INSTDIR\$INSTEXE" "$INSTFLAGS $SHORTCUT_LANG_PARAM" |
769 | CreateShortCut "$INSTDIR\$INSTSHORTCUT.lnk" \ | ||
770 | "$INSTDIR\$INSTEXE" "$INSTFLAGS $SHORTCUT_LANG_PARAM" | ||
754 | CreateShortCut "$INSTDIR\Uninstall $INSTSHORTCUT.lnk" \ | 771 | CreateShortCut "$INSTDIR\Uninstall $INSTSHORTCUT.lnk" \ |
755 | '"$INSTDIR\uninst.exe"' '' | 772 | '"$INSTDIR\uninst.exe"' '' |
756 | 773 | ||