Statistiques
| Révision :

root / tmp / org.txm.setups / nsis-2.5 / Examples / makensis.nsi @ 3111

Historique | Voir | Annoter | Télécharger (32,32 ko)

1 2961 mdecorde
;NSIS Setup Script
2 2961 mdecorde
;--------------------------------
3 2961 mdecorde
4 2961 mdecorde
!ifndef VERSION
5 2961 mdecorde
  !define VERSION 'anonymous-build'
6 2961 mdecorde
!endif
7 2961 mdecorde
8 2961 mdecorde
;--------------------------------
9 2961 mdecorde
;Configuration
10 2961 mdecorde
11 2961 mdecorde
!ifdef OUTFILE
12 2961 mdecorde
  OutFile "${OUTFILE}"
13 2961 mdecorde
!else
14 2961 mdecorde
  OutFile ..\nsis-${VERSION}-setup.exe
15 2961 mdecorde
!endif
16 2961 mdecorde
17 2961 mdecorde
SetCompressor /SOLID lzma
18 2961 mdecorde
19 2961 mdecorde
InstType "Full"
20 2961 mdecorde
InstType "Lite"
21 2961 mdecorde
InstType "Minimal"
22 2961 mdecorde
23 2961 mdecorde
InstallDir $PROGRAMFILES\NSIS
24 2961 mdecorde
InstallDirRegKey HKLM Software\NSIS ""
25 2961 mdecorde
26 2961 mdecorde
RequestExecutionLevel admin
27 2961 mdecorde
28 2961 mdecorde
;--------------------------------
29 2961 mdecorde
;Header Files
30 2961 mdecorde
31 2961 mdecorde
!include "MUI2.nsh"
32 2961 mdecorde
!include "Sections.nsh"
33 2961 mdecorde
!include "LogicLib.nsh"
34 2961 mdecorde
!include "Memento.nsh"
35 2961 mdecorde
!include "WordFunc.nsh"
36 2961 mdecorde
37 2961 mdecorde
;--------------------------------
38 2961 mdecorde
;Functions
39 2961 mdecorde
40 2961 mdecorde
!ifdef VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
41 2961 mdecorde
42 2961 mdecorde
  !insertmacro VersionCompare
43 2961 mdecorde
44 2961 mdecorde
!endif
45 2961 mdecorde
46 2961 mdecorde
;--------------------------------
47 2961 mdecorde
;Definitions
48 2961 mdecorde
49 2961 mdecorde
!define SHCNE_ASSOCCHANGED 0x8000000
50 2961 mdecorde
!define SHCNF_IDLIST 0
51 2961 mdecorde
52 2961 mdecorde
;--------------------------------
53 2961 mdecorde
;Configuration
54 2961 mdecorde
55 2961 mdecorde
;Names
56 2961 mdecorde
Name "NSIS"
57 2961 mdecorde
Caption "NSIS ${VERSION} Setup"
58 2961 mdecorde
59 2961 mdecorde
;Memento Settings
60 2961 mdecorde
!define MEMENTO_REGISTRY_ROOT HKLM
61 2961 mdecorde
!define MEMENTO_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS"
62 2961 mdecorde
63 2961 mdecorde
;Interface Settings
64 2961 mdecorde
!define MUI_ABORTWARNING
65 2961 mdecorde
66 2961 mdecorde
!define MUI_HEADERIMAGE
67 2961 mdecorde
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\nsis.bmp"
68 2961 mdecorde
69 2961 mdecorde
!define MUI_COMPONENTSPAGE_SMALLDESC
70 2961 mdecorde
71 2961 mdecorde
;Pages
72 2961 mdecorde
!define MUI_WELCOMEPAGE_TITLE "Welcome to the NSIS ${VERSION} Setup Wizard"
73 2961 mdecorde
!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of NSIS (Nullsoft Scriptable Install System) ${VERSION}, the next generation of the Windows installer and uninstaller system that doesn't suck and isn't huge.$\r$\n$\r$\nNSIS 2 includes a new Modern User Interface, LZMA compression, support for multiple languages and an easy plug-in system.$\r$\n$\r$\n$_CLICK"
74 2961 mdecorde
75 2961 mdecorde
!insertmacro MUI_PAGE_WELCOME
76 2961 mdecorde
!insertmacro MUI_PAGE_LICENSE "..\COPYING"
77 2961 mdecorde
!ifdef VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
78 2961 mdecorde
Page custom PageReinstall PageLeaveReinstall
79 2961 mdecorde
!endif
80 2961 mdecorde
!insertmacro MUI_PAGE_COMPONENTS
81 2961 mdecorde
!insertmacro MUI_PAGE_DIRECTORY
82 2961 mdecorde
!insertmacro MUI_PAGE_INSTFILES
83 2961 mdecorde
84 2961 mdecorde
!define MUI_FINISHPAGE_LINK "Visit the NSIS site for the latest news, FAQs and support"
85 2961 mdecorde
!define MUI_FINISHPAGE_LINK_LOCATION "http://nsis.sf.net/"
86 2961 mdecorde
87 2961 mdecorde
!define MUI_FINISHPAGE_RUN "$INSTDIR\NSIS.exe"
88 2961 mdecorde
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
89 2961 mdecorde
90 2961 mdecorde
!define MUI_FINISHPAGE_SHOWREADME
91 2961 mdecorde
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show release notes"
92 2961 mdecorde
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION ShowReleaseNotes
93 2961 mdecorde
94 2961 mdecorde
!insertmacro MUI_PAGE_FINISH
95 2961 mdecorde
96 2961 mdecorde
!insertmacro MUI_UNPAGE_CONFIRM
97 2961 mdecorde
!insertmacro MUI_UNPAGE_INSTFILES
98 2961 mdecorde
99 2961 mdecorde
;--------------------------------
100 2961 mdecorde
;Languages
101 2961 mdecorde
102 2961 mdecorde
!insertmacro MUI_LANGUAGE "English"
103 2961 mdecorde
104 2961 mdecorde
;--------------------------------
105 2961 mdecorde
;Installer Sections
106 2961 mdecorde
107 2961 mdecorde
${MementoSection} "NSIS Core Files (required)" SecCore
108 2961 mdecorde
109 2961 mdecorde
  SetDetailsPrint textonly
110 2961 mdecorde
  DetailPrint "Installing NSIS Core Files..."
111 2961 mdecorde
  SetDetailsPrint listonly
112 2961 mdecorde
113 2961 mdecorde
  SectionIn 1 2 3 RO
114 2961 mdecorde
  SetOutPath $INSTDIR
115 2961 mdecorde
  RMDir /r $SMPROGRAMS\NSIS
116 2961 mdecorde
117 2961 mdecorde
  SetOverwrite on
118 2961 mdecorde
  File ..\makensis.exe
119 2961 mdecorde
  File ..\makensisw.exe
120 2961 mdecorde
  File ..\COPYING
121 2961 mdecorde
  File ..\NSIS.chm
122 2961 mdecorde
  !searchparse /file "..\NSIS.chm" "ITSF" VALIDATE_CHM
123 2961 mdecorde
  File ..\NSIS.exe
124 2961 mdecorde
  File /nonfatal ..\NSIS.exe.manifest
125 2961 mdecorde
126 2961 mdecorde
  IfFileExists $INSTDIR\nsisconf.nsi "" +2
127 2961 mdecorde
  Rename $INSTDIR\nsisconf.nsi $INSTDIR\nsisconf.nsh
128 2961 mdecorde
  SetOverwrite off
129 2961 mdecorde
  File ..\nsisconf.nsh
130 2961 mdecorde
  SetOverwrite on
131 2961 mdecorde
132 2961 mdecorde
  SetOutPath $INSTDIR\Stubs
133 2961 mdecorde
  File ..\Stubs\bzip2
134 2961 mdecorde
  File ..\Stubs\bzip2_solid
135 2961 mdecorde
  File ..\Stubs\lzma
136 2961 mdecorde
  File ..\Stubs\lzma_solid
137 2961 mdecorde
  File ..\Stubs\zlib
138 2961 mdecorde
  File ..\Stubs\zlib_solid
139 2961 mdecorde
  File ..\Stubs\uninst
140 2961 mdecorde
141 2961 mdecorde
  SetOutPath $INSTDIR\Include
142 2961 mdecorde
  File ..\Include\WinMessages.nsh
