nsis怎样nsis error修复工具反恐行动

;NSIS Setup Script0002
;--------------------------------0003
!define VER_MAJOR 20005
!define VER_MINOR 00006
!define VER_REVISION 60007
!define VER_BUILD 00008
!define VER_FILE &206&0010
!define VER_DISPLAY &2.06&0011
;--------------------------------0013
;Compile CVS Data Setup0014
!system '&${NSISDIR}\Bin\InstallCVSData.exe& nooverwrite'0016
!echo &Compiling CVS Data Setup...&0017
!system '&${NSISDIR}\makensis& /V1 cvsdata.nsi' = 00018
;--------------------------------0020
;Configuration0021
OutFile ..\nsis${VER_FILE}.exe0023
SetCompressor lzma0024
InstType &Full&0026
InstType &Standard&0027
InstType &Lite&0028
InstallDir $PROGRAMFILES\NSIS0030
InstallDirRegKey HKLM Software\NSIS &&0031
;--------------------------------0033
;Header Files0034
!include &MUI.nsh&0036
!include &Sections.nsh&0037
;--------------------------------0039
;Definitions0040
!define SHCNE_ASSOCCHANGED 0x80000000042
!define SHCNF_IDLIST 00043
;--------------------------------0045
;Configuration0046
;Names0048
Name &NSIS&0049
Caption &NSIS ${VER_DISPLAY} Setup&0050
;Interface Settings0052
!define MUI_ABORTWARNING0053
!define MUI_HEADERIMAGE0055
!define MUI_WELCOMEFINISHPAGE_BITMAP &${NSISDIR}\Contrib\Graphics\Wizard\nsis.bmp&0056
!define MUI_COMPONENTSPAGE_SMALLDESC0058
;Pages0060
!define MUI_WELCOMEPAGE_TITLE &Welcome to the NSIS ${VER_DISPLAY} Setup Wizard&0061
!define MUI_WELCOMEPAGE_TEXT &This wizard will guide you through the installation of NSIS (Nullsoft Scriptable Install System) ${VER_DISPLAY}, 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&0062
!insertmacro MUI_PAGE_WELCOME0064
!insertmacro MUI_PAGE_LICENSE &..\license.txt&0065
Page custom PageReinstall PageLeaveReinstall0066
!insertmacro MUI_PAGE_COMPONENTS0067
!insertmacro MUI_PAGE_DIRECTORY0068
!insertmacro MUI_PAGE_INSTFILES0069
!define MUI_FINISHPAGE_LINK &Visit the NSIS site for the latest news, FAQs and support&0071
!define MUI_FINISHPAGE_LINK_LOCATION &http://nsis.sf.net/&0072
!define MUI_FINISHPAGE_RUN &$INSTDIR\NSIS.exe&0074
!define MUI_FINISHPAGE_NOREBOOTSUPPORT0075
!insertmacro MUI_PAGE_FINISH0077
!insertmacro MUI_UNPAGE_CONFIRM0079
!insertmacro MUI_UNPAGE_INSTFILES0080
;--------------------------------0082
;Languages0083
!insertmacro MUI_LANGUAGE &English&0085
;--------------------------------0087
;Reserve Files0088
&&;These files should be inserted before other files in the data block0090
&&ReserveFile &makensis.ini&0092
&&!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS0093
;--------------------------------0095
;Installer Sections0096
Section &NSIS Core Files (required)& SecCore0098
&&SetDetailsPrint textonly0100
&&DetailPrint &Installing NSIS Core Files...&0101
&&SetDetailsPrint listonly0102
&&SectionIn 1 2 3 RO0104
&&SetOutPath $INSTDIR0105
&&RMDir /r $SMPROGRAMS\NSIS0106
&&SetOverwrite on0108
&&File ..\makensis.exe0109
&&File ..\makensisw.exe0110
&&File ..\license.txt0111
&&File ..\NSIS.chm0112
&&File ..\NSIS.exe0114
&&IfFileExists $INSTDIR\nsisconf.nsi && +20115
&&Rename $INSTDIR\nsisconf.nsi $INSTDIR\nsisconf.nsh0116
&&SetOverwrite off0117
&&File ..\nsisconf.nsh0118
&&SetOverwrite on0119
&&SetOutPath $INSTDIR\Include0121
&&File ..\Include\WinMessages.nsh0122
&&File ..\Include\Sections.nsh0123
&&File ..\Include\Library.nsh0124
&&File ..\Include\UpgradeDLL.nsh0125
&&File ..\Include\LogicLib.nsh0126
&&File ..\Include\StrFunc.nsh0127
&&File ..\Include\StrFunc.txt0128
&&File ..\Include\Colors.nsh0129
&&SetOutPath $INSTDIR\Contrib\Makensisw0131
&&File ..\Contrib\Makensisw\*.txt0132
&&SetOutPath $INSTDIR\Menu0134
&&File ..\Menu\*.html0135
&&SetOutPath $INSTDIR\Menu\images0136
&&File ..\Menu\images\*.gif0137
&&Delete $INSTDIR\makensis.htm0139
&&Delete $INSTDIR\Docs\*.html0140
&&Delete $INSTDIR\Docs\style.css0141
&&RMDir $INSTDIR\Docs0142
&&SetOutPath $INSTDIR\Contrib\Library\LibraryLocal0144
&&File ..\Contrib\Library\LibraryLocal\*.exe0145
&&File ..\Contrib\Library\LibraryLocal\*.cpp0146
&&File ..\Contrib\Library\LibraryLocal\*.dsw0147
&&File ..\Contrib\Library\LibraryLocal\*.dsp0148
&&SetOutPath $INSTDIR\Contrib\Library\RegTool0150
&&File ..\Contrib\Library\RegTool\*.nsi0151
&&File ..\Contrib\Library\RegTool\*.bin0152
&&SetOutPath $INSTDIR\Contrib\Library\TypeLib0154
&&File ..\Contrib\Library\TypeLib\*.cpp0155
&&File ..\Contrib\Library\TypeLib\*.dsw0156
&&File ..\Contrib\Library\TypeLib\*.dsp0157
&&SetOutPath $INSTDIR\Plugins0159
&&File ..\Plugins\TypeLib.dll0160
&&ReadRegStr $R0 HKCR &.nsi& &&0162
&&StrCmp $R0 &NSISFile& 0 +20163
&&&&DeleteRegKey HKCR &NSISFile&0164
&&WriteRegStr HKCR &.nsi& && &NSIS.Script&0166
&&WriteRegStr HKCR &NSIS.Script& && &NSIS Script File&0167
&&WriteRegStr HKCR &NSIS.Script\DefaultIcon& && &$INSTDIR\makensisw.exe,1&0168
&&ReadRegStr $R0 HKCR &NSIS.Script\shell\open\command& &&0169
&&StrCmp $R0 && 0 no_nsiopen0170
&&&&WriteRegStr HKCR &NSIS.Script\shell& && &open&0171
&&&&WriteRegStr HKCR &NSIS.Script\shell\open\command& && 'notepad.exe &%1&'0172
&&no_nsiopen:0173
&&WriteRegStr HKCR &NSIS.Script\shell\compile& && &Compile NSIS Script&0174
&&WriteRegStr HKCR &NSIS.Script\shell\compile\command& && '&$INSTDIR\makensisw.exe& &%1&'0175
&&WriteRegStr HKCR &NSIS.Script\shell\compile-compressor& && &Compile NSIS Script (Choose Compressor)&0176
&&WriteRegStr HKCR &NSIS.Script\shell\compile-compressor\command& && '&$INSTDIR\makensisw.exe& /ChooseCompressor &%1&'0177
&&ReadRegStr $R0 HKCR &.nsh& &&0179
&&StrCmp $R0 &NSHFile& 0 +20180
&&&&DeleteRegKey HKCR &NSHFile&0181
&&WriteRegStr HKCR &.nsh& && &NSIS.Header&0183
&&WriteRegStr HKCR &NSIS.Header& && &NSIS Header File&0184
&&WriteRegStr HKCR &NSIS.Header\DefaultIcon& && &$INSTDIR\makensisw.exe,1&0185
&&ReadRegStr $R0 HKCR &NSIS.Header\shell\open\command& &&0186
&&StrCmp $R0 && 0 no_nshopen0187
&&&&WriteRegStr HKCR &NSIS.Header\shell& && &open&0188
&&&&WriteRegStr HKCR &NSIS.Header\shell\open\command& && 'notepad.exe &%1&'0189
&&no_nshopen:0190
&&System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'0192
SectionEnd0194
Section &Script Examples& SecExample0196
&&SetDetailsPrint textonly0198
&&DetailPrint &Installing Script Examples...&0199
&&SetDetailsPrint listonly0200
&&SectionIn 1 2 30202
&&SetOutPath $INSTDIR\Examples0203
&&File ..\Examples\cvsdata.nsi0204
&&File ..\Examples\makensis.nsi0205
&&File ..\Examples\makensis.ini0206
&&File ..\Examples\example1.nsi0207
&&File ..\Examples\example2.nsi0208
&&File ..\Examples\viewhtml.nsi0209
&&File ..\Examples\waplugin.nsi0210
&&File ..\Examples\bigtest.nsi0211
&&File ..\Examples\primes.nsi0212
&&File ..\Examples\rtest.nsi0213
&&File ..\Examples\gfx.nsi0214
&&File ..\Examples\one-section.nsi0215
&&File ..\Examples\languages.nsi0216
&&File ..\Examples\VersionInfo.nsi0217
&&File ..\Examples\UserVars.nsi0218
&&File ..\Examples\LogicLib.nsi0219
&&File ..\Examples\silent.nsi0220
&&File ..\Examples\StrFunc.nsi0221
SectionEnd0222
!ifndef NO_STARTMENUSHORTCUTS0224
Section &Start Menu and Desktop Shortcuts& SecShortcuts0225
&&SetDetailsPrint textonly0227
&&DetailPrint &Installing Start Menu and Desktop Shortcuts...&0228
&&SetDetailsPrint listonly0229
Section &Desktop Shortcut& SecShortcuts0232
&&SetDetailsPrint textonly0234
&&DetailPrint &Installing Desktop Shortcut...&0235
&&SetDetailsPrint listonly0236
!endif0238
&&SectionIn 1 2 30239
&&SetOutPath $INSTDIR0240
!ifndef NO_STARTMENUSHORTCUTS0241
&&CreateDirectory $SMPROGRAMS\NSIS0242
&&CreateShortCut &$SMPROGRAMS\NSIS\NSIS Menu.lnk& &$INSTDIR\NSIS.exe& &&0244
&&CreateShortCut &$SMPROGRAMS\NSIS\MakeNSISW (Compiler GUI).lnk& &$INSTDIR\makensisw.exe&0246
&&IfFileExists &$INSTDIR\Bin\NSISUpdate.exe& && +20248
&&&&CreateShortCut &$SMPROGRAMS\NSIS\NSIS Update.lnk& &$INSTDIR\Bin\NSISUpdate.exe&0249
&&CreateShortCut &$SMPROGRAMS\NSIS\NSIS Documentation.lnk& &$INSTDIR\NSIS.chm&0251
&&WriteINIStr &$SMPROGRAMS\NSIS\NSIS Site.url& &InternetShortcut& &URL& &http://nsis.sourceforge.net/&0252
&&CreateShortCut &$SMPROGRAMS\NSIS\Uninstall NSIS.lnk& &$INSTDIR\uninst-nsis.exe&0253
!endif0255
&&CreateShortCut &$DESKTOP\Nullsoft Install System.lnk& &$INSTDIR\NSIS.exe&0257
SectionEnd0259
SectionGroup &User Interfaces& SecInterfaces0261
Section &Modern User Interface& SecInterfacesModernUI0263
&&SetDetailsPrint textonly0265
&&DetailPrint &Installing User Interfaces | Modern User Interface...&0266
&&SetDetailsPrint listonly0267
&&SectionIn 1 2 30269
&&SetOutPath &$INSTDIR\Examples\Modern UI&0271
&&File &..\Examples\Modern UI\Basic.nsi&0272
&&File &..\Examples\Modern UI\HeaderBitmap.nsi&0273
&&File &..\Examples\Modern UI\MultiLanguage.nsi&0274
&&File &..\Examples\Modern UI\InstallOptions.nsi&0275
&&File &..\Examples\Modern UI\ioA.ini&0276
&&File &..\Examples\Modern UI\ioB.ini&0277
&&File &..\Examples\Modern UI\ioC.ini&0278
&&File &..\Examples\Modern UI\StartMenu.nsi&0279
&&File &..\Examples\Modern UI\WelcomeFinish.nsi&0280
&&SetOutPath &$INSTDIR\Contrib\Modern UI&0282
&&File &..\Contrib\Modern UI\System.nsh&0283
&&File &..\Contrib\Modern UI\Readme.html&0284
&&File &..\Contrib\Modern UI\Changelog.txt&0285
&&File &..\Contrib\Modern UI\License.txt&0286
&&File &..\Contrib\Modern UI\ioSpecial.ini&0287
&&SetOutPath &$INSTDIR\Contrib\Modern UI\images&0289
&&File &..\Contrib\Modern UI\images\header.gif&0290
&&File &..\Contrib\Modern UI\images\screen1.png&0291
&&File &..\Contrib\Modern UI\images\screen2.png&0292
&&File &..\Contrib\Modern UI\images\open.gif&0293
&&File &..\Contrib\Modern UI\images\closed.gif&0294
&&SetOutPath $INSTDIR\Contrib\UIs0296
&&File &..\Contrib\UIs\modern.exe&0297
&&File &..\Contrib\UIs\modern_headerbmp.exe&0298
&&File &..\Contrib\UIs\modern_headerbmpr.exe&0299
&&File &..\Contrib\UIs\modern_nodesc.exe&0300
&&File &..\Contrib\UIs\modern_smalldesc.exe&0301
&&SetOutPath $INSTDIR\Include0303
&&File &..\Include\MUI.nsh&0304
SectionEnd0306
Section &Default User Interface& SecInterfacesDefaultUI0308
&&SetDetailsPrint textonly0310
&&DetailPrint &Installing User Interfaces | Default User Interface...&0311
&&SetDetailsPrint listonly0312
&&SectionIn 1 20314
&&SetOutPath &$INSTDIR\Contrib\UIs&0316
&&File &..\Contrib\UIs\default.exe&0317
SectionEnd0319
Section &Tiny User Interface& SecInterfacesTinyUI0321
&&SetDetailsPrint textonly0323
&&DetailPrint &Installing User Interfaces | Tiny User Interface...&0324
&&SetDetailsPrint listonly0325
&&SectionIn 1 20327
&&SetOutPath &$INSTDIR\Contrib\UIs&0329
&&File &..\Contrib\UIs\sdbarker_tiny.exe&0330
SectionEnd0332
SectionGroupEnd0334
Section &Graphics& SecGraphics0336
&&SetDetailsPrint textonly0338
&&DetailPrint &Installing Graphics...&0339
&&SetDetailsPrint listonly0340
&&SectionIn 1 20342
&&Delete $INSTDIR\Contrib\Icons\*.ico0344
&&Delete $INSTDIR\Contrib\Icons\*.bmp0345
&&RMDir $INSTDIR\Contrib\Icons0346
&&SetOutPath $INSTDIR\Contrib\Graphics0347
&&File /r &..\Contrib\Graphics\*.ico&0348
&&File /r &..\Contrib\Graphics\*.bmp&0349
SectionEnd0350
Section &Language Files& SecLangFiles0352
&&SetDetailsPrint textonly0354
&&DetailPrint &Installing Language Files...&0355
&&SetDetailsPrint listonly0356
&&SectionIn 1 20358
&&SetOutPath &$INSTDIR\Contrib\Language files&0360
&&File &..\Contrib\Language files\*.nlf&0361
&&SetOutPath $INSTDIR\Bin0363
&&File ..\Bin\MakeLangID.exe0364
&&!insertmacro SectionFlagIsSet ${SecInterfacesModernUI} ${SF_SELECTED} mui nomui0366
&&mui:0367
&&&&SetOutPath &$INSTDIR\Contrib\Modern UI\Language files&0368
&&&&File &..\Contrib\Modern UI\Language files\*.nsh&0369
&&nomui:0370
SectionEnd0372
SectionGroup &Tools& SecTools0374
Section &NSIS Update& SecToolsUpdate0376
&&SetDetailsPrint textonly0378
&&DetailPrint &Installing Tools | NSIS Update...&0379
&&SetDetailsPrint listonly0380
&&SectionIn 1 20382
&&SetOutPath $INSTDIR\Bin0384
&&File ..\Bin\NSISUpdate.exe0385
&&File ..\Bin\InstallCVSData.exe0386
&&IfFileExists &$INSTDIR\CVS\Root& 0 +20388
&&&&Exec '&$INSTDIR\Bin\InstallCVSData.exe&'0389
SectionEnd0391
Section &Zip2Exe& SecToolsZ2E0393
&&SetDetailsPrint textonly0395
&&DetailPrint &Installing Tools | Zip2Exe...&0396
&&SetDetailsPrint listonly0397
&&SectionIn 1 20399
&&SetOutPath $INSTDIR\Bin0401
&&File ..\Bin\zip2exe.exe0402
&&SetOutPath $INSTDIR\Contrib\zip2exe0403
&&File ..\Contrib\zip2exe\Base.nsh0404
&&File ..\Contrib\zip2exe\Modern.nsh0405
&&File ..\Contrib\zip2exe\Classic.nsh0406
SectionEnd0408
SectionGroupEnd0410
SectionGroup &Plug-ins& SecPluginsPlugins0412
Section &Banner& SecPluginsBanner0414
&&SetDetailsPrint textonly0416
&&DetailPrint &Installing Plug-ins | Banner...&0417
&&SetDetailsPrint listonly0418
&&SectionIn 1 20420
&&SetOutPath $INSTDIR\Plugins0422
&&File ..\Plugins\Banner.dll0423
&&SetOutPath $INSTDIR\Contrib\Banner0424
&&File ..\Contrib\Banner\Readme.txt0425
&&File ..\Contrib\Banner\Example.nsi0426
SectionEnd0427
Section &Language DLL& SecPluginsLangDLL0429
&&SetDetailsPrint textonly0431
&&DetailPrint &Installing Plug-ins | Language DLL...&0432
&&SetDetailsPrint listonly0433
&&SectionIn 1 20435
&&SetOutPath $INSTDIR\Plugins0436
&&File ..\Plugins\LangDLL.dll0437
SectionEnd0438
Section &nsExec& SecPluginsnsExec0440
&&SetDetailsPrint textonly0442
&&DetailPrint &Installing Plug-ins | nsExec...&0443
&&SetDetailsPrint listonly0444
&&SectionIn 1 20446
&&SetOutPath $INSTDIR\Plugins0448
&&File ..\Plugins\nsExec.dll0449
&&SetOutPath $INSTDIR\Contrib\nsExec0450
&&File ..\Contrib\nsExec\*.txt0451
&&File ..\Contrib\nsExec\*.nsi0452
SectionEnd0453
Section &Splash& SecPluginsSplash0455
&&SetDetailsPrint textonly0457
&&DetailPrint &Installing Plug-ins | Splash...&0458
&&SetDetailsPrint listonly0459
&&SectionIn 1 20461
&&SetOutPath $INSTDIR\Plugins0463
&&File ..\Plugins\splash.dll0464
&&SetOutPath $INSTDIR\Contrib\Splash0465
&&File ..\Contrib\Splash\splash.txt0466
&&File ..\Contrib\Splash\Example.nsi0467
SectionEnd0468
Section &AdvSplash& SecPluginsSplashT0470
&&SetDetailsPrint textonly0472
&&DetailPrint &Installing Plug-ins | AdvSplash...&0473
&&SetDetailsPrint listonly0474
&&SectionIn 1 20476
&&SetOutPath $INSTDIR\Plugins0478
&&File ..\Plugins\advsplash.dll0479
&&SetOutPath $INSTDIR\Contrib\AdvSplash0480
&&File ..\Contrib\AdvSplash\advsplash.txt0481
&&File ..\Contrib\AdvSplash\Example.nsi0482
SectionEnd0483
Section &BgImage& SecPluginsBgImage0485
&&SetDetailsPrint textonly0487
&&DetailPrint &Installing Plug-ins | BgImage...&0488
&&SetDetailsPrint listonly0489
&&SectionIn 1 20491
&&SetOutPath $INSTDIR\Plugins0493
&&File ..\Plugins\BgImage.dll0494
&&SetOutPath $INSTDIR\Contrib\BgImage0495
&&File ..\Contrib\BgImage\BgImage.txt0496
&&File ..\Contrib\BgImage\Example.nsi0497
SectionEnd0498
Section &InstallOptions& SecPluginsIO0500
&&SetDetailsPrint textonly0502
&&DetailPrint &Installing Plug-ins | InstallOptions...&0503
&&SetDetailsPrint listonly0504
&&SectionIn 1 20506
&&SetOutPath $INSTDIR\Plugins0508
&&File ..\Plugins\InstallOptions.dll0509
&&SetOutPath $INSTDIR\Contrib\InstallOptions0510
&&File ..\Contrib\InstallOptions\Readme.html0511
&&File ..\Contrib\InstallOptions\Changelog.txt0512
&&File ..\Contrib\InstallOptions\test.ini0513
&&File ..\Contrib\InstallOptions\test.nsi0514
&&File ..\Contrib\InstallOptions\testimgs.ini0515
&&File ..\Contrib\InstallOptions\testimgs.nsi0516
&&File ..\Contrib\InstallOptions\testlink.ini0517
&&File ..\Contrib\InstallOptions\testlink.nsi0518
&&File ..\Contrib\InstallOptions\testnotify.ini0519
&&File ..\Contrib\InstallOptions\testnotify.nsi0520
SectionEnd0521
Section &Math& SecPluginsMath0523
&&SetDetailsPrint textonly0525
&&DetailPrint &Installing Plug-ins | Math...&0526
&&SetDetailsPrint listonly0527
&&SectionIn 1 20529
&&SetOutPath $INSTDIR\Plugins0531
&&File ..\Plugins\Math.dll0532
&&SetOutPath $INSTDIR\Contrib\Math0533
&&File ..\Contrib\Math\Math.txt0534
&&File ..\Contrib\Math\math.nsi0535
&&File ..\Contrib\Math\mathtest.txt0536
&&File ..\Contrib\Math\mathtest.nsi0537
&&File ..\Contrib\Math\mathtest.ini0538
SectionEnd0540
Section &NSISdl& SecPluginsNSISDL0542
&&SetDetailsPrint textonly0544
&&DetailPrint &Installing Plug-ins | NSISdl...&0545
&&SetDetailsPrint listonly0546
&&SectionIn 1 20548
&&SetOutPath $INSTDIR\Plugins0550
&&File ..\Plugins\nsisdl.dll0551
&&SetOutPath $INSTDIR\Contrib\NSISdl0552
&&File ..\Contrib\NSISdl\ReadMe.txt0553
&&File ..\Contrib\NSISdl\License.txt0554
SectionEnd0555
Section &System& SecPluginsSystem0557
&&SetDetailsPrint textonly0559
&&DetailPrint &Installing Plug-ins | System...&0560
&&SetDetailsPrint listonly0561
&&SectionIn 1 20563
&&SetOutPath $INSTDIR\Plugins0565
&&File ..\Plugins\System.dll0566
&&SetOutPath $INSTDIR\Contrib\System0567
&&File ..\Contrib\System\*.dll0568
&&File ..\Contrib\System\*.nsh0569
&&File ..\Contrib\System\*.nsi0570
&&File ..\Contrib\System\*.txt0571
&&File ..\Contrib\System\*.html0572
SectionEnd0573
Section &StartMenu& SecPluginsStartMenu0575
&&SetDetailsPrint textonly0577
&&DetailPrint &Installing Plug-ins | StartMenu...&0578
&&SetDetailsPrint listonly0579
&&SectionIn 1 20581
&&SetOutPath $INSTDIR\Plugins0583
&&File ..\Plugins\StartMenu.dll0584
&&SetOutPath $INSTDIR\Contrib\StartMenu0585
&&File ..\Contrib\StartMenu\Example.nsi0586
&&File ..\Contrib\StartMenu\Readme.txt0587
SectionEnd0588
Section &UserInfo& SecPluginsUserInfo0590
&&SetDetailsPrint textonly0592
&&DetailPrint &Installing Plug-ins | UserInfo...&0593
&&SetDetailsPrint listonly0594
&&SectionIn 1 20596
&&SetOutPath $INSTDIR\Plugins0598
&&File ..\Plugins\UserInfo.dll0599
&&SetOutPath $INSTDIR\Contrib\UserInfo0600
&&File ..\Contrib\UserInfo\UserInfo.nsi0601
SectionEnd0602
Section &Dialer& SecPluginsDialer0604
&&SetDetailsPrint textonly0606
&&DetailPrint &Installing Plug-ins | Dialer...&0607
&&SetDetailsPrint listonly0608
&&SectionIn 1 20610
&&SetOutPath $INSTDIR\Plugins0612
&&File ..\Plugins\Dialer.dll0613
&&SetOutPath $INSTDIR\Contrib\Dialer0614
&&File ..\Contrib\Dialer\Dialer.txt0615
SectionEnd0616
Section &VPatch& SecPluginsVPatch0618
&&SetDetailsPrint textonly0620
&&DetailPrint &Installing Plug-ins | VPatch...&0621
&&SetDetailsPrint listonly0622
&&SectionIn 1 20624
&&SetOutPath $INSTDIR\Plugins0626
&&File ..\Plugins\VPatch.dll0627
&&SetOutPath $INSTDIR\Contrib\VPatch0628
&&File ..\Contrib\VPatch\GenPat.exe0629
&&File ..\Contrib\VPatch\Readme.html0630
&&File ..\Contrib\VPatch\example.nsi0631
&&File ..\Contrib\VPatch\oldfile.txt0632
&&File ..\Contrib\VPatch\newfile.txt0633
&&File ..\Contrib\VPatch\patch.pat0634
SectionEnd0635
SectionGroupEnd0637
SectionGroup &Source code& SecSrc0639
Section &NSIS Source Code& SecSrcNSIS0641
&&SetDetailsPrint textonly0643
&&DetailPrint &Installing Source Code | NSIS Source Code...&0644
&&SetDetailsPrint listonly0645
&&SectionIn 10647
&&# makensis0649
&&SetOutPath $INSTDIR\Source0650
&&File ..\Source\*.cpp0651
&&File ..\Source\*.c0652
&&File ..\Source\*.h0653
&&File ..\Source\Makefile0654
&&File ..\Source\makenssi.dsp0655
&&File ..\Source\makenssi.dsw0656
&&# boost0657
&&SetOutPath $INSTDIR\Source\boost0658
&&File ..\Source\boost\*.hpp0659
&&SetOutPath $INSTDIR\Source\boost\detail0660
&&File ..\Source\boost\detail\*.hpp0661
&&# zlib0662
&&SetOutPath $INSTDIR\Source\zlib0663
&&File ..\Source\zlib\*.*0664
&&# bzip20665
&&SetOutPath $INSTDIR\Source\bzip20666
&&File ..\Source\bzip2\*.*0667
&&# lzma0668
&&SetOutPath $INSTDIR\Source\7zip0669
&&File ..\Source\7zip\*.*0670
&&SetOutPath $INSTDIR\Source\7zip\Common0671
&&File ..\Source\7zip\Common\*.*0672
&&SetOutPath $INSTDIR\Source\7zip\7zip0673
&&File ..\Source\7zip\7zip\*.*0674
&&SetOutPath $INSTDIR\Source\7zip\7zip\Compress\LZ0675
&&File ..\Source\7zip\7zip\Compress\LZ\*.*0676
&&SetOutPath $INSTDIR\Source\7zip\7zip\Compress\LZ\BinTree0677
&&File ..\Source\7zip\7zip\Compress\LZ\BinTree\*.*0678
&&SetOutPath $INSTDIR\Source\7zip\7zip\Compress\LZMA0679
&&File ..\Source\7zip\7zip\Compress\LZMA\*.*0680
&&SetOutPath $INSTDIR\Source\7zip\7zip\Compress\RangeCoder0681
&&File ..\Source\7zip\7zip\Compress\RangeCoder\*.*0682
&&SetOutPath $INSTDIR\Source\7zip\7zip\Common0683
&&File ..\Source\7zip\7zip\Common\*.*0684
&&# exehead0685
&&SetOutPath $INSTDIR\Source\exehead0686
&&File ..\Source\exehead\*.c0687
&&File ..\Source\exehead\*.h0688
&&File ..\Source\exehead\resource.rc0689
&&File ..\Source\exehead\*.dsp0690
&&File ..\Source\exehead\Makefile0691
&&File ..\Source\exehead\nsis.ico0692
&&File ..\Source\exehead\uninst.ico0693
&&File ..\Source\exehead\bitmap1.bmp0694
&&File ..\Source\exehead\bin2h.exe0695
&&# tests0696
&&SetOutPath $INSTDIR\Source\Tests0697
&&File ..\Source\Tests\*.cpp0698
&&File ..\Source\Tests\Tests.dsp0699
SectionEnd0700
Section &ExDLL Source (required)& SecSrcEx0702
&&;required for other plugins sources0704
&&;text changes in .onSelChange0705
&&SetDetailsPrint textonly0707
&&DetailPrint &Installing Source Code | ExDLL Source...&0708
&&SetDetailsPrint listonly0709
&&SectionIn 10711
&&SetOutPath $INSTDIR\Contrib\ExDLL0713
&&File ..\Contrib\ExDLL\exdll.c0714
&&File ..\Contrib\ExDLL\exdll.h0715
&&File ..\Contrib\ExDLL\exdll.dsp0716
&&File ..\Contrib\ExDLL\exdll.dsw0717
&&File ..\Contrib\ExDLL\exdll.dpr0718
&&File ..\Contrib\ExDLL\exdll_with_unit.dpr0719
&&File ..\Contrib\ExDLL\nsis.pas0720
&&File ..\Contrib\ExDLL\extdll.inc0721
SectionEnd0723
Section &Zip2Exe Source& SecToolsZ2ES0725
&&SetDetailsPrint textonly0727
&&DetailPrint &Installing Source Code | Zip2exe Source...&0728
&&SetDetailsPrint listonly0729
&&SectionIn 10731
&&RMDir /r $INSTDIR\Source\Zip2Exe0733
&&SetOutPath $INSTDIR\Contrib\zip2exe0734
&&File ..\Contrib\zip2exe\*.cpp0735
&&File ..\Contrib\zip2exe\*.ico0736
&&File ..\Contrib\zip2exe\*.h0737
&&File ..\Contrib\zip2exe\*.rc0738
&&File ..\Contrib\zip2exe\*.dsw0739
&&File ..\Contrib\zip2exe\*.dsp0740
&&File ..\Contrib\zip2exe\*.xml0741
&&SetOutPath $INSTDIR\Contrib\zip2exe\zlib0742
&&File ..\Contrib\zip2exe\zlib\*.*0743
SectionEnd0744
SectionGroup &Tools& SecToolsS0746
Section &MakeNSISW Source& SecSrcMNW0748
&&SetDetailsPrint textonly0750
&&DetailPrint &Installing Source Code | MakeNSISW Source...&0751
&&SetDetailsPrint listonly0752
&&SectionIn 10754
&&SetOutPath $INSTDIR\Contrib\Makensisw0756
&&File ..\Contrib\Makensisw\*.cpp0757
&&File ..\Contrib\Makensisw\*.xml0758
&&File ..\Contrib\Makensisw\*.h0759
&&File ..\Contrib\Makensisw\*.dsw0760
&&File ..\Contrib\Makensisw\*.dsp0761
&&File ..\Contrib\Makensisw\*.rc0762
&&File ..\Contrib\Makensisw\*.bmp0763
&&File ..\Contrib\Makensisw\*.ico0764
&&File ..\Contrib\Makensisw\*.psp0765
&&#File ..\Contrib\Makensisw\Makefile0766
SectionEnd0767
Section &UI Holder Source& SecSrcUIHolder0769
&&SetDetailsPrint textonly0771
&&DetailPrint &Installing Source Code | UI Holder...&0772
&&SetDetailsPrint listonly0773
&&SectionIn 10775
&&SetOutPath &$INSTDIR\Contrib\UIs\UI Holder&0777
&&File &..\Contrib\UIs\UI Holder\*.h&0778
&&File &..\Contrib\UIs\UI Holder\*.cpp&0779
&&File &..\Contrib\UIs\UI Holder\*.rc&0780
&&File &..\Contrib\UIs\UI Holder\*.dsw&0781
&&File &..\Contrib\UIs\UI Holder\*.dsp&0782
SectionEnd0783
SectionGroupEnd0785
SectionGroup &Plug-ins& SecPluginsPluginsS0787
Section &Banner Source& SecPluginsBannerS0789
&&SetDetailsPrint textonly0791
&&DetailPrint &Installing Source Code | Plug-ins | Banner Source...&0792
&&SetDetailsPrint listonly0793
&&SectionIn 10795
&&SetOutPath $INSTDIR\Contrib\Banner0797
&&File ..\Contrib\Banner\Banner.dsw0798
&&File ..\Contrib\Banner\Banner.dsp0799
&&File ..\Contrib\Banner\Banner.c0800
SectionEnd0801
Section &Language DLL Source& SecPluginsLangDLLS0803
&&SetDetailsPrint textonly0805
&&DetailPrint &Installing Source Code | Plug-ins | Language DLL Source...&0806
&&SetDetailsPrint listonly0807
&&SectionIn 10809
&&SetOutPath $INSTDIR\Contrib\LangDLL0811
&&File ..\Contrib\LangDLL\LangDLL.c0812
&&File ..\Contrib\LangDLL\resource.h0813
&&File ..\Contrib\LangDLL\resource.rc0814
&&File ..\Contrib\LangDLL\LangDLL.dsw0815
&&File ..\Contrib\LangDLL\LangDLL.dsp0816
SectionEnd0817
Section &nsExec Source& SecPluginsnsExecS0819
&&SetDetailsPrint textonly0821
&&DetailPrint &Installing Source Code | Plug-ins | nsExec Source...&0822
&&SetDetailsPrint listonly0823
&&SectionIn 10825
&&SetOutPath $INSTDIR\Contrib\nsExec0827
&&File ..\Contrib\nsExec\*.c0828
&&File ..\Contrib\nsExec\*.dsw0829
&&File ..\Contrib\nsExec\*.dsp0830
SectionEnd0831
Section &Splash Source& SecPluginsSplashS0833
&&SetDetailsPrint textonly0835
&&DetailPrint &Installing Source Code | Plug-ins | Splash Source...&0836
&&SetDetailsPrint listonly0837
&&SectionIn 10839
&&SetOutPath $INSTDIR\Contrib\Splash0841
&&File ..\Contrib\Splash\splash.c0842
&&File ..\Contrib\Splash\splash.dsp0843
&&File ..\Contrib\Splash\splash.dsw0844
SectionEnd0845
Section &AdvSplash Source& SecPluginsSplashTS0847
&&SetDetailsPrint textonly0849
&&DetailPrint &Installing Source Code | Plug-ins | AdvSplash Source...&0850
&&SetDetailsPrint listonly0851
&&SectionIn 10853
&&SetOutPath $INSTDIR\Contrib\AdvSplash0855
&&File ..\Contrib\AdvSplash\*.c0856
&&File ..\Contrib\AdvSplash\*.dsw0857
&&File ..\Contrib\AdvSplash\*.dsp0858
SectionEnd0859
Section &BgImage Source& SecPluginsBgImageS0861
&&SetDetailsPrint textonly0863
&&DetailPrint &Installing Source Code | Plug-ins | BgImage Source...&0864
&&SetDetailsPrint listonly0865
&&SectionIn 10867
&&SetOutPath $INSTDIR\Contrib\BgImage0869
&&File ..\Contrib\BgImage\BgImage.cpp0870
&&File ..\Contrib\BgImage\BgImage.dsw0871
&&File ..\Contrib\BgImage\BgImage.dsp0872
SectionEnd0873
Section &InstallOptions Source& SecPluginsIOS0875
&&SetDetailsPrint textonly0877
&&DetailPrint &Installing Source Code | Plug-ins | InstallOptions Source...&0878
&&SetDetailsPrint listonly0879
&&SectionIn 10881
&&SetOutPath $INSTDIR\Contrib\InstallOptions0883
&&File ..\Contrib\InstallOptions\io.dsp0884
&&File ..\Contrib\InstallOptions\io.dsw0885
&&File ..\Contrib\InstallOptions\InstallerOptions.cpp0886
&&File ..\Contrib\InstallOptions\*.rc0887
&&File ..\Contrib\InstallOptions\*.h0888
SectionEnd0889
Section &Math Source& SecPluginsMathS0891
&&SetDetailsPrint textonly0893
&&DetailPrint &Installing Source Code | Plug-ins | Math Source...&0894
&&SetDetailsPrint listonly0895
&&SectionIn 10897
&&SetOutPath $INSTDIR\Contrib\Math\Source0899
&&File ..\Contrib\Math\Source\*.c0900
&&File ..\Contrib\Math\Source\*.h0901
&&File ..\Contrib\Math\Source\*.sln0902
&&File ..\Contrib\Math\Source\*.lib0903
&&File ..\Contrib\Math\Source\*.vcproj0904
SectionEnd0905
Section &NSISdl Source& SecPluginsNSISDLS0907
&&SetDetailsPrint textonly0909
&&DetailPrint &Installing Source Code | Plug-ins | NSISdl Source...&0910
&&SetDetailsPrint listonly0911
&&SectionIn 10913
&&SetOutPath $INSTDIR\Contrib\NSISdl0915
&&File ..\Contrib\NSISdl\nsisdl.dsw0916
&&File ..\Contrib\NSISdl\nsisdl.dsp0917
&&File ..\Contrib\NSISdl\*.cpp0918
&&File ..\Contrib\NSISdl\*.h0919
SectionEnd0920
Section &System Source& SecPluginsSystemS0922
&&SetDetailsPrint textonly0924
&&DetailPrint &Installing Source Code | Plug-ins | System Source...&0925
&&SetDetailsPrint listonly0926
&&SectionIn 10928
&&SetOutPath $INSTDIR\Contrib\System\Source0930
&&File ..\Contrib\System\Source\*.c0931
&&File ..\Contrib\System\Source\*.h0932
&&File ..\Contrib\System\Source\*.sln0933
&&File ..\Contrib\System\Source\*.obj0934
&&File ..\Contrib\System\Source\*.vcproj0935
SectionEnd0936
Section &StartMenu Source& SecPluginsStartMenuS0938
&&SetDetailsPrint textonly0940
&&DetailPrint &Installing Source Code | Plug-ins | StartMenu Source...&0941
&&SetDetailsPrint listonly0942
&&SectionIn 10944
&&SetOutPath $INSTDIR\Contrib\StartMenu0945
&&File ..\Contrib\StartMenu\StartMenu.c0946
&&File ..\Contrib\StartMenu\StartMenu.dsp0947
&&File ..\Contrib\StartMenu\StartMenu.dsw0948
&&File ..\Contrib\StartMenu\StartMenu.rc0949
&&File ..\Contrib\StartMenu\resource.h0950
SectionEnd0951
Section &UserInfo Source& SecPluginsUserInfoS0953
&&SetDetailsPrint textonly0955
&&DetailPrint &Installing Source Code | Plug-ins | UserInfo Source...&0956
&&SetDetailsPrint listonly0957
&&SectionIn 10959
&&SetOutPath $INSTDIR\Contrib\UserInfo0961
&&File ..\Contrib\UserInfo\UserInfo.c0962
&&File ..\Contrib\UserInfo\UserInfo.dsp0963
&&File ..\Contrib\UserInfo\UserInfo.dsw0964
SectionEnd0965
Section &Dialer Source& SecPluginsDialerS0967
&&SetDetailsPrint textonly0969
&&DetailPrint &Installing Source Code | Plug-ins | Dialer Source...&0970
&&SetDetailsPrint listonly0971
&&SectionIn 10973
&&SetOutPath $INSTDIR\Contrib\Dialer0975
&&File ..\Contrib\Dialer\dialer.c0976
&&File ..\Contrib\Dialer\dialer.dsp0977
&&File ..\Contrib\Dialer\dialer.dsw0978
SectionEnd0979
Section &VPatch Source& SecPluginsVPatchS0981
&&SetDetailsPrint textonly0983
&&DetailPrint &Installing Source Code | Plug-ins | VPatch Source...&0984
&&SetDetailsPrint listonly0985
&&SectionIn 10987
&&SetOutPath $INSTDIR\Contrib\VPatch\Source0989
&&File ..\Contrib\VPatch\Source\*.bpg0990
&&SetOutPath $INSTDIR\Contrib\VPatch\Source\GenPat0992
&&File ..\Contrib\VPatch\Source\GenPat\*.pas0993
&&File ..\Contrib\VPatch\Source\GenPat\*.dpr0994
&&SetOutPath $INSTDIR\Contrib\VPatch\Source\Plugin0996
&&File ..\Contrib\VPatch\Source\Plugin\*.c0997
&&File ..\Contrib\VPatch\Source\Plugin\*.dsw0998
&&File ..\Contrib\VPatch\Source\Plugin\*.dsp0999
&&SetOutPath $INSTDIR\Contrib\VPatch\Source\GUI1001
&&File ..\Contrib\VPatch\Source\GUI\*.pas1002
&&File ..\Contrib\VPatch\Source\GUI\*.dpr1003
&&File ..\Contrib\VPatch\Source\GUI\*.dfm1004
&&File ..\Contrib\VPatch\Source\GUI\*.dof1005
&&File ..\Contrib\VPatch\Source\GUI\*.res1006
SectionEnd1008
SectionGroupEnd ; plugins1010
SectionGroupEnd1012
Section -post1014
&&; When Modern UI is installed:1016
&&; * Always install the English language file1017
&&; * Always install default icons / bitmaps1018
&&!insertmacro SectionFlagIsSet ${SecInterfacesModernUI} ${SF_SELECTED} mui nomui1020
&&&&mui:1022
&&&&SetDetailsPrint textonly1024
&&&&DetailPrint &Configurating Modern UI...&1025
&&&&SetDetailsPrint listonly1026
&&&&!insertmacro SectionFlagIsSet ${SecLangFiles} ${SF_SELECTED} langfiles nolangfiles1028
&&&&&&nolangfiles:1030
&&&&&&SetOutPath &$INSTDIR\Contrib\Language files&1032
&&&&&&File &..\Contrib\Language files\English.nlf&1033
&&&&&&SetOutPath &$INSTDIR\Contrib\Modern UI\Language files&1034
&&&&&&File &..\Contrib\Modern UI\Language files\Default.nsh&1035
&&&&&&File &..\Contrib\Modern UI\Language files\English.nsh&1036
&&&&langfiles:1038
&&&&!insertmacro SectionFlagIsSet ${SecGraphics} ${SF_SELECTED} graphics nographics1040
&&&&&&nographics:1042
&&&&&&SetOutPath $INSTDIR\Contrib\Graphics1044
&&&&&&SetOutPath $INSTDIR\Contrib\Graphics\Checks1045
&&&&&&File &..\Contrib\Graphics\Checks\modern.bmp&1046
&&&&&&SetOutPath $INSTDIR\Contrib\Graphics\Icons1047
&&&&&&File &..\Contrib\Graphics\Icons\modern-install.ico&1048
&&&&&&File &..\Contrib\Graphics\Icons\modern-uninstall.ico&1049
&&&&&&SetOutPath $INSTDIR\Contrib\Graphics\Header1050
&&&&&&File &..\Contrib\Graphics\Header\nsis.bmp&1051
&&&&&&SetOutPath $INSTDIR\Contrib\Graphics\Wizard1052
&&&&&&File &..\Contrib\Graphics\Wizard\win.bmp&1053
&&&&graphics:1055
&&nomui:1057
&&SetDetailsPrint textonly1059
&&DetailPrint &Creating Registry Keys...&1060
&&SetDetailsPrint listonly1061
&&SetOutPath $INSTDIR1063
&&WriteRegStr HKLM &Software\NSIS& && $INSTDIR1065
&&WriteRegDword HKLM &Software\NSIS& &VersionMajor& &${VER_MAJOR}&1066
&&WriteRegDword HKLM &Software\NSIS& &VersionMinor& &${VER_MINOR}&1067
&&WriteRegDword HKLM &Software\NSIS& &VersionRevision& &${VER_REVISION}&1068
&&WriteRegDword HKLM &Software\NSIS& &VersionBuild& &${VER_BUILD}&***
&&WriteRegExpandStr HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &UninstallString& '&$INSTDIR\uninst-nsis.exe&'1071
&&WriteRegExpandStr HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &InstallLocation& &$INSTDIR&1072
&&WriteRegStr HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &DisplayName& &Nullsoft Install System&1073
&&WriteRegStr HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &DisplayIcon& &$INSTDIR\NSIS.exe,0&1074
&&WriteRegStr HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &DisplayVersion& &${VER_DISPLAY}&1075
&&WriteRegDWORD HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &VersionMajor& &${VER_MAJOR}&1076
&&WriteRegDWORD HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &VersionMinor& &${VER_MINOR}.${VER_REVISION}&1077
&&WriteRegStr HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &URLInfoAbout& &http://nsis.sourceforge.net/&1078
&&WriteRegDWORD HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &NoModify& &1&1079
&&WriteRegDWORD HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &NoRepair& &1&1080
!ifndef NO_STARTMENUSHORTCUTS1082
&&IfFileExists $SMPROGRAMS\NSIS && no_startshortcuts1083
&&SetDetailsPrint textonly1085
&&DetailPrint &Creating Shortcuts...&1086
&&SetDetailsPrint listonly1087
&&IfFileExists $INSTDIR\Examples 0 +21089
&&&&CreateShortCut &$SMPROGRAMS\NSIS\NSIS Examples Directory.lnk& &$INSTDIR\Examples&1090
&&IfFileExists &$INSTDIR\Source& 0 +21092
&&&&CreateShortCut &$SMPROGRAMS\NSIS\MakeNSIS project workspace.lnk& &$INSTDIR\source\makenssi.dsw&1093
&&CreateDirectory $SMPROGRAMS\NSIS\Contrib\Source1095
&&; MakeNSISW1097
&&CreateDirectory $SMPROGRAMS\NSIS\Contrib1098
&&&&CreateShortCut &$SMPROGRAMS\NSIS\Contrib\MakeNSISW readme.lnk& &$INSTDIR\contrib\MakeNsisw\readme.txt&1099
&&Push MakeNSISW1101
&&Call AddWorkspaceToStartMenu1102
&&; ExDLL1104
&&Push ExDLL1105
&&Call AddWorkspaceToStartMenu1106
&&; InstallOptions1108
&&Push InstallOptions1109
&&Call AddReadmeToStartMenu1110
&&Push &InstallOptions\io.dsw&1112
&&Push &Source\InstallOptions project workspace&1113
&&Call AddContribToStartMenu1114
&&; ZIP2EXE1116
&&IfFileExists &$INSTDIR\Bin\zip2exe.exe& 0 +21117
&&&&CreateShortCut &$SMPROGRAMS\NSIS\Contrib\Zip2Exe (create SFX).lnk& &$INSTDIR\Bin\zip2exe.exe&1118
&&Push ZIP2EXE1120
&&Call AddWorkspaceToStartMenu1121
&&; Modern UI1123
&&Push &Modern UI&1124
&&Call AddReadmeToStartMenu1125
&&; Splash1127
&&Push Splash1128
&&Call AddReadmeToStartMenu1129
&&Push Splash1131
&&Call AddWorkspaceToStartMenu1132
&&; Advanced splash1134
&&Push AdvSplash1135
&&Call AddReadmeToStartMenu1136
&&Push AdvSplash1138
&&Call AddWorkspaceToStartMenu1139
&&; Math1141
&&Push Math1142
&&Call AddReadmeToStartMenu1143
&&Push &Math\Source\Math.sln&1145
&&Push &Source\Math project workspace&1146
&&Call AddContribToStartMenu1147
&&; NSISdl1149
&&Push NSISdl1150
&&Call AddReadmeToStartMenu1151
&&Push NSISdl1153
&&Call AddWorkspaceToStartMenu1154
&&; UserInfo1156
&&Push UserInfo1157
&&Call AddWorkspaceToStartMenu1158
&&; nsExec1160
&&Push nsExec1161
&&Call AddReadmeToStartMenu1162
&&Push nsExec1164
&&Call AddWorkspaceToStartMenu1165
&&; LangDLL1167
&&Push LangDLL1168
&&Call AddWorkspaceToStartMenu1169
&&; StartMenu1171
&&Push StartMenu1172
&&Call AddReadmeToStartMenu1173
&&Push StartMenu1175
&&Call AddWorkspaceToStartMenu1176
&&; BgImage1178
&&Push BgImage1179
&&Call AddReadmeToStartMenu1180
&&Push BgImage1182
&&Call AddWorkspaceToStartMenu1183
&&; Banner1185
&&Push Banner1186
&&Call AddReadmeToStartMenu1187
&&Push Banner1189
&&Call AddWorkspaceToStartMenu1190
&&; System1192
&&Push System1193
&&Call AddReadmeToStartMenu1194
&&Push System\Source\System.sln1196
&&Push &Source\System project workspace&1197
&&Call AddContribToStartMenu1198
&&; VPatch1200
&&Push VPatch1201
&&Call AddReadmeToStartMenu1202
&&no_startshortcuts:1204
!endif1205
&&; will only be removed if empty1207
&&SetDetailsPrint none1208
&&RMDir $INSTDIR\Contrib\Source1209
&&SetDetailsPrint lastused1210
&&WriteUninstaller $INSTDIR\uninst-nsis.exe1212
&&SetDetailsPrint both1214
SectionEnd1216
;--------------------------------1218
;Descriptions1219
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN1221
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecCore} &The core files required to use NSIS (compiler etc.)&1222
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecExample} &Example installation scripts that show you how to use NSIS&1223
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} &Adds icons to your start menu and your desktop for easy access&1224
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecInterfaces} &User interface designs that can be used to change the installer look and feel&1225
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecInterfacesModernUI} &A modern user interface like the wizards of recent Windows versions&1226
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecInterfacesDefaultUI} &The default NSIS user interface which you can customize to make your own UI&1227
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecInterfacesTinyUI} &A tiny version of the default user interface&1228
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecTools} &Tools that help you with NSIS development&1229
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecToolsS} &Source code to tools that help you with NSIS development&1230
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecToolsUpdate} &A tool that lets you check for new NSIS releases and download the latest development files&1231
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecToolsZ2E} &A utility that converts a ZIP file to a NSIS installer&1232
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecToolsZ2ES} &Source code to a utility that converts a ZIP file to a NSIS installer&1233
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecGraphics} &Icons, checkbox images and other graphics&1234
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecLangFiles} &Language files used to support multiple languages in an installer&1235
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsPlugins} &Useful plugins that extend NSIS's functionality&1236
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsPluginsS} &Source code for plugins&1237
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsBanner} &Plugin that lets you show a banner before installation starts&1238
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsBannerS} &Source code to plugin that lets you show a banner before installation starts&1239
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsLangDLL} &Plugin that lets you add a language select dialog to your installer&1240
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsLangDLLS} &Source code to plugin that lets you add a language select dialog to your installer&1241
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsnsExec} &Plugin that executes console programs and prints its output in the NSIS log window or hides it&1242
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsnsExecS} &Source code to plugin that executes console programs and prints its output in the NSIS log window or hides it&1243
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSplash} &Splash screen add-on that lets you add a splash screen to an installer&1244
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSplashS} &Source code to splash screen add-on that lets you add a splash screen to an installer&1245
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSplashT} &Splash screen add-on with transparency support that lets you add a splash screen to an installer&1246
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSplashTS} &Source code to splash screen add-on with transparency support that lets you add a splash screen to an installer&1247
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSystem} &Plugin that lets you call Win32 API or external DLLs&1248
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsSystemS} &Source code to plugin that lets you call Win32 API or external DLLs&1249
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsMath} &Plugin that lets you evaluate complicated mathematical expressions&1250
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsMathS} &Source code to plugin that lets you evaluate complicated mathematical expressions&1251
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsDialer} &Plugin that provides internet connection functions&1252
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsDialerS} &Source code to plugin that provides internet connection functions&1253
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsIO} &Plugin that lets you add custom pages to an installer&1254
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsIOS} &Source code to plugin that lets you add custom pages to an installer&1255
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsStartMenu} &Plugin that lets the user select the start menu folder&1256
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsStartMenuS} &Source code to plugin that lets the user select the start menu folder&1257
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsBgImage} &Plugin that lets you show a persistent background image plugin and play sounds&1258
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsBgImageS} &Source code to plugin that lets you show a persistent background image plugin and play sounds&1259
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsUserInfo} &Plugin that that gives you the user name and the user account type&1260
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsUserInfoS} &Source code to plugin that that gives you the user name and the user account type&1261
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsNSISDL} &Plugin that lets you create a web based installer&1262
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsNSISDLS} &Source code to plugin that lets you create a web based installer&1263
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsVPatch} &Plugin that lets you create patches to upgrade older files&1264
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsVPatchS} &Source code to plugin that lets you create patches to upgrade older files&1265
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecSrc} &Source code to NSIS and all related files&1266
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecSrcNSIS} &Source code to NSIS&1267
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecSrcEx} &Example DLL plugin source in C and plugin function header&1268
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecSrcUIHolder} &Source code to the UI Holder where you can put your recources in to preview your user interface&1269
&&!insertmacro MUI_DESCRIPTION_TEXT ${SecSrcMNW} &Source code to MakeNSISW (compiler interface)&1270
!insertmacro MUI_FUNCTION_DESCRIPTION_END1271
;--------------------------------1273
;Installer Functions1274
Function .onInit1276
&&!insertmacro MUI_INSTALLOPTIONS_EXTRACT &makensis.ini&1278
FunctionEnd1280
Function PageReinstall1282
&&ReadRegStr $R0 HKLM &Software\NSIS& &&1284
&&StrCmp $R0 && 0 +21286
&&&&Abort1287
&&;Detect version1289
&&&&ReadRegDWORD $R0 HKLM &Software\NSIS& &VersionMajor&1290
&&&&IntCmp $R0 ${VER_MAJOR} minor_check new_version older_version1291
&&minor_check:1292
&&&&ReadRegDWORD $R0 HKLM &Software\NSIS& &VersionMinor&1293
&&&&IntCmp $R0 ${VER_MINOR} revision_check new_version older_version1294
&&revision_check:1295
&&&&ReadRegDWORD $R0 HKLM &Software\NSIS& &VersionRevision&1296
&&&&IntCmp $R0 ${VER_REVISION} build_check new_version older_version1297
&&build_check:1298
&&&&ReadRegDWORD $R0 HKLM &Software\NSIS& &VersionBuild&1299
&&&&IntCmp $R0 ${VER_BUILD} same_version new_version older_version1300
&&new_version:1302
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 1& &Text& &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.&1304
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 2& &Text& &Uninstall before installing&1305
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 3& &Text& &Do not uninstall&1306
&&&!insertmacro MUI_HEADER_TEXT &Already Installed& &Choose how you want to install NSIS.&1307
&&&StrCpy $R0 &1&1308
&&&Goto reinst_start1309
&&older_version:1311
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 1& &Text& &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.&1313
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 2& &Text& &Uninstall before installing&1314
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 3& &Text& &Do not uninstall&1315
&&&!insertmacro MUI_HEADER_TEXT &Already Installed& &Choose how you want to install NSIS.&1316
&&&StrCpy $R0 &1&1317
&&&Goto reinst_start1318
&&same_version:1320
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 1& &Text& &NSIS ${VER_DISPLAY} is already installed. Select the operation you want to perform and click Next to continue.&1322
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 2& &Text& &Add/Reinstall components&1323
&&&!insertmacro MUI_INSTALLOPTIONS_WRITE &makensis.ini& &Field 3& &Text& &Uninstall NSIS&1324
&&&!insertmacro MUI_HEADER_TEXT &Already Installed& &Choose the maintenance option to perform.&1325
&&&StrCpy $R0 &2&1326
&&reinst_start:1328
&&!insertmacro MUI_INSTALLOPTIONS_DISPLAY &makensis.ini&1330
FunctionEnd1332
Function PageLeaveReinstall1334
&&!insertmacro MUI_INSTALLOPTIONS_READ $R1 &makensis.ini& &Field 2& &State&1336
&&StrCmp $R0 &1& 0 +21338
&&&&StrCmp $R1 &1& reinst_uninstall reinst_done1339
&&StrCmp $R0 &2& 0 +31341
&&&&StrCmp $R1 &1& reinst_done reinst_uninstall1342
&&reinst_uninstall:1344
&&ReadRegStr $R1 HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS& &UninstallString&1345
&&;Run uninstaller1347
&&HideWindow1348
&&&&ClearErrors1350
&&&&ExecWait '$R1 _?=$INSTDIR'1351
&&&&IfErrors no_remove_uninstaller1353
&&&&IfFileExists &$INSTDIR\makensis.exe& no_remove_uninstaller1354
&&&&&&Delete $R11356
&&&&&&RMDir $INSTDIR1357
&&&&no_remove_uninstaller:1359
&&StrCmp $R0 &2& 0 +21361
&&&&Quit1362
&&BringToFront1364
&&reinst_done:1366
FunctionEnd1368
!macro secSelected SEC1370
&&SectionGetFlags ${SEC} $R71371
&&IntOp $R7 $R7 & ${SF_SELECTED}1372
&&IntCmp $R7 ${SF_SELECTED} 0 +2 +21373
&&&&IntOp $R0 $R0 + 11374
!macroend1375
Function .onSelChange1377
&&;Plugins are linked to ExDLL1378
&&StrCpy $R0 01379
&&!insertmacro secSelected ${SecPluginsSplashTS}1380
&&!insertmacro secSelected ${SecPluginsBannerS}1381
&&!insertmacro secSelected ${SecPluginsBgImageS}1382
&&!insertmacro secSelected ${SecPluginsIOS}1383
&&!insertmacro secSelected ${SecPluginsLangDLLS}1384
&&!insertmacro secSelected ${SecPluginsnsExecS}1385
&&!insertmacro secSelected ${SecPluginsNSISdlS}1386
&&!insertmacro secSelected ${SecPluginsSplashS}1387
&&!insertmacro secSelected ${SecPluginsStartMenuS}1388
&&!insertmacro secSelected ${SecPluginsUserInfoS}1389
&&!insertmacro secSelected ${SecPluginsDialerS}1390
&&SectionGetFlags ${SecSrcEx} $R71391
&&StrCmp $R0 0 notRequired1392
&&&&IntOp $R7 $R7 | ${SF_SELECTED}1393
&&&&SectionSetFlags ${SecSrcEx} $R71394
&&&&SectionSetText ${SecSrcEx} &ExDLL Source (required)&1395
&&&&Goto done1396
&¬Required:1397
&&&&SectionSetText ${SecSrcEx} &ExDLL Source&1398
&&done:1399
FunctionEnd1400
!ifndef NO_STARTMENUSHORTCUTS1402
Function AddContribToStartMenu1403
&&Pop $0 ; link1404
&&Pop $1 ; file1405
&&IfFileExists $INSTDIR\Contrib\$1 0 +21406
&&&&CreateShortCut $SMPROGRAMS\NSIS\Contrib\$0.lnk $INSTDIR\Contrib\$11407
FunctionEnd1408
Function AddWorkspaceToStartMenu1410
&&Pop $01411
&&IfFileExists $INSTDIR\Contrib\$0\$0.dsw 0 done1412
&&&&Push $0\$0.dsw1413
&&&&Push &Source\$0 project workspace&1414
&&&&Call AddContribToStartMenu1415
&&done:1416
FunctionEnd1417
Function AddReadmeToStartMenu1419
&&Pop $01420
&&IfFileExists $INSTDIR\Contrib\$0\$0.txt 0 +31421
&&&&Push $0\$0.txt1422
&&&&Goto create1423
&&IfFileExists $INSTDIR\Contrib\$0\$0.html 0 +31424
&&&&Push $0\$0.html1425
&&&&Goto create1426
&&IfFileExists $INSTDIR\Contrib\$0\Readme.txt 0 +31427
&&&&Push $0\Readme.txt1428
&&&&Goto create1429
&&IfFileExists $INSTDIR\Contrib\$0\Readme.html 0 done1430
&&&&Push $0\Readme.html1431
&&create:1432
&&&&Push &$0 Readme&1433
&&&&Call AddContribToStartMenu1434
&&done:1435
FunctionEnd1436
!endif1437
;--------------------------------1439
;Uninstaller Section1440
Section Uninstall1442
&&SetDetailsPrint textonly1444
&&DetailPrint &Uninstalling NSI Development Shell Extensions...&1445
&&SetDetailsPrint listonly1446
&&IfFileExists $INSTDIR\makensis.exe nsis_installed1448
&&&&MessageBox MB_YESNO &It does not appear that NSIS is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?& IDYES nsis_installed1449
&&&&Abort &Uninstall aborted by user&1450
&&nsis_installed:1451
&&SetDetailsPrint textonly1453
&&DetailPrint &Deleting Registry Keys...&1454
&&SetDetailsPrint listonly1455
&&ReadRegStr $R0 HKCR &.nsi& &&1457
&&StrCmp $R0 &NSIS.Script& 0 +21458
&&&&DeleteRegKey HKCR &.nsi&1459
&&ReadRegStr $R0 HKCR &.nsh& &&1461
&&StrCmp $R0 &NSIS.Header& 0 +21462
&&&&DeleteRegKey HKCR &.nsh&1463
&&DeleteRegKey HKCR &NSIS.Script&1465
&&DeleteRegKey HKCR &NSIS.Header&1466
&&System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'1468
&&DeleteRegKey HKLM &Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS&1470
&&DeleteRegKey HKLM &Software\NSIS&1471
&&SetDetailsPrint textonly1473
&&DetailPrint &Deleting Files...&1474
&&SetDetailsPrint listonly1475
&&RMDir /r $SMPROGRAMS\NSIS1477
&&Delete &$DESKTOP\Nullsoft Install System.lnk&1478
&&Delete $INSTDIR\makensis.exe1479
&&Delete $INSTDIR\makensisw.exe1480
&&Delete $INSTDIR\NSIS.exe1481
&&Delete $INSTDIR\license.txt1482
&&Delete $INSTDIR\uninst-nsis.exe1483
&&Delete $INSTDIR\nsisconf.nsi1484
&&Delete $INSTDIR\nsisconf.nsh1485
&&Delete $INSTDIR\NSIS.chm1486
&&RMDIR /r $INSTDIR\CVS1487
&&RMDir /r $INSTDIR\Contrib1488
&&RMDir /r $INSTDIR\Menu1489
&&RMDir /r $INSTDIR\Source1490
&&RMDir /r $INSTDIR\Bin1491
&&RMDir /r $INSTDIR\Plugins1492
&&RMDir /r $INSTDIR\Examples1493
&&RMDir /r $INSTDIR\Include1494
&&RMDir $INSTDIR1495
&&SetDetailsPrint both1497
SectionEnd1499

参考资料

 

随机推荐