2004-11-27 14:50:43 +00:00
|
|
|
;NSIS Modern User Interface
|
2003-05-25 20:21:21 +00:00
|
|
|
;Multilingual Example Script
|
2002-08-29 10:31:13 +00:00
|
|
|
;Written by Joost Verburg
|
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Include Modern UI
|
2002-11-04 11:19:21 +00:00
|
|
|
|
2008-01-27 17:24:40 +00:00
|
|
|
!include "MUI2.nsh"
|
2002-08-29 10:31:13 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
2004-02-06 23:01:57 +00:00
|
|
|
;General
|
2002-08-29 10:31:13 +00:00
|
|
|
|
2004-02-06 23:01:57 +00:00
|
|
|
;Name and file
|
2004-11-27 14:50:43 +00:00
|
|
|
Name "Modern UI Test"
|
2003-01-09 16:49:11 +00:00
|
|
|
OutFile "MultiLanguage.exe"
|
2002-12-24 22:38:06 +00:00
|
|
|
|
2004-01-07 19:21:00 +00:00
|
|
|
;Default installation folder
|
2008-02-04 01:35:09 +00:00
|
|
|
InstallDir "$LOCALAPPDATA\Modern UI Test"
|
2003-03-09 22:38:13 +00:00
|
|
|
|
2004-01-07 19:21:00 +00:00
|
|
|
;Get installation folder from registry if available
|
2003-09-09 16:06:37 +00:00
|
|
|
InstallDirRegKey HKCU "Software\Modern UI Test" ""
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2008-02-04 01:35:09 +00:00
|
|
|
;Request application privileges for Windows Vista
|
2008-01-27 17:24:40 +00:00
|
|
|
RequestExecutionLevel user
|
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
;--------------------------------
|
2003-10-08 15:28:44 +00:00
|
|
|
;Interface Settings
|
2002-12-24 22:38:06 +00:00
|
|
|
|
2002-10-13 18:28:38 +00:00
|
|
|
!define MUI_ABORTWARNING
|
2002-12-24 22:38:06 +00:00
|
|
|
|
2010-02-06 13:19:47 +00:00
|
|
|
;Show all languages, despite user's codepage
|
|
|
|
!define MUI_LANGDLL_ALLLANGUAGES
|
|
|
|
|
2003-10-08 18:00:36 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Language Selection Dialog Settings
|
|
|
|
|
|
|
|
;Remember the installer language
|
|
|
|
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
|
|
|
|
!define MUI_LANGDLL_REGISTRY_KEY "Software\Modern UI Test"
|
|
|
|
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
|
|
|
|
|
2003-09-04 18:42:21 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Pages
|
|
|
|
|
2006-11-13 14:25:27 +00:00
|
|
|
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
|
2003-09-04 18:42:21 +00:00
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Languages
|
2002-10-08 09:29:03 +00:00
|
|
|
|
2006-11-13 14:25:27 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "English" ;first language is the default language
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "French"
|
|
|
|
!insertmacro MUI_LANGUAGE "German"
|
|
|
|
!insertmacro MUI_LANGUAGE "Spanish"
|
2007-07-05 15:59:49 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "SpanishInternational"
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "SimpChinese"
|
2003-07-07 14:08:17 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "TradChinese"
|
2003-03-09 18:55:57 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Japanese"
|
|
|
|
!insertmacro MUI_LANGUAGE "Korean"
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Italian"
|
|
|
|
!insertmacro MUI_LANGUAGE "Dutch"
|
2003-01-09 16:49:11 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Danish"
|
2003-04-28 21:06:16 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Swedish"
|
2003-10-17 20:07:03 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Norwegian"
|
2006-07-30 13:02:38 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "NorwegianNynorsk"
|
2003-10-16 22:11:10 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Finnish"
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Greek"
|
|
|
|
!insertmacro MUI_LANGUAGE "Russian"
|
2003-05-25 20:21:21 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Portuguese"
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "PortugueseBR"
|
2003-01-16 12:23:09 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Polish"
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Ukrainian"
|
2002-11-19 19:06:46 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Czech"
|
2003-01-16 12:23:09 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Slovak"
|
2003-03-09 19:07:22 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Croatian"
|
2002-12-03 19:57:32 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Bulgarian"
|
2003-01-16 12:23:09 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Hungarian"
|
2002-12-14 00:15:41 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Thai"
|
2002-12-16 16:41:53 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Romanian"
|
2004-01-24 22:54:20 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Latvian"
|
2003-01-06 11:37:01 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Macedonian"
|
2003-07-18 15:27:16 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Estonian"
|
2003-02-22 10:59:51 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Turkish"
|
2003-04-07 18:05:12 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Lithuanian"
|
2003-10-16 22:11:10 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Slovenian"
|
2003-07-07 14:08:17 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Serbian"
|
2004-08-13 23:29:42 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "SerbianLatin"
|
2003-10-16 22:11:10 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Arabic"
|
2004-01-31 13:35:28 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Farsi"
|
2003-10-16 22:11:10 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Hebrew"
|
2004-01-26 16:27:08 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Indonesian"
|
2004-08-13 23:29:42 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Mongolian"
|
|
|
|
!insertmacro MUI_LANGUAGE "Luxembourgish"
|
2004-10-11 14:54:18 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Albanian"
|
2005-02-11 14:08:43 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Breton"
|
2005-02-17 19:31:37 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Belarusian"
|
2005-02-17 20:38:10 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Icelandic"
|
2005-08-09 15:30:39 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Malay"
|
2005-06-30 19:23:30 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Bosnian"
|
2005-07-21 16:31:48 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Kurdish"
|
2006-10-28 20:07:48 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Irish"
|
|
|
|
!insertmacro MUI_LANGUAGE "Uzbek"
|
2007-02-20 20:21:56 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Galician"
|
2007-04-12 21:56:55 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Afrikaans"
|
2007-08-17 16:51:50 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Catalan"
|
2009-01-31 16:26:46 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Esperanto"
|
2010-02-06 13:19:47 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "Asturian"
|
2002-08-29 10:31:13 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Reserve Files
|
2002-11-04 11:19:21 +00:00
|
|
|
|
2006-11-13 14:25:27 +00:00
|
|
|
;If you are using solid compression, files that are required before
|
|
|
|
;the actual installation should be stored first in the data block,
|
|
|
|
;because this will make your installer start faster.
|
2004-01-07 19:21:00 +00:00
|
|
|
|
2002-12-15 21:43:38 +00:00
|
|
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2002-08-29 10:31:13 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Installer Sections
|
|
|
|
|
2003-06-10 19:32:00 +00:00
|
|
|
Section "Dummy Section" SecDummy
|
2002-08-29 10:31:13 +00:00
|
|
|
|
|
|
|
SetOutPath "$INSTDIR"
|
2003-06-10 19:32:00 +00:00
|
|
|
|
2004-02-06 23:01:57 +00:00
|
|
|
;ADD YOUR OWN FILES HERE...
|
2002-10-17 21:53:26 +00:00
|
|
|
|
2004-01-07 19:21:00 +00:00
|
|
|
;Store installation folder
|
2003-09-09 16:06:37 +00:00
|
|
|
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
|
2002-10-08 18:06:22 +00:00
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
;Create uninstaller
|
2002-11-09 17:58:22 +00:00
|
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2002-08-29 10:31:13 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Installer Functions
|
|
|
|
|
|
|
|
Function .onInit
|
|
|
|
|
2003-03-09 22:38:13 +00:00
|
|
|
!insertmacro MUI_LANGDLL_DISPLAY
|
2002-08-29 10:31:13 +00:00
|
|
|
|
|
|
|
FunctionEnd
|
|
|
|
|
2002-11-03 13:21:09 +00:00
|
|
|
;--------------------------------
|
2002-11-04 11:19:21 +00:00
|
|
|
;Descriptions
|
2002-08-29 10:31:13 +00:00
|
|
|
|
2004-01-07 19:21:00 +00:00
|
|
|
;USE A LANGUAGE STRING IF YOU WANT YOUR DESCRIPTIONS TO BE LANGAUGE SPECIFIC
|
2003-06-10 19:32:00 +00:00
|
|
|
|
2004-01-07 19:21:00 +00:00
|
|
|
;Assign descriptions to sections
|
2003-09-04 18:42:21 +00:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
2003-10-16 22:11:10 +00:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} "A test section."
|
2003-09-04 18:42:21 +00:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
2004-01-07 19:21:00 +00:00
|
|
|
|
2002-10-17 21:53:26 +00:00
|
|
|
|
2002-08-29 10:31:13 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Uninstaller Section
|
|
|
|
|
|
|
|
Section "Uninstall"
|
|
|
|
|
2004-02-06 23:01:57 +00:00
|
|
|
;ADD YOUR OWN FILES HERE...
|
2002-08-29 10:31:13 +00:00
|
|
|
|
|
|
|
Delete "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
RMDir "$INSTDIR"
|
2003-03-09 22:38:13 +00:00
|
|
|
|
2003-09-09 16:06:37 +00:00
|
|
|
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
|
2002-08-29 10:31:13 +00:00
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Uninstaller Functions
|
|
|
|
|
2002-10-08 18:06:22 +00:00
|
|
|
Function un.onInit
|
2002-12-03 19:57:32 +00:00
|
|
|
|
2003-04-07 18:05:12 +00:00
|
|
|
!insertmacro MUI_UNGETLANGUAGE
|
2002-12-03 19:57:32 +00:00
|
|
|
|
2002-11-03 13:21:09 +00:00
|
|
|
FunctionEnd
|