143 2961 mdecorde
  File ..\Include\Sections.nsh
144 2961 mdecorde
  File ..\Include\Library.nsh
145 2961 mdecorde
  File ..\Include\UpgradeDLL.nsh
146 2961 mdecorde
  File ..\Include\LogicLib.nsh
147 2961 mdecorde
  File ..\Include\StrFunc.nsh
148 2961 mdecorde
  File ..\Include\Colors.nsh
149 2961 mdecorde
  File ..\Include\FileFunc.nsh
150 2961 mdecorde
  File ..\Include\TextFunc.nsh
151 2961 mdecorde
  File ..\Include\WordFunc.nsh
152 2961 mdecorde
  File ..\Include\WinVer.nsh
153 2961 mdecorde
  File ..\Include\x64.nsh
154 2961 mdecorde
  File ..\Include\Memento.nsh
155 2961 mdecorde
  File ..\Include\LangFile.nsh
156 2961 mdecorde
  File ..\Include\InstallOptions.nsh
157 2961 mdecorde
  File ..\Include\MultiUser.nsh
158 2961 mdecorde
  File ..\Include\VB6RunTime.nsh
159 2961 mdecorde
  File ..\Include\Util.nsh
160 2961 mdecorde
  File ..\Include\WinCore.nsh
161 2961 mdecorde
162 2961 mdecorde
  SetOutPath $INSTDIR\Include\Win
163 2961 mdecorde
  File ..\Include\Win\WinDef.nsh
164 2961 mdecorde
  File ..\Include\Win\WinError.nsh
165 2961 mdecorde
  File ..\Include\Win\WinNT.nsh
166 2961 mdecorde
  File ..\Include\Win\WinUser.nsh
167 2961 mdecorde
168 2961 mdecorde
  SetOutPath $INSTDIR\Docs\StrFunc
169 2961 mdecorde
  File ..\Docs\StrFunc\StrFunc.txt
170 2961 mdecorde
171 2961 mdecorde
  SetOutPath $INSTDIR\Docs\MultiUser
172 2961 mdecorde
  File ..\Docs\MultiUser\Readme.html
173 2961 mdecorde
174 2961 mdecorde
  SetOutPath $INSTDIR\Docs\makensisw
175 2961 mdecorde
  File ..\Docs\makensisw\*.txt
176 2961 mdecorde
177 2961 mdecorde
  SetOutPath $INSTDIR\Menu
178 2961 mdecorde
  File ..\Menu\*.html
179 2961 mdecorde
  SetOutPath $INSTDIR\Menu\images
180 2961 mdecorde
  File ..\Menu\images\header.gif
181 2961 mdecorde
  File ..\Menu\images\line.gif
182 2961 mdecorde
  File ..\Menu\images\site.gif
183 2961 mdecorde
184 2961 mdecorde
  Delete $INSTDIR\makensis.htm
185 2961 mdecorde
  Delete $INSTDIR\Docs\*.html
186 2961 mdecorde
  Delete $INSTDIR\Docs\style.css
187 2961 mdecorde
  RMDir $INSTDIR\Docs
188 2961 mdecorde
189 2961 mdecorde
  SetOutPath $INSTDIR\Bin
190 2961 mdecorde
  File ..\Bin\LibraryLocal.exe
191 2961 mdecorde
  File ..\Bin\RegTool.bin
192 2961 mdecorde
193 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
194 2961 mdecorde
  File ..\Plugins\TypeLib.dll
195 2961 mdecorde
196 2961 mdecorde
  ReadRegStr $R0 HKCR ".nsi" ""
197 2961 mdecorde
  StrCmp $R0 "NSISFile" 0 +2
198 2961 mdecorde
    DeleteRegKey HKCR "NSISFile"
199 2961 mdecorde
200 2961 mdecorde
  WriteRegStr HKCR ".nsi" "" "NSIS.Script"
201 2961 mdecorde
  WriteRegStr HKCR "NSIS.Script" "" "NSIS Script File"
202 2961 mdecorde
  WriteRegStr HKCR "NSIS.Script\DefaultIcon" "" "$INSTDIR\makensisw.exe,1"
203 2961 mdecorde
  ReadRegStr $R0 HKCR "NSIS.Script\shell\open\command" ""
204 2961 mdecorde
  StrCmp $R0 "" 0 no_nsiopen
205 2961 mdecorde
    WriteRegStr HKCR "NSIS.Script\shell" "" "open"
206 2961 mdecorde
    WriteRegStr HKCR "NSIS.Script\shell\open\command" "" 'notepad.exe "%1"'
207 2961 mdecorde
  no_nsiopen:
208 2961 mdecorde
  WriteRegStr HKCR "NSIS.Script\shell\compile" "" "Compile NSIS Script"
209 2961 mdecorde
  WriteRegStr HKCR "NSIS.Script\shell\compile\command" "" '"$INSTDIR\makensisw.exe" "%1"'
210 2961 mdecorde
  WriteRegStr HKCR "NSIS.Script\shell\compile-compressor" "" "Compile NSIS Script (Choose Compressor)"
211 2961 mdecorde
  WriteRegStr HKCR "NSIS.Script\shell\compile-compressor\command" "" '"$INSTDIR\makensisw.exe" /ChooseCompressor "%1"'
212 2961 mdecorde
213 2961 mdecorde
  ReadRegStr $R0 HKCR ".nsh" ""
214 2961 mdecorde
  StrCmp $R0 "NSHFile" 0 +2
215 2961 mdecorde
    DeleteRegKey HKCR "NSHFile"
216 2961 mdecorde
217 2961 mdecorde
  WriteRegStr HKCR ".nsh" "" "NSIS.Header"
218 2961 mdecorde
  WriteRegStr HKCR "NSIS.Header" "" "NSIS Header File"
219 2961 mdecorde
  WriteRegStr HKCR "NSIS.Header\DefaultIcon" "" "$INSTDIR\makensisw.exe,1"
220 2961 mdecorde
  ReadRegStr $R0 HKCR "NSIS.Header\shell\open\command" ""
221 2961 mdecorde
  StrCmp $R0 "" 0 no_nshopen
222 2961 mdecorde
    WriteRegStr HKCR "NSIS.Header\shell" "" "open"
223 2961 mdecorde
    WriteRegStr HKCR "NSIS.Header\shell\open\command" "" 'notepad.exe "%1"'
224 2961 mdecorde
  no_nshopen:
225 2961 mdecorde
226 2961 mdecorde
  System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
227 2961 mdecorde
228 2961 mdecorde
${MementoSectionEnd}
229 2961 mdecorde
230 2961 mdecorde
${MementoSection} "Script Examples" SecExample
231 2961 mdecorde
232 2961 mdecorde
  SetDetailsPrint textonly
233 2961 mdecorde
  DetailPrint "Installing Script Examples..."
234 2961 mdecorde
  SetDetailsPrint listonly
235 2961 mdecorde
236 2961 mdecorde
  SectionIn 1 2
237 2961 mdecorde
  SetOutPath $INSTDIR\Examples
238 2961 mdecorde
  File ..\Examples\makensis.nsi
239 2961 mdecorde
  File ..\Examples\example1.nsi
240 2961 mdecorde
  File ..\Examples\example2.nsi
241 2961 mdecorde
  File ..\Examples\viewhtml.nsi
242 2961 mdecorde
  File ..\Examples\waplugin.nsi
243 2961 mdecorde
  File ..\Examples\bigtest.nsi
244 2961 mdecorde
  File ..\Examples\primes.nsi
245 2961 mdecorde
  File ..\Examples\rtest.nsi
246 2961 mdecorde
  File ..\Examples\gfx.nsi
247 2961 mdecorde
  File ..\Examples\one-section.nsi
248 2961 mdecorde
  File ..\Examples\languages.nsi
249 2961 mdecorde
  File ..\Examples\Library.nsi
250 2961 mdecorde
  File ..\Examples\VersionInfo.nsi
251 2961 mdecorde
  File ..\Examples\UserVars.nsi
252 2961 mdecorde
  File ..\Examples\LogicLib.nsi
253 2961 mdecorde
  File ..\Examples\silent.nsi
254 2961 mdecorde
  File ..\Examples\StrFunc.nsi
255 2961 mdecorde
  File ..\Examples\FileFunc.nsi
256 2961 mdecorde
  File ..\Examples\FileFunc.ini
