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 "swish-e-src.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" |
19 |
|
20 |
InstallDir "C:\Projects\SWISH-E" |
21 |
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E\Developer" "" |
22 |
DirShow show ; (make this hide to not let the user change it) |
23 |
DirText "Select location where to install SWISH-E (Must not contain spaces):" |
24 |
|
25 |
InstType "Developer" |
26 |
|
27 |
ComponentText "Which components do you require?" |
28 |
|
29 |
Section "Program" ; (default, required section) |
30 |
|
31 |
; Copy swish-e snapshot |
32 |
SetOutPath "$INSTDIR\swish-e" |
33 |
File /r .\* |
34 |
|
35 |
; Copy libxml2 sources |
36 |
SetOutPath "$INSTDIR\libxml2" |
37 |
File /r ..\libxml2\* |
38 |
; Copy zlib sources |
39 |
SetOutPath "$INSTDIR\zlib" |
40 |
File /r ..\zlib\* |
41 |
; Copy pcre sources |
42 |
SetOutPath "$INSTDIR\pcre" |
43 |
File /r ..\pcre\* |
44 |
|
45 |
; Rename a bunch of text files so Windows has a clue |
46 |
Rename "$INSTDIR\COPYING" "$INSTDIR\COPYING.txt" |
47 |
; Rename "$INSTDIR\swishspider" "$INSTDIR\swishspider.pl" |
48 |
Rename "$INSTDIR\filter-bin\README" "$INSTDIR\filter-bin\README.txt" |
49 |
Rename "$INSTDIR\prog-bin\README" "$INSTDIR\prog-bin\README.txt" |
50 |
Rename "$INSTDIR\conf\README" "$INSTDIR\conf\README.txt" |
51 |
Rename "$INSTDIR\example\README" "$INSTDIR\example\README.txt" |
52 |
|
53 |
; Create shorcuts on the Start Menu |
54 |
SetOutPath "$SMPROGRAMS\SWISH-E\Developer" |
55 |
CreateShortcut "$SMPROGRAMS\SWISH-E\Developer\SWISH-E Workspace (Press F7 to Compile).lnk" "$INSTDIR\swish-e\src\win32\swishe.dsw" |
56 |
CreateShortcut "$SMPROGRAMS\SWISH-E\Developer\Browse Files.lnk" "$INSTDIR\" |
57 |
WriteINIStr "$SMPROGRAMS\SWISH-E\Developer\Website.url" "InternetShortcut" "URL" "http://swish-e.org/" |
58 |
CreateShortcut "$SMPROGRAMS\SWISH-E\Developer\License.lnk" "$INSTDIR\COPYING.txt" |
59 |
WriteINIStr "$SMPROGRAMS\SWISH-E\Developer\Documentation.url" "InternetShortcut" "URL" "file://$INSTDIR\html\index.html" |
60 |
WriteINIStr "$SMPROGRAMS\SWISH-E\Developer\Questions_and_Troubleshooting.url" "InternetShortcut" "URL" "file://$INSTDIR\html\INSTALL.html#QUESTIONS_AND_TROUBLESHOOTING" |
61 |
|
62 |
SectionEnd ; end of default section |
63 |
|
64 |
|
65 |
|
66 |
Section "-post" ; (post install section, happens last after any optional sections) |
67 |
; add any commands that need to happen after any optional sections here |
68 |
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E\Developer" "" "$INSTDIR" |
69 |
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" "DisplayName" "SWISH-E (remove only)" |
70 |
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" "UninstallString" '"$INSTDIR\uninst.exe"' |
71 |
|
72 |
WriteUninstaller "uninst.exe" |
73 |
SectionEnd ; end of -post section |
74 |
|
75 |
|
76 |
|
77 |
Section Uninstall |
78 |
; add delete commands to delete whatever files/registry keys/etc you installed here. |
79 |
; UninstallText "This will remove SWISH-E from your system" |
80 |
Delete "$INSTDIR\uninst.exe" |
81 |
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E" |
82 |
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" |
83 |
RMDir /r "$INSTDIR" |
84 |
RMDir /r "$SMPROGRAMS\SWISH-E\" |
85 |
SectionEnd ; end of uninstall section |
86 |
|
87 |
; eof |