1
; Generated NSIS script file (generated by makensitemplate.phtml 0.20)
2
; by 192.168.2.1 on Nov 16 01 @ 12:13
4
; NOTE: this NSI script is designed for NSIS v1.3+
7
OutFile "swishsetup.exe"
9
; Some default compiler settings (uncomment and change at will):
10
SetCompress auto ; (can be off or force)
11
SetDatablockOptimize on ; (can be off)
12
CRCCheck on ; (can be off)
13
AutoCloseWindow false ; (can be true for the window go away automatically at end)
14
ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
15
SetDateSave on ; (can be on to have files restored to their orginal date)
17
LicenseText "You may redistribute SWISH-E under the following terms:"
18
LicenseData "COPYING.txt"
20
InstallDir "$PROGRAMFILES\SWISH-E"
21
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E" ""
22
# DirShow show ; (make this hide to not let the user change it)
23
DirText "Select location where to install SWISH-E:"
27
ComponentText "Which components do you require?"
29
Section "Program" ; (default, required section)
37
; Expat, LibXML2, and ZLib
38
File ../../../libxml2/lib/*.dll
39
File ../../../zlib/bin/*.dll
40
File ../../../pcre/bin/*.dll
42
; Misc SWISH-E Support Files
44
File /r ../../filter-bin
45
File /r ../../prog-bin
48
; Create shorcuts on the Start Menu
49
SetOutPath "$SMPROGRAMS\SWISH-E\"
50
CreateShortcut "$SMPROGRAMS\SWISH-E\Browse Files.lnk" "$INSTDIR\"
51
WriteINIStr "$SMPROGRAMS\SWISH-E\Website.url" "InternetShortcut" "URL" "http://swish-e.org/"
52
CreateShortcut "$SMPROGRAMS\SWISH-E\License.lnk" "$INSTDIR\COPYING.txt"
53
SetOutPath "$SMPROGRAMS\SWISH-E\PERL_Resources"
54
WriteINIStr "$SMPROGRAMS\SWISH-E\PERL_Resources\Install_ActivePerl.url" "InternetShortcut" "URL" "http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl"
55
WriteINIStr "$SMPROGRAMS\SWISH-E\PERL_Resources\CPAN_PERL_Modules.url" "InternetShortcut" "URL" "http://search.cpan.org/"
56
SectionEnd ; end of default section
58
Section "Documentation"
61
RMDIR /r "$INSTDIR\html"
64
; Create shorcuts on the Start Menu
65
SetOutPath "$SMPROGRAMS\SWISH-E\Documentation\"
66
;WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\Docs.url" "InternetShortcut" "URL" "file://$INSTDIR\html\index.html"
67
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\Readme.url" "InternetShortcut" "URL" "file://$INSTDIR\html\README.html"
68
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\CONFIG-Config_File_Directives.url" "InternetShortcut" "URL" "file://$INSTDIR\html\SWISH-CONFIG.html"
69
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\RUN-Command_Line_Switches.url" "InternetShortcut" "URL" "file://$INSTDIR\html\SWISH-RUN.html"
70
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\SEARCH-Searching_Instructions.url" "InternetShortcut" "URL" "file://$INSTDIR\html\SWISH-SEARCH.html"
71
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\FAQ-Frequently_Asked_Questions.url" "InternetShortcut" "URL" "file://$INSTDIR\html\SWISH-FAQ.html"
72
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\CGI-Web_Interfacing.url" "InternetShortcut" "URL" "file://$INSTDIR\html\swish.html"
73
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\Spidering_Remote_Websites.url" "InternetShortcut" "URL" "file://$INSTDIR\html\spider.html"
74
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\Filtering_Documents.url" "InternetShortcut" "URL" "file://$INSTDIR\html\Filter.html"
75
WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation\Known_Bugs.url" "InternetShortcut" "URL" "file://$INSTDIR\html\SWISH-BUGS.html"
76
;WriteINIStr "$SMPROGRAMS\SWISH-E\Questions_and_Troubleshooting.url" "InternetShortcut" "URL" "file://$INSTDIR\html\INSTALL.html#QUESTIONS_AND_TROUBLESHOOTING"
77
SectionEnd ; end of section 'Documentation'
82
RMDIR /r "$INSTDIR\example"
83
RMDIR /r "$INSTDIR\conf"
87
; Rename text files so Windows has a clue
88
Rename "$INSTDIR\conf\README" "$INSTDIR\conf\README.txt"
89
Rename "$INSTDIR\example\README" "$INSTDIR\example\README.txt"
90
SectionEnd ; end of section 'Examples'
92
Section "-post" ; (post install section, happens last after any optional sections)
93
; add any commands that need to happen after any optional sections here
94
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E" "" "$INSTDIR"
95
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" "DisplayName" "SWISH-E (remove only)"
96
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" "UninstallString" '"$INSTDIR\uninst.exe"'
98
WriteUninstaller "uninst.exe"
99
SectionEnd ; end of -post section
104
; add delete commands to delete whatever files/registry keys/etc you installed here.
105
; UninstallText "This will remove SWISH-E from your system"
106
Delete "$INSTDIR\uninst.exe"
107
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E"
108
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E"
110
RMDir /r "$SMPROGRAMS\SWISH-E\"
111
SectionEnd ; end of uninstall section