257 2961 mdecorde
  File ..\Examples\FileFuncTest.nsi
258 2961 mdecorde
  File ..\Examples\TextFunc.nsi
259 2961 mdecorde
  File ..\Examples\TextFunc.ini
260 2961 mdecorde
  File ..\Examples\TextFuncTest.nsi
261 2961 mdecorde
  File ..\Examples\WordFunc.nsi
262 2961 mdecorde
  File ..\Examples\WordFunc.ini
263 2961 mdecorde
  File ..\Examples\WordFuncTest.nsi
264 2961 mdecorde
  File ..\Examples\Memento.nsi
265 2961 mdecorde
266 2961 mdecorde
  SetOutPath $INSTDIR\Examples\Plugin
267 2961 mdecorde
  File ..\Examples\Plugin\exdll.c
268 2961 mdecorde
  File ..\Examples\Plugin\exdll.dpr
269 2961 mdecorde
  File ..\Examples\Plugin\exdll.dsp
270 2961 mdecorde
  File ..\Examples\Plugin\exdll.dsw
271 2961 mdecorde
  File ..\Examples\Plugin\exdll_with_unit.dpr
272 2961 mdecorde
  File ..\Examples\Plugin\exdll-vs2008.sln
273 2961 mdecorde
  File ..\Examples\Plugin\exdll-vs2008.vcproj
274 2961 mdecorde
  File ..\Examples\Plugin\extdll.inc
275 2961 mdecorde
  File ..\Examples\Plugin\nsis.pas
276 2961 mdecorde
277 2961 mdecorde
  SetOutPath $INSTDIR\Examples\Plugin\nsis
278 2961 mdecorde
  File ..\Examples\Plugin\nsis\pluginapi.h
279 2961 mdecorde
  File ..\Examples\Plugin\nsis\pluginapi.lib
280 2961 mdecorde
  File ..\Examples\Plugin\nsis\api.h
281 2961 mdecorde
282 2961 mdecorde
${MementoSectionEnd}
283 2961 mdecorde
284 2961 mdecorde
!ifndef NO_STARTMENUSHORTCUTS
285 2961 mdecorde
${MementoSection} "Start Menu and Desktop Shortcuts" SecShortcuts
286 2961 mdecorde
287 2961 mdecorde
  SetDetailsPrint textonly
288 2961 mdecorde
  DetailPrint "Installing Start Menu and Desktop Shortcuts..."
289 2961 mdecorde
  SetDetailsPrint listonly
290 2961 mdecorde
291 2961 mdecorde
!else
292 2961 mdecorde
${MementoSection} "Desktop Shortcut" SecShortcuts
293 2961 mdecorde
294 2961 mdecorde
  SetDetailsPrint textonly
295 2961 mdecorde
  DetailPrint "Installing Desktop Shortcut..."
296 2961 mdecorde
  SetDetailsPrint listonly
297 2961 mdecorde
298 2961 mdecorde
!endif
299 2961 mdecorde
  SectionIn 1 2
300 2961 mdecorde
  SetOutPath $INSTDIR
301 2961 mdecorde
!ifndef NO_STARTMENUSHORTCUTS
302 2961 mdecorde
  CreateShortCut "$SMPROGRAMS\NSIS.lnk" "$INSTDIR\NSIS.exe"
303 2961 mdecorde
!endif
304 2961 mdecorde
305 2961 mdecorde
  CreateShortCut "$DESKTOP\NSIS.lnk" "$INSTDIR\NSIS.exe"
306 2961 mdecorde
307 2961 mdecorde
${MementoSectionEnd}
308 2961 mdecorde
309 2961 mdecorde
SectionGroup "User Interfaces" SecInterfaces
310 2961 mdecorde
311 2961 mdecorde
${MementoSection} "Modern User Interface" SecInterfacesModernUI
312 2961 mdecorde
313 2961 mdecorde
  SetDetailsPrint textonly
314 2961 mdecorde
  DetailPrint "Installing User Interfaces | Modern User Interface..."
315 2961 mdecorde
  SetDetailsPrint listonly
316 2961 mdecorde
317 2961 mdecorde
  SectionIn 1 2
318 2961 mdecorde
319 2961 mdecorde
  SetOutPath "$INSTDIR\Examples\Modern UI"
320 2961 mdecorde
  File "..\Examples\Modern UI\Basic.nsi"
321 2961 mdecorde
  File "..\Examples\Modern UI\HeaderBitmap.nsi"
322 2961 mdecorde
  File "..\Examples\Modern UI\MultiLanguage.nsi"
323 2961 mdecorde
  File "..\Examples\Modern UI\StartMenu.nsi"
324 2961 mdecorde
  File "..\Examples\Modern UI\WelcomeFinish.nsi"
325 2961 mdecorde
326 2961 mdecorde
  SetOutPath "$INSTDIR\Contrib\Modern UI"
327 2961 mdecorde
  File "..\Contrib\Modern UI\System.nsh"
328 2961 mdecorde
  File "..\Contrib\Modern UI\ioSpecial.ini"
329 2961 mdecorde
330 2961 mdecorde
  SetOutPath "$INSTDIR\Docs\Modern UI"
331 2961 mdecorde
  File "..\Docs\Modern UI\Readme.html"
332 2961 mdecorde
  File "..\Docs\Modern UI\Changelog.txt"
333 2961 mdecorde
  File "..\Docs\Modern UI\License.txt"
334 2961 mdecorde
335 2961 mdecorde
  SetOutPath "$INSTDIR\Docs\Modern UI\images"
336 2961 mdecorde
  File "..\Docs\Modern UI\images\header.gif"
337 2961 mdecorde
  File "..\Docs\Modern UI\images\screen1.png"
338 2961 mdecorde
  File "..\Docs\Modern UI\images\screen2.png"
339 2961 mdecorde
  File "..\Docs\Modern UI\images\open.gif"
340 2961 mdecorde
  File "..\Docs\Modern UI\images\closed.gif"
341 2961 mdecorde
342 2961 mdecorde
  SetOutPath $INSTDIR\Contrib\UIs
343 2961 mdecorde
  File "..\Contrib\UIs\modern.exe"
344 2961 mdecorde
  File "..\Contrib\UIs\modern_headerbmp.exe"
345 2961 mdecorde
  File "..\Contrib\UIs\modern_headerbmpr.exe"
346 2961 mdecorde
  File "..\Contrib\UIs\modern_nodesc.exe"
347 2961 mdecorde
  File "..\Contrib\UIs\modern_smalldesc.exe"
348 2961 mdecorde
349 2961 mdecorde
  SetOutPath $INSTDIR\Include
350 2961 mdecorde
  File "..\Include\MUI.nsh"
351 2961 mdecorde
352 2961 mdecorde
  SetOutPath "$INSTDIR\Contrib\Modern UI 2"
353 2961 mdecorde
  File "..\Contrib\Modern UI 2\Deprecated.nsh"
354 2961 mdecorde
  File "..\Contrib\Modern UI 2\Interface.nsh"
355 2961 mdecorde
  File "..\Contrib\Modern UI 2\Localization.nsh"
356 2961 mdecorde
  File "..\Contrib\Modern UI 2\MUI2.nsh"
357 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages.nsh"
358 2961 mdecorde
359 2961 mdecorde
  SetOutPath "$INSTDIR\Contrib\Modern UI 2\Pages"
360 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\Components.nsh"
361 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\Directory.nsh"
362 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\Finish.nsh"
363 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\InstallFiles.nsh"
364 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\License.nsh"
365 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\StartMenu.nsh"
366 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\UninstallConfirm.nsh"
367 2961 mdecorde
  File "..\Contrib\Modern UI 2\Pages\Welcome.nsh"
368 2961 mdecorde
369 2961 mdecorde
  SetOutPath "$INSTDIR\Docs\Modern UI 2"
370 2961 mdecorde
  File "..\Docs\Modern UI 2\Readme.html"
371 2961 mdecorde
  File "..\Docs\Modern UI 2\License.txt"
372 2961 mdecorde
373 2961 mdecorde
  SetOutPath "$INSTDIR\Docs\Modern UI 2\images"
374 2961 mdecorde
  File "..\Docs\Modern UI 2\images\header.gif"
375 2961 mdecorde
  File "..\Docs\Modern UI 2\images\screen1.png"
376 2961 mdecorde
  File "..\Docs\Modern UI 2\images\screen2.png"
