1 ;--------------------------------
5 ;--------------------------------
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!)
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
41 ;--------------------------------
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 ;--------------------------------
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 ;--------------------------------
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 ;--------------------------------
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 ;--------------------------------
98 ; ----------------------------------------
101 SetOutPath "$INSTDIR"
103 ;Client, configuration and misc files
104 File "${SrcDir}\${Executable}"
105 File "${SrcDir}\msvcp120.dll"
106 File "${SrcDir}\msvcr120.dll"
109 CreateShortCut "$DESKTOP\${Product}.lnk" "$INSTDIR\${Executable}"
111 ;Store installation folder
112 WriteRegStr "${RegistryCat}" "${RegistryKey}" "${GenericProduct} Install Path" $INSTDIR
115 ;--------------------------------
119 !insertmacro MUI_LANGDLL_DISPLAY