Merge branch 'main/atys-live' into fixes
[ryzomcore.git] / dist / nsis / ryzom_installer.nsi
blob8ce975e19a160b5ac07d8aaccc6567aa0bfc854b
1 ;--------------------------------
2 ;Include Modern UI
3 !include "MUI2.nsh"
5 ;--------------------------------
6 ;General
7 !define Company "Winch Gate"
8 !define GenericProduct "Ryzom"
9 !define Product "Ryzom Installer"
10 !define RegistryCat "HKCU"
11 !define RegistryKey "Software\${Company}\${GenericProduct}"
12 !define Executable "ryzom_installer_qt_r.exe"
13 !define SrcDir "RyzomInstaller"
14 !define Installer "ryzom_installer_windows.exe"
16 ;Properly display all languages (Installer will not work on Windows 95, 98 or ME!)
17 ;Unicode true
19 ;New XP style
20 XPStyle on
22 ;Name and file
23 Name "${Product}"
24 OutFile "${Installer}"
26 ;Default installation folder
27 InstallDir "$LOCALAPPDATA\${GenericProduct}"
29 ;Get installation folder from registry if available
30 InstallDirRegKey "${RegistryCat}" "${RegistryKey}" "${GenericProduct} Install Path"
32 ;Request application privileges for Windows Vista
33 RequestExecutionLevel user
35 ;Best compression
36 SetCompressor LZMA
38 ; ???
39 AllowSkipFiles on
41 ;--------------------------------
42 ;Interface Settings
44 !define MUI_ICON "${SrcDir}\${GenericProduct}.ico"
45 !define MUI_UNICON "${SrcDir}\${GenericProduct}.ico"
46 !define MUI_HEADERIMAGE
47 !define MUI_HEADERIMAGE_BITMAP "modern-header.bmp" ; optional
48 !define MUI_WELCOMEFINISHPAGE_BITMAP "modern-wizard.bmp"
49 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "modern-wizard.bmp"
50 !define MUI_ABORTWARNING
52 ;Show all languages, despite user's codepage
53 !define MUI_LANGDLL_ALLLANGUAGES
55 ;--------------------------------
56 ;Language Selection Dialog Settings
58 ;Remember the installer language
59 !define MUI_LANGDLL_REGISTRY_ROOT "${RegistryCat}"
60 !define MUI_LANGDLL_REGISTRY_KEY "${RegistryKey}"
61 !define MUI_LANGDLL_REGISTRY_VALUENAME "Language"
63 ;--------------------------------
64 ;Pages
65 !insertmacro MUI_PAGE_WELCOME
66 !insertmacro MUI_PAGE_DIRECTORY
67 !insertmacro MUI_PAGE_INSTFILES
69 !define MUI_FINISHPAGE_RUN "$INSTDIR\${Executable}"
71 !insertmacro MUI_PAGE_FINISH
73 !insertmacro MUI_UNPAGE_WELCOME
74 !insertmacro MUI_UNPAGE_CONFIRM
75 !insertmacro MUI_UNPAGE_INSTFILES
76 !insertmacro MUI_UNPAGE_FINISH
78 ;--------------------------------
79 ;Languages
81 !insertmacro MUI_LANGUAGE "English" ;first language is the default language
82 !insertmacro MUI_LANGUAGE "French"
83 !insertmacro MUI_LANGUAGE "German"
84 !insertmacro MUI_LANGUAGE "Spanish"
86 ;--------------------------------
87 ;Reserve Files
89 ;If you are using solid compression, files that are required before
90 ;the actual installation should be stored first in the data block,
91 ;because this will make your installer start faster.
93 !insertmacro MUI_RESERVEFILE_LANGDLL
95 ;--------------------------------
96 ;Installer Sections
98 ; ----------------------------------------
99 ; Default section
100 Section
101 SetOutPath "$INSTDIR"
103 ;Client, configuration and misc files
104 File "${SrcDir}\${Executable}"
105 File "${SrcDir}\msvcp120.dll"
106 File "${SrcDir}\msvcr120.dll"
108 ;Shortcut on desktop
109 CreateShortCut "$DESKTOP\${Product}.lnk" "$INSTDIR\${Executable}"
111 ;Store installation folder
112 WriteRegStr "${RegistryCat}" "${RegistryKey}" "${GenericProduct} Install Path" $INSTDIR
113 SectionEnd
115 ;--------------------------------
116 ;Installer Functions
118 Function .onInit
119 !insertmacro MUI_LANGDLL_DISPLAY
120 FunctionEnd