377 2961 mdecorde
  File "..\Docs\Modern UI 2\images\open.gif"
378 2961 mdecorde
  File "..\Docs\Modern UI 2\images\closed.gif"
379 2961 mdecorde
380 2961 mdecorde
  SetOutPath $INSTDIR\Include
381 2961 mdecorde
  File "..\Include\MUI2.nsh"
382 2961 mdecorde
383 2961 mdecorde
${MementoSectionEnd}
384 2961 mdecorde
385 2961 mdecorde
${MementoSection} "Default User Interface" SecInterfacesDefaultUI
386 2961 mdecorde
387 2961 mdecorde
  SetDetailsPrint textonly
388 2961 mdecorde
  DetailPrint "Installing User Interfaces | Default User Interface..."
389 2961 mdecorde
  SetDetailsPrint listonly
390 2961 mdecorde
391 2961 mdecorde
  SectionIn 1
392 2961 mdecorde
393 2961 mdecorde
  SetOutPath "$INSTDIR\Contrib\UIs"
394 2961 mdecorde
  File "..\Contrib\UIs\default.exe"
395 2961 mdecorde
396 2961 mdecorde
${MementoSectionEnd}
397 2961 mdecorde
398 2961 mdecorde
${MementoSection} "Tiny User Interface" SecInterfacesTinyUI
399 2961 mdecorde
400 2961 mdecorde
  SetDetailsPrint textonly
401 2961 mdecorde
  DetailPrint "Installing User Interfaces | Tiny User Interface..."
402 2961 mdecorde
  SetDetailsPrint listonly
403 2961 mdecorde
404 2961 mdecorde
  SectionIn 1
405 2961 mdecorde
406 2961 mdecorde
  SetOutPath "$INSTDIR\Contrib\UIs"
407 2961 mdecorde
  File "..\Contrib\UIs\sdbarker_tiny.exe"
408 2961 mdecorde
409 2961 mdecorde
${MementoSectionEnd}
410 2961 mdecorde
411 2961 mdecorde
SectionGroupEnd
412 2961 mdecorde
413 2961 mdecorde
${MementoSection} "Graphics" SecGraphics
414 2961 mdecorde
415 2961 mdecorde
  SetDetailsPrint textonly
416 2961 mdecorde
  DetailPrint "Installing Graphics..."
417 2961 mdecorde
  SetDetailsPrint listonly
418 2961 mdecorde
419 2961 mdecorde
  SectionIn 1
420 2961 mdecorde
421 2961 mdecorde
  Delete $INSTDIR\Contrib\Icons\*.ico
422 2961 mdecorde
  Delete $INSTDIR\Contrib\Icons\*.bmp
423 2961 mdecorde
  RMDir $INSTDIR\Contrib\Icons
424 2961 mdecorde
  SetOutPath $INSTDIR\Contrib\Graphics
425 2961 mdecorde
  File /r "..\Contrib\Graphics\*.ico"
426 2961 mdecorde
  File /r "..\Contrib\Graphics\*.bmp"
427 2961 mdecorde
${MementoSectionEnd}
428 2961 mdecorde
429 2961 mdecorde
${MementoSection} "Language Files" SecLangFiles
430 2961 mdecorde
431 2961 mdecorde
  SetDetailsPrint textonly
432 2961 mdecorde
  DetailPrint "Installing Language Files..."
433 2961 mdecorde
  SetDetailsPrint listonly
434 2961 mdecorde
435 2961 mdecorde
  SectionIn 1
436 2961 mdecorde
437 2961 mdecorde
  SetOutPath "$INSTDIR\Contrib\Language files"
438 2961 mdecorde
  File "..\Contrib\Language files\*.nlf"
439 2961 mdecorde
440 2961 mdecorde
  SetOutPath $INSTDIR\Bin
441 2961 mdecorde
  File ..\Bin\MakeLangID.exe
442 2961 mdecorde
443 2961 mdecorde
  !insertmacro SectionFlagIsSet ${SecInterfacesModernUI} ${SF_SELECTED} mui nomui
444 2961 mdecorde
  mui:
445 2961 mdecorde
    SetOutPath "$INSTDIR\Contrib\Language files"
446 2961 mdecorde
    File "..\Contrib\Language files\*.nsh"
447 2961 mdecorde
  nomui:
448 2961 mdecorde
449 2961 mdecorde
${MementoSectionEnd}
450 2961 mdecorde
451 2961 mdecorde
SectionGroup "Tools" SecTools
452 2961 mdecorde
453 2961 mdecorde
${MementoSection} "Zip2Exe" SecToolsZ2E
454 2961 mdecorde
455 2961 mdecorde
  SetDetailsPrint textonly
456 2961 mdecorde
  DetailPrint "Installing Tools | Zip2Exe..."
457 2961 mdecorde
  SetDetailsPrint listonly
458 2961 mdecorde
459 2961 mdecorde
  SectionIn 1
460 2961 mdecorde
461 2961 mdecorde
  SetOutPath $INSTDIR\Bin
462 2961 mdecorde
  File ..\Bin\zip2exe.exe
463 2961 mdecorde
  SetOutPath $INSTDIR\Contrib\zip2exe
464 2961 mdecorde
  File ..\Contrib\zip2exe\Base.nsh
465 2961 mdecorde
  File ..\Contrib\zip2exe\Modern.nsh
466 2961 mdecorde
  File ..\Contrib\zip2exe\Classic.nsh
467 2961 mdecorde
468 2961 mdecorde
${MementoSectionEnd}
469 2961 mdecorde
470 2961 mdecorde
SectionGroupEnd
471 2961 mdecorde
472 2961 mdecorde
SectionGroup "Plug-ins" SecPluginsPlugins
473 2961 mdecorde
474 2961 mdecorde
${MementoSection} "Banner" SecPluginsBanner
475 2961 mdecorde
476 2961 mdecorde
  SetDetailsPrint textonly
477 2961 mdecorde
  DetailPrint "Installing Plug-ins | Banner..."
478 2961 mdecorde
  SetDetailsPrint listonly
479 2961 mdecorde
480 2961 mdecorde
  SectionIn 1
481 2961 mdecorde
482 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
483 2961 mdecorde
  File ..\Plugins\Banner.dll
484 2961 mdecorde
  SetOutPath $INSTDIR\Docs\Banner
485 2961 mdecorde
  File ..\Docs\Banner\Readme.txt
486 2961 mdecorde
  SetOutPath $INSTDIR\Examples\Banner
487 2961 mdecorde
  File ..\Examples\Banner\Example.nsi
488 2961 mdecorde
${MementoSectionEnd}
489 2961 mdecorde
490 2961 mdecorde
${MementoSection} "Language DLL" SecPluginsLangDLL
491 2961 mdecorde
492 2961 mdecorde
  SetDetailsPrint textonly
493 2961 mdecorde
  DetailPrint "Installing Plug-ins | Language DLL..."
494 2961 mdecorde
  SetDetailsPrint listonly
495 2961 mdecorde
496 2961 mdecorde
  SectionIn 1
497 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
498 2961 mdecorde
  File ..\Plugins\LangDLL.dll
499 2961 mdecorde
${MementoSectionEnd}
500 2961 mdecorde
501 2961 mdecorde
${MementoSection} "nsExec" SecPluginsnsExec
502 2961 mdecorde
503 2961 mdecorde
  SetDetailsPrint textonly
504 2961 mdecorde
  DetailPrint "Installing Plug-ins | nsExec..."
505 2961 mdecorde
  SetDetailsPrint listonly
506 2961 mdecorde
507 2961 mdecorde
  SectionIn 1
508 2961 mdecorde
509 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
510 2961 mdecorde
  File ..\Plugins\nsExec.dll
511 2961 mdecorde
  SetOutPath $INSTDIR\Docs\nsExec
512 2961 mdecorde
  File ..\Docs\nsExec\nsExec.txt
513 2961 mdecorde
  SetOutPath $INSTDIR\Examples\nsExec
514 2961 mdecorde
  File ..\Examples\nsExec\test.nsi
515 2961 mdecorde
${MementoSectionEnd}
516 2961 mdecorde
517 2961 mdecorde
${MementoSection} "Splash" SecPluginsSplash
518 2961 mdecorde
519 2961 mdecorde
  SetDetailsPrint textonly
520 2961 mdecorde
  DetailPrint "Installing Plug-ins | Splash..."
