~ubuntu-branches/ubuntu/trusty/swish-e/trusty

« back to all changes in this revision

Viewing changes to src/win32/installer.nsi

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Drolez
  • Date: 2008-09-25 21:52:31 UTC
  • mfrom: (4.1.4 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080925215231-vk46pq42o533syg2
Tags: 2.4.5-5
swish.cgi was not working. Fixed with a 1 char patch. Closes: #500154

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; Generated NSIS script file (generated by makensitemplate.phtml 0.20)
2
 
; by 192.168.2.1 on Nov 16 01 @ 12:13
3
 
 
4
 
; NOTE: this NSI script is designed for NSIS v1.3+
5
 
 
6
 
Name "SWISH-E"
7
 
OutFile "swishsetup.exe"
8
 
 
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)
16
 
 
17
 
LicenseText "You may redistribute SWISH-E under the following terms:"
18
 
LicenseData "COPYING.txt"
19
 
 
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:"
24
 
 
25
 
InstType "Full"
26
 
 
27
 
ComponentText "Which components do you require?"
28
 
 
29
 
Section "Program" ; (default, required section)
30
 
SectionIn 1
31
 
SetOutPath "$INSTDIR"
32
 
File COPYING.txt
33
 
 
34
 
; SWISH-E executable
35
 
File ../swish-e.exe
36
 
 
37
 
; Expat, LibXML2, and ZLib
38
 
File ../../../libxml2/lib/*.dll
39
 
File ../../../zlib/bin/*.dll
40
 
File ../../../pcre/bin/*.dll
41
 
 
42
 
; Misc SWISH-E Support Files
43
 
File ../swishspider
44
 
File /r ../../filter-bin
45
 
File /r ../../prog-bin
46
 
File /r ../../filters
47
 
 
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
57
 
 
58
 
Section "Documentation"
59
 
SectionIn 1
60
 
SetOutPath "$INSTDIR"
61
 
RMDIR /r "$INSTDIR\html"
62
 
File /r ../../html
63
 
 
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'
78
 
 
79
 
Section "Examples"
80
 
SectionIn 1
81
 
SetOutPath "$INSTDIR"
82
 
RMDIR /r "$INSTDIR\example"
83
 
RMDIR /r "$INSTDIR\conf"
84
 
File /r ../../example
85
 
File /r ../../conf
86
 
 
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'
91
 
 
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"'
97
 
 
98
 
WriteUninstaller "uninst.exe"
99
 
SectionEnd ; end of -post section
100
 
 
101
 
 
102
 
 
103
 
Section Uninstall
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"
109
 
RMDir /r "$INSTDIR"
110
 
RMDir /r "$SMPROGRAMS\SWISH-E\"
111
 
SectionEnd ; end of uninstall section
112
 
 
113
 
; eof