521 2961 mdecorde
  SetDetailsPrint listonly
522 2961 mdecorde
523 2961 mdecorde
  SectionIn 1
524 2961 mdecorde
525 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
526 2961 mdecorde
  File ..\Plugins\splash.dll
527 2961 mdecorde
  SetOutPath $INSTDIR\Docs\Splash
528 2961 mdecorde
  File ..\Docs\Splash\splash.txt
529 2961 mdecorde
  SetOutPath $INSTDIR\Examples\Splash
530 2961 mdecorde
  File ..\Examples\Splash\Example.nsi
531 2961 mdecorde
${MementoSectionEnd}
532 2961 mdecorde
533 2961 mdecorde
${MementoSection} "AdvSplash" SecPluginsSplashT
534 2961 mdecorde
535 2961 mdecorde
  SetDetailsPrint textonly
536 2961 mdecorde
  DetailPrint "Installing Plug-ins | AdvSplash..."
537 2961 mdecorde
  SetDetailsPrint listonly
538 2961 mdecorde
539 2961 mdecorde
  SectionIn 1
540 2961 mdecorde
541 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
542 2961 mdecorde
  File ..\Plugins\advsplash.dll
543 2961 mdecorde
  SetOutPath $INSTDIR\Docs\AdvSplash
544 2961 mdecorde
  File ..\Docs\AdvSplash\advsplash.txt
545 2961 mdecorde
  SetOutPath $INSTDIR\Examples\AdvSplash
546 2961 mdecorde
  File ..\Examples\AdvSplash\Example.nsi
547 2961 mdecorde
${MementoSectionEnd}
548 2961 mdecorde
549 2961 mdecorde
${MementoSection} "BgImage" SecPluginsBgImage
550 2961 mdecorde
551 2961 mdecorde
  SetDetailsPrint textonly
552 2961 mdecorde
  DetailPrint "Installing Plug-ins | BgImage..."
553 2961 mdecorde
  SetDetailsPrint listonly
554 2961 mdecorde
555 2961 mdecorde
  SectionIn 1
556 2961 mdecorde
557 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
558 2961 mdecorde
  File ..\Plugins\BgImage.dll
559 2961 mdecorde
  SetOutPath $INSTDIR\Docs\BgImage
560 2961 mdecorde
  File ..\Docs\BgImage\BgImage.txt
561 2961 mdecorde
  SetOutPath $INSTDIR\Examples\BgImage
562 2961 mdecorde
  File ..\Examples\BgImage\Example.nsi
563 2961 mdecorde
${MementoSectionEnd}
564 2961 mdecorde
565 2961 mdecorde
${MementoSection} "InstallOptions" SecPluginsIO
566 2961 mdecorde
567 2961 mdecorde
  SetDetailsPrint textonly
568 2961 mdecorde
  DetailPrint "Installing Plug-ins | InstallOptions..."
569 2961 mdecorde
  SetDetailsPrint listonly
570 2961 mdecorde
571 2961 mdecorde
  SectionIn 1
572 2961 mdecorde
573 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
574 2961 mdecorde
  File ..\Plugins\InstallOptions.dll
575 2961 mdecorde
  SetOutPath $INSTDIR\Docs\InstallOptions
576 2961 mdecorde
  File ..\Docs\InstallOptions\Readme.html
577 2961 mdecorde
  File ..\Docs\InstallOptions\Changelog.txt
578 2961 mdecorde
  SetOutPath $INSTDIR\Examples\InstallOptions
579 2961 mdecorde
  File ..\Examples\InstallOptions\test.ini
580 2961 mdecorde
  File ..\Examples\InstallOptions\test.nsi
581 2961 mdecorde
  File ..\Examples\InstallOptions\testimgs.ini
582 2961 mdecorde
  File ..\Examples\InstallOptions\testimgs.nsi
583 2961 mdecorde
  File ..\Examples\InstallOptions\testlink.ini
584 2961 mdecorde
  File ..\Examples\InstallOptions\testlink.nsi
585 2961 mdecorde
  File ..\Examples\InstallOptions\testnotify.ini
586 2961 mdecorde
  File ..\Examples\InstallOptions\testnotify.nsi
587 2961 mdecorde
${MementoSectionEnd}
588 2961 mdecorde
589 2961 mdecorde
${MementoSection} "nsDialogs" SecPluginsDialogs
590 2961 mdecorde
591 2961 mdecorde
  SetDetailsPrint textonly
592 2961 mdecorde
  DetailPrint "Installing Plug-ins | nsDialogs..."
593 2961 mdecorde
  SetDetailsPrint listonly
594 2961 mdecorde
595 2961 mdecorde
  SectionIn 1
596 2961 mdecorde
597 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
598 2961 mdecorde
  File ..\Plugins\nsDialogs.dll
599 2961 mdecorde
  SetOutPath $INSTDIR\Examples\nsDialogs
600 2961 mdecorde
  File ..\Examples\nsDialogs\example.nsi
601 2961 mdecorde
  File ..\Examples\nsDialogs\InstallOptions.nsi
602 2961 mdecorde
  File ..\Examples\nsDialogs\timer.nsi
603 2961 mdecorde
  File ..\Examples\nsDialogs\welcome.nsi
604 2961 mdecorde
  SetOutPath $INSTDIR\Include
605 2961 mdecorde
  File ..\Include\nsDialogs.nsh
606 2961 mdecorde
  SetOutPath $INSTDIR\Docs\nsDialogs
607 2961 mdecorde
  File ..\Docs\nsDialogs\Readme.html
608 2961 mdecorde
${MementoSectionEnd}
609 2961 mdecorde
610 2961 mdecorde
${MementoSection} "Math" SecPluginsMath
611 2961 mdecorde
612 2961 mdecorde
  SetDetailsPrint textonly
613 2961 mdecorde
  DetailPrint "Installing Plug-ins | Math..."
614 2961 mdecorde
  SetDetailsPrint listonly
615 2961 mdecorde
616 2961 mdecorde
  SectionIn 1
617 2961 mdecorde
618 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
619 2961 mdecorde
  File ..\Plugins\Math.dll
620 2961 mdecorde
  SetOutPath $INSTDIR\Docs\Math
621 2961 mdecorde
  File ..\Docs\Math\Math.txt
622 2961 mdecorde
  SetOutPath $INSTDIR\Examples\Math
623 2961 mdecorde
  File ..\Examples\Math\math.nsi
624 2961 mdecorde
  File ..\Examples\Math\mathtest.txt
625 2961 mdecorde
  File ..\Examples\Math\mathtest.nsi
626 2961 mdecorde
  File ..\Examples\Math\mathtest.ini
627 2961 mdecorde
628 2961 mdecorde
${MementoSectionEnd}
629 2961 mdecorde
630 2961 mdecorde
${MementoSection} "NSISdl" SecPluginsNSISDL
631 2961 mdecorde
632 2961 mdecorde
  SetDetailsPrint textonly
633 2961 mdecorde
  DetailPrint "Installing Plug-ins | NSISdl..."
634 2961 mdecorde
  SetDetailsPrint listonly
635 2961 mdecorde
636 2961 mdecorde
  SectionIn 1
637 2961 mdecorde
638 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
639 2961 mdecorde
  File ..\Plugins\nsisdl.dll
640 2961 mdecorde
  SetOutPath $INSTDIR\Docs\NSISdl
641 2961 mdecorde
  File ..\Docs\NSISdl\ReadMe.txt
642 2961 mdecorde
  File ..\Docs\NSISdl\License.txt
643 2961 mdecorde
${MementoSectionEnd}
644 2961 mdecorde
645 2961 mdecorde
${MementoSection} "System" SecPluginsSystem
646 2961 mdecorde
647 2961 mdecorde
  SetDetailsPrint textonly
648 2961 mdecorde
  DetailPrint "Installing Plug-ins | System..."
649 2961 mdecorde
  SetDetailsPrint listonly
650 2961 mdecorde
651 2961 mdecorde
  SectionIn 1
652 2961 mdecorde
653 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
654 2961 mdecorde
  File ..\Plugins\System.dll
655 2961 mdecorde
  SetOutPath $INSTDIR\Docs\System
656 2961 mdecorde
  File ..\Docs\System\System.html
657 2961 mdecorde
  File ..\Docs\System\WhatsNew.txt
658 2961 mdecorde
  SetOutPath $INSTDIR\Examples\System
659 2961 mdecorde
  File ..\Examples\System\Resource.dll
660 2961 mdecorde
  File ..\Examples\System\SysFunc.nsh
661 2961 mdecorde
  File ..\Examples\System\System.nsh
662 2961 mdecorde
  File ..\Examples\System\System.nsi
663 2961 mdecorde
${MementoSectionEnd}
664 2961 mdecorde
665 2961 mdecorde
${MementoSection} "StartMenu" SecPluginsStartMenu
666 2961 mdecorde
667 2961 mdecorde
  SetDetailsPrint textonly
668 2961 mdecorde
  DetailPrint "Installing Plug-ins | StartMenu..."
669 2961 mdecorde
  SetDetailsPrint listonly
670 2961 mdecorde
671 2961 mdecorde
  SectionIn 1
672 2961 mdecorde
673 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
674 2961 mdecorde
  File ..\Plugins\StartMenu.dll
675 2961 mdecorde
  SetOutPath $INSTDIR\Docs\StartMenu
676 2961 mdecorde
  File ..\Docs\StartMenu\Readme.txt
677 2961 mdecorde
  SetOutPath $INSTDIR\Examples\StartMenu
678 2961 mdecorde
  File ..\Examples\StartMenu\Example.nsi
679 2961 mdecorde
${MementoSectionEnd}
680 2961 mdecorde
681 2961 mdecorde
${MementoSection} "UserInfo" SecPluginsUserInfo
682 2961 mdecorde
683 2961 mdecorde
  SetDetailsPrint textonly
684 2961 mdecorde
  DetailPrint "Installing Plug-ins | UserInfo..."
685 2961 mdecorde
  SetDetailsPrint listonly
686 2961 mdecorde
687 2961 mdecorde
  SectionIn 1
688 2961 mdecorde
689 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
690 2961 mdecorde
  File ..\Plugins\UserInfo.dll
691 2961 mdecorde
  SetOutPath $INSTDIR\Examples\UserInfo
692 2961 mdecorde
  File ..\Examples\UserInfo\UserInfo.nsi
693 2961 mdecorde
${MementoSectionEnd}
694 2961 mdecorde
695 2961 mdecorde
${MementoSection} "Dialer" SecPluginsDialer
696 2961 mdecorde
697 2961 mdecorde
  SetDetailsPrint textonly
698 2961 mdecorde
  DetailPrint "Installing Plug-ins | Dialer..."
699 2961 mdecorde
  SetDetailsPrint listonly
700 2961 mdecorde
701 2961 mdecorde
  SectionIn 1
702 2961 mdecorde
703 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
704 2961 mdecorde
  File ..\Plugins\Dialer.dll
705 2961 mdecorde
  SetOutPath $INSTDIR\Docs\Dialer
706 2961 mdecorde
  File ..\Docs\Dialer\Dialer.txt
707 2961 mdecorde
${MementoSectionEnd}
708 2961 mdecorde
709 2961 mdecorde
${MementoSection} "VPatch" SecPluginsVPatch
710 2961 mdecorde
711 2961 mdecorde
  SetDetailsPrint textonly
712 2961 mdecorde
  DetailPrint "Installing Plug-ins | VPatch..."
713 2961 mdecorde
  SetDetailsPrint listonly
714 2961 mdecorde
715 2961 mdecorde
  SectionIn 1
716 2961 mdecorde
717 2961 mdecorde
  SetOutPath $INSTDIR\Plugins
718 2961 mdecorde
  File ..\Plugins\VPatch.dll
719 2961 mdecorde
  SetOutPath $INSTDIR\Examples\VPatch
720 2961 mdecorde
  File ..\Examples\VPatch\example.nsi
721 2961 mdecorde
  File ..\Examples\VPatch\oldfile.txt
722 2961 mdecorde
  File ..\Examples\VPatch\newfile.txt
723 2961 mdecorde
  File ..\Examples\VPatch\patch.pat
724 2961 mdecorde
  SetOutPath $INSTDIR\Docs\VPatch
725 2961 mdecorde
  File ..\Docs\VPatch\Readme.html
726 2961 mdecorde
  SetOutPath $INSTDIR\Bin
727 2961 mdecorde
  File ..\Bin\GenPat.exe
728 2961 mdecorde
  SetOutPath $INSTDIR\Include
729 2961 mdecorde
  File ..\Include\VPatchLib.nsh
730 2961 mdecorde
${MementoSectionEnd}
731 2961 mdecorde
732 2961 mdecorde
${MementoSectionDone}
733 2961 mdecorde
734 2961 mdecorde
SectionGroupEnd
735 2961 mdecorde
736 2961 mdecorde
Section -post
737 2961 mdecorde
738 2961 mdecorde
  ; When Modern UI is installed:
739 2961 mdecorde
  ; * Always install the English language file
740 2961 mdecorde
  ; * Always install default icons / bitmaps
741 2961 mdecorde
742 2961 mdecorde
  !insertmacro SectionFlagIsSet ${SecInterfacesModernUI} ${SF_SELECTED} mui nomui
743 2961 mdecorde
744 2961 mdecorde
    mui:
745 2961 mdecorde
746 2961 mdecorde
    SetDetailsPrint textonly
747 2961 mdecorde
    DetailPrint "Configuring Modern UI..."
748 2961 mdecorde
    SetDetailsPrint listonly
749 2961 mdecorde
750 2961 mdecorde
    !insertmacro SectionFlagIsSet ${SecLangFiles} ${SF_SELECTED} langfiles nolangfiles
751 2961 mdecorde
752 2961 mdecorde
      nolangfiles:
753 2961 mdecorde
754 2961 mdecorde
      SetOutPath "$INSTDIR\Contrib\Language files"
755 2961 mdecorde
      File "..\Contrib\Language files\English.nlf"
756 2961 mdecorde
      SetOutPath "$INSTDIR\Contrib\Language files"
757 2961 mdecorde
      File "..\Contrib\Language files\English.nsh"
758 2961 mdecorde
759 2961 mdecorde
    langfiles:
760 2961 mdecorde
761 2961 mdecorde
    !insertmacro SectionFlagIsSet ${SecGraphics} ${SF_SELECTED} graphics nographics
762 2961 mdecorde
763 2961 mdecorde
      nographics:
764 2961 mdecorde
765 2961 mdecorde
      SetOutPath $INSTDIR\Contrib\Graphics
766 2961 mdecorde
      SetOutPath $INSTDIR\Contrib\Graphics\Checks
767 2961 mdecorde
      File "..\Contrib\Graphics\Checks\modern.bmp"
768 2961 mdecorde
      SetOutPath $INSTDIR\Contrib\Graphics\Icons
769 2961 mdecorde
      File "..\Contrib\Graphics\Icons\modern-install.ico"
770 2961 mdecorde
      File "..\Contrib\Graphics\Icons\modern-uninstall.ico"
771 2961 mdecorde
      SetOutPath $INSTDIR\Contrib\Graphics\Header
772 2961 mdecorde
      File "..\Contrib\Graphics\Header\nsis.bmp"
773 2961 mdecorde
      SetOutPath $INSTDIR\Contrib\Graphics\Wizard
774 2961 mdecorde
      File "..\Contrib\Graphics\Wizard\win.bmp"
775 2961 mdecorde
776 2961 mdecorde
    graphics:
777 2961 mdecorde
778 2961 mdecorde
  nomui:
779 2961 mdecorde
780 2961 mdecorde
  SetDetailsPrint textonly
781 2961 mdecorde
  DetailPrint "Creating Registry Keys..."
782 2961 mdecorde
  SetDetailsPrint listonly
783 2961 mdecorde
784 2961 mdecorde
  SetOutPath $INSTDIR
785 2961 mdecorde
786 2961 mdecorde
  WriteRegStr HKLM "Software\NSIS" "" $INSTDIR
787 2961 mdecorde
!ifdef VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
788 2961 mdecorde
  WriteRegDword HKLM "Software\NSIS" "VersionMajor" "${VER_MAJOR}"
789 2961 mdecorde
  WriteRegDword HKLM "Software\NSIS" "VersionMinor" "${VER_MINOR}"
790 2961 mdecorde
  WriteRegDword HKLM "Software\NSIS" "VersionRevision" "${VER_REVISION}"
791 2961 mdecorde
  WriteRegDword HKLM "Software\NSIS" "VersionBuild" "${VER_BUILD}"
792 2961 mdecorde
!endif
793 2961 mdecorde
794 2961 mdecorde
  WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "UninstallString" '"$INSTDIR\uninst-nsis.exe"'
795 2961 mdecorde
  WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "InstallLocation" "$INSTDIR"
796 2961 mdecorde
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "DisplayName" "Nullsoft Install System"
797 2961 mdecorde
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "DisplayIcon" "$INSTDIR\NSIS.exe,0"
798 2961 mdecorde
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "DisplayVersion" "${VERSION}"
799 2961 mdecorde
!ifdef VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
800 2961 mdecorde
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "VersionMajor" "${VER_MAJOR}"
801 2961 mdecorde
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "VersionMinor" "${VER_MINOR}.${VER_REVISION}"
802 2961 mdecorde
!endif
803 2961 mdecorde
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "URLInfoAbout" "http://nsis.sourceforge.net/"
804 2961 mdecorde
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "HelpLink" "http://nsis.sourceforge.net/Support"
805 2961 mdecorde
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoModify" "1"
806 2961 mdecorde
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoRepair" "1"
807 2961 mdecorde
808 2961 mdecorde
  WriteUninstaller $INSTDIR\uninst-nsis.exe
809 2961 mdecorde
810 2961 mdecorde
  ${MementoSectionSave}
811 2961 mdecorde
812 2961 mdecorde
  SetDetailsPrint both
813 2961 mdecorde
814 2961 mdecorde
SectionEnd
815 2961 mdecorde
816 2961 mdecorde
;--------------------------------
817 2961 mdecorde
;Descriptions
818 2961 mdecorde
819 2961 mdecorde
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
820 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The core files required to use NSIS (compiler etc.)"
821 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecExample} "Example installation scripts that show you how to use NSIS"
822 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "Adds icons to your start menu and your desktop for easy access"
823 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecInterfaces} "User interface designs that can be used to change the installer look and feel"
824 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecInterfacesModernUI} "A modern user interface like the wizards of recent Windows versions"
825 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecInterfacesDefaultUI} "The default NSIS user interface which you can customize to make your own UI"
826 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecInterfacesTinyUI} "A tiny version of the default user interface"
827 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecTools} "Tools that help you with NSIS development"
828 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecToolsZ2E} "A utility that converts a ZIP file to a NSIS installer"
829 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGraphics} "Icons, checkbox images and other graphics"
830 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecLangFiles} "Language files used to support multiple languages in an installer"
831 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsPlugins} "Useful plugins that extend NSIS's functionality"
832 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsBanner} "Plugin that lets you show a banner before installation starts"
833 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsLangDLL} "Plugin that lets you add a language select dialog to your installer"
834 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsnsExec} "Plugin that executes console programs and prints its output in the NSIS log window or hides it"
835 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSplash} "Splash screen add-on that lets you add a splash screen to an installer"
836 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSplashT} "Splash screen add-on with transparency support that lets you add a splash screen to an installer"
837 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSystem} "Plugin that lets you call Win32 API or external DLLs"
838 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsMath} "Plugin that lets you evaluate complicated mathematical expressions"
839 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsDialer} "Plugin that provides internet connection functions"
840 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsIO} "Plugin that lets you add custom pages to an installer"
841 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsDialogs} "Plugin that lets you add custom pages to an installer"
842 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsStartMenu} "Plugin that lets the user select the start menu folder"
843 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsBgImage} "Plugin that lets you show a persistent background image plugin and play sounds"
844 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsUserInfo} "Plugin that that gives you the user name and the user account type"
845 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsNSISDL} "Plugin that lets you create a web based installer"
846 2961 mdecorde
  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsVPatch} "Plugin that lets you create patches to upgrade older files"
847 2961 mdecorde
!insertmacro MUI_FUNCTION_DESCRIPTION_END
848 2961 mdecorde
849 2961 mdecorde
;--------------------------------
850 2961 mdecorde
;Installer Functions
851 2961 mdecorde
852 2961 mdecorde
Function .onInit
853 2961 mdecorde
854 2961 mdecorde
  ${MementoSectionRestore}
855 2961 mdecorde
856 2961 mdecorde
FunctionEnd
857 2961 mdecorde
858 2961 mdecorde
!ifdef VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
859 2961 mdecorde
860 2961 mdecorde
Var ReinstallPageCheck
861 2961 mdecorde
862 2961 mdecorde
Function PageReinstall
863 2961 mdecorde
864 2961 mdecorde
  ReadRegStr $R0 HKLM "Software\NSIS" ""
865 2961 mdecorde
866 2961 mdecorde
  ${If} $R0 == ""
867 2961 mdecorde
    Abort
868 2961 mdecorde
  ${EndIf}
869 2961 mdecorde
870 2961 mdecorde
  ReadRegDWORD $R0 HKLM "Software\NSIS" "VersionMajor"
871 2961 mdecorde
  ReadRegDWORD $R1 HKLM "Software\NSIS" "VersionMinor"
872 2961 mdecorde
  ReadRegDWORD $R2 HKLM "Software\NSIS" "VersionRevision"
873 2961 mdecorde
  ReadRegDWORD $R3 HKLM "Software\NSIS" "VersionBuild"
874 2961 mdecorde
  StrCpy $R0 $R0.$R1.$R2.$R3
875 2961 mdecorde
876 2961 mdecorde
  ${VersionCompare} ${VER_MAJOR}.${VER_MINOR}.${VER_REVISION}.${VER_BUILD} $R0 $R0
877 2961 mdecorde
  ${If} $R0 == 0
878 2961 mdecorde
    StrCpy $R1 "NSIS ${VERSION} is already installed. Select the operation you want to perform and click Next to continue."
879 2961 mdecorde
    StrCpy $R2 "Add/Reinstall components"
880 2961 mdecorde
    StrCpy $R3 "Uninstall NSIS"
881 2961 mdecorde
    !insertmacro MUI_HEADER_TEXT "Already Installed" "Choose the maintenance option to perform."
882 2961 mdecorde
    StrCpy $R0 "2"
883 2961 mdecorde
  ${ElseIf} $R0 == 1
884 2961 mdecorde
    StrCpy $R1 "An older version of NSIS is installed on your system. It's recommended that you uninstall the current version before installing. Select the operation you want to perform and click Next to continue."
885 2961 mdecorde
    StrCpy $R2 "Uninstall before installing"
886 2961 mdecorde
    StrCpy $R3 "Do not uninstall"
887 2961 mdecorde
    !insertmacro MUI_HEADER_TEXT "Already Installed" "Choose how you want to install NSIS."
888 2961 mdecorde
    StrCpy $R0 "1"
889 2961 mdecorde
  ${ElseIf} $R0 == 2
890 2961 mdecorde
    StrCpy $R1 "A newer version of NSIS is already installed! It is not recommended that you install an older version. If you really want to install this older version, it's better to uninstall the current version first. Select the operation you want to perform and click Next to continue."
891 2961 mdecorde
    StrCpy $R2 "Uninstall before installing"
892 2961 mdecorde
    StrCpy $R3 "Do not uninstall"
893 2961 mdecorde
    !insertmacro MUI_HEADER_TEXT "Already Installed" "Choose how you want to install NSIS."
894 2961 mdecorde
    StrCpy $R0 "1"
895 2961 mdecorde
  ${Else}
896 2961 mdecorde
    Abort
897 2961 mdecorde
  ${EndIf}
898 2961 mdecorde
899 2961 mdecorde
  nsDialogs::Create 1018
900 2961 mdecorde
  Pop $R4
901 2961 mdecorde
902 2961 mdecorde
  ${NSD_CreateLabel} 0 0 100% 24u $R1
903 2961 mdecorde
  Pop $R1
904 2961 mdecorde
905 2961 mdecorde
  ${NSD_CreateRadioButton} 30u 50u -30u 8u $R2
906 2961 mdecorde
  Pop $R2
907 2961 mdecorde
  ${NSD_OnClick} $R2 PageReinstallUpdateSelection
908 2961 mdecorde
909 2961 mdecorde
  ${NSD_CreateRadioButton} 30u 70u -30u 8u $R3
910 2961 mdecorde
  Pop $R3
911 2961 mdecorde
  ${NSD_OnClick} $R3 PageReinstallUpdateSelection
912 2961 mdecorde
913 2961 mdecorde
  ${If} $ReinstallPageCheck != 2
914 2961 mdecorde
    SendMessage $R2 ${BM_SETCHECK} ${BST_CHECKED} 0
915 2961 mdecorde
  ${Else}
916 2961 mdecorde
    SendMessage $R3 ${BM_SETCHECK} ${BST_CHECKED} 0
917 2961 mdecorde
  ${EndIf}
918 2961 mdecorde
919 2961 mdecorde
  ${NSD_SetFocus} $R2
920 2961 mdecorde
921 2961 mdecorde
  nsDialogs::Show
922 2961 mdecorde
923 2961 mdecorde
FunctionEnd
924 2961 mdecorde
925 2961 mdecorde
Function PageReinstallUpdateSelection
926 2961 mdecorde
927 2961 mdecorde
  Pop $R1
928 2961 mdecorde
929 2961 mdecorde
  ${NSD_GetState} $R2 $R1
930 2961 mdecorde
931 2961 mdecorde
  ${If} $R1 == ${BST_CHECKED}
932 2961 mdecorde
    StrCpy $ReinstallPageCheck 1
933 2961 mdecorde
  ${Else}
934 2961 mdecorde
    StrCpy $ReinstallPageCheck 2
935 2961 mdecorde
  ${EndIf}
936 2961 mdecorde
937 2961 mdecorde
FunctionEnd
938 2961 mdecorde
939 2961 mdecorde
Function PageLeaveReinstall
940 2961 mdecorde
941 2961 mdecorde
  ${NSD_GetState} $R2 $R1
942 2961 mdecorde
943 2961 mdecorde
  StrCmp $R0 "1" 0 +2
944 2961 mdecorde
    StrCmp $R1 "1" reinst_uninstall reinst_done
945 2961 mdecorde
946 2961 mdecorde
  StrCmp $R0 "2" 0 +3
947 2961 mdecorde
    StrCmp $R1 "1" reinst_done reinst_uninstall
948 2961 mdecorde
949 2961 mdecorde
  reinst_uninstall:
950 2961 mdecorde
  ReadRegStr $R1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "UninstallString"
951 2961 mdecorde
952 2961 mdecorde
  ;Run uninstaller
953 2961 mdecorde
  HideWindow
954 2961 mdecorde
955 2961 mdecorde
    ClearErrors
956 2961 mdecorde
    ExecWait '$R1 _?=$INSTDIR'
957 2961 mdecorde
958 2961 mdecorde
    IfErrors no_remove_uninstaller
959 2961 mdecorde
    IfFileExists "$INSTDIR\makensis.exe" no_remove_uninstaller
960 2961 mdecorde
961 2961 mdecorde
      Delete $R1
962 2961 mdecorde
      RMDir $INSTDIR
963 2961 mdecorde
964 2961 mdecorde
    no_remove_uninstaller:
965 2961 mdecorde
966 2961 mdecorde
  StrCmp $R0 "2" 0 +2
967 2961 mdecorde
    Quit
968 2961 mdecorde
969 2961 mdecorde
  BringToFront
970 2961 mdecorde
971 2961 mdecorde
  reinst_done:
972 2961 mdecorde
973 2961 mdecorde
FunctionEnd
974 2961 mdecorde
975 2961 mdecorde
!endif # VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
976 2961 mdecorde
977 2961 mdecorde
Function ShowReleaseNotes
978 2961 mdecorde
  ${If} ${FileExists} $WINDIR\hh.exe
979 2961 mdecorde
    StrCpy $0 $WINDIR\hh.exe
980 2961 mdecorde
    Exec '"$0" mk:@MSITStore:$INSTDIR\NSIS.chm::/SectionF.1.html'
981 2961 mdecorde
  ${Else}
982 2961 mdecorde
    SearchPath $0 hh.exe
983 2961 mdecorde
    ${If} ${FileExists} $0
984 2961 mdecorde
      Exec '"$0" mk:@MSITStore:$INSTDIR\NSIS.chm::/SectionF.1.html'
985 2961 mdecorde
    ${Else}
986 2961 mdecorde
      ExecShell "open" "http://nsis.sourceforge.net/Docs/AppendixF.html#F.1"
987 2961 mdecorde
    ${EndIf}
988 2961 mdecorde
  ${EndIf}
989 2961 mdecorde
FunctionEnd
990 2961 mdecorde
991 2961 mdecorde
;--------------------------------
992 2961 mdecorde
;Uninstaller Section
993 2961 mdecorde
994 2961 mdecorde
Section Uninstall
995 2961 mdecorde
996 2961 mdecorde
  SetDetailsPrint textonly
997 2961 mdecorde
  DetailPrint "Uninstalling NSI Development Shell Extensions..."
998 2961 mdecorde
  SetDetailsPrint listonly
999 2961 mdecorde
1000 2961 mdecorde
  IfFileExists $INSTDIR\makensis.exe nsis_installed
1001 2961 mdecorde
    MessageBox MB_YESNO "It does not appear that NSIS is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?" IDYES nsis_installed
1002 2961 mdecorde
    Abort "Uninstall aborted by user"
1003 2961 mdecorde
  nsis_installed:
1004 2961 mdecorde
1005 2961 mdecorde
  SetDetailsPrint textonly
1006 2961 mdecorde
  DetailPrint "Deleting Registry Keys..."
1007 2961 mdecorde
  SetDetailsPrint listonly
1008 2961 mdecorde
1009 2961 mdecorde
  ReadRegStr $R0 HKCR ".nsi" ""
1010 2961 mdecorde
  StrCmp $R0 "NSIS.Script" 0 +2
1011 2961 mdecorde
    DeleteRegKey HKCR ".nsi"
1012 2961 mdecorde
1013 2961 mdecorde
  ReadRegStr $R0 HKCR ".nsh" ""
1014 2961 mdecorde
  StrCmp $R0 "NSIS.Header" 0 +2
1015 2961 mdecorde
    DeleteRegKey HKCR ".nsh"
1016 2961 mdecorde
1017 2961 mdecorde
  DeleteRegKey HKCR "NSIS.Script"
1018 2961 mdecorde
  DeleteRegKey HKCR "NSIS.Header"
1019 2961 mdecorde
1020 2961 mdecorde
  System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
1021 2961 mdecorde
1022 2961 mdecorde
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS"
1023 2961 mdecorde
  DeleteRegKey HKLM "Software\NSIS"
1024 2961 mdecorde
1025 2961 mdecorde
  SetDetailsPrint textonly
1026 2961 mdecorde
  DetailPrint "Deleting Files..."
1027 2961 mdecorde
  SetDetailsPrint listonly
1028 2961 mdecorde
1029 2961 mdecorde
  Delete $SMPROGRAMS\NSIS.lnk
1030 2961 mdecorde
  Delete $DESKTOP\NSIS.lnk
1031 2961 mdecorde
  Delete $INSTDIR\makensis.exe
1032 2961 mdecorde
  Delete $INSTDIR\makensisw.exe
1033 2961 mdecorde
  Delete $INSTDIR\NSIS.exe
1034 2961 mdecorde
  Delete $INSTDIR\license.txt
1035 2961 mdecorde
  Delete $INSTDIR\COPYING
1036 2961 mdecorde
  Delete $INSTDIR\uninst-nsis.exe
1037 2961 mdecorde
  Delete $INSTDIR\nsisconf.nsi
1038 2961 mdecorde
  Delete $INSTDIR\nsisconf.nsh
1039 2961 mdecorde
  Delete $INSTDIR\NSIS.chm
1040 2961 mdecorde
  RMDir /r $INSTDIR\Bin
1041 2961 mdecorde
  RMDir /r $INSTDIR\Contrib
1042 2961 mdecorde
  RMDir /r $INSTDIR\Docs
1043 2961 mdecorde
  RMDir /r $INSTDIR\Examples
1044 2961 mdecorde
  RMDir /r $INSTDIR\Include
1045 2961 mdecorde
  RMDir /r $INSTDIR\Menu
1046 2961 mdecorde
  RMDir /r $INSTDIR\Plugins
1047 2961 mdecorde
  RMDir /r $INSTDIR\Stubs
1048 2961 mdecorde
  RMDir $INSTDIR
1049 2961 mdecorde
1050 2961 mdecorde
  SetDetailsPrint both
1051 2961 mdecorde
1052 2961 mdecorde
SectionEnd