/[MITgcm]/mitgcm.org/devel/buildweb/pkg/swish-e/win32.nsi
ViewVC logotype

Contents of /mitgcm.org/devel/buildweb/pkg/swish-e/win32.nsi

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Fri Sep 20 19:47:29 2002 UTC (22 years, 10 months ago) by adcroft
Branch: Import, MAIN
CVS Tags: baseline, HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Importing web-site building process.

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 "InstallSWISH-E.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 "$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 SetOutPath "$INSTDIR"
31 File COPYING
32
33 ; SWISH-E Executable, static, and dynamic libraries
34 File src\win32\*.exe
35 File src\win32\*.lib
36 File src\Win32\*.dll
37
38 ; Expat, LibXML2, and ZLib
39 File ..\expat\bin\*.dll
40 File ..\libxml2\win32\dsp\libxml2\*.dll
41 File ..\zlib\zlib.dll
42 File ..\pcre\bin\pcre.dll
43
44 ; Microsoft Visual Studio 7 Runtime
45 File "C:\Program Files\Common Files\Microsoft Shared\VSA\7.0\VsaEnv\msvcr70.dll"
46
47 ; Misc SWISH-E Support Files
48 File src\swishspider
49 File /r filter-bin
50 File /r prog-bin
51
52 ; Rename a bunch of text files so Windows has a clue
53 Rename "$INSTDIR\COPYING" "$INSTDIR\COPYING.txt"
54 ; Rename "$INSTDIR\swishspider" "$INSTDIR\swishspider.pl"
55 Rename "$INSTDIR\filter-bin\README" "$INSTDIR\filter-bin\README.txt"
56 Rename "$INSTDIR\prog-bin\README" "$INSTDIR\prog-bin\README.txt"
57
58 ; Create shorcuts on the Start Menu
59 SetOutPath "$SMPROGRAMS\SWISH-E\"
60 CreateShortcut "$SMPROGRAMS\SWISH-E\Browse Files.lnk" "$INSTDIR\"
61 WriteINIStr "$SMPROGRAMS\SWISH-E\Website.url" "InternetShortcut" "URL" "http://swish-e.org/"
62 CreateShortcut "$SMPROGRAMS\SWISH-E\License.lnk" "$INSTDIR\COPYING.txt"
63 SectionEnd ; end of default section
64
65 Section "Documentation"
66 SectionIn 1
67 SetOutPath "$INSTDIR"
68 RMDIR /r "$INSTDIR\html"
69 File /r html
70
71 ; Create shorcuts on the Start Menu
72 SetOutPath "$SMPROGRAMS\SWISH-E\"
73 WriteINIStr "$SMPROGRAMS\SWISH-E\Documentation.url" "InternetShortcut" "URL" "file://$INSTDIR\html\index.html"
74 WriteINIStr "$SMPROGRAMS\SWISH-E\Questions_and_Troubleshooting.url" "InternetShortcut" "URL" "file://$INSTDIR\html\INSTALL.html#QUESTIONS_AND_TROUBLESHOOTING"
75 SectionEnd ; end of section 'Documentation'
76
77 Section "Examples"
78 SectionIn 1
79 SetOutPath "$INSTDIR"
80 RMDIR /r "$INSTDIR\example"
81 RMDIR /r "$INSTDIR\conf"
82 File /r example
83 File /r conf
84
85 ; Rename text files so Windows has a clue
86 Rename "$INSTDIR\conf\README" "$INSTDIR\conf\README.txt"
87 Rename "$INSTDIR\example\README" "$INSTDIR\example\README.txt"
88 SectionEnd ; end of section 'Examples'
89
90 Section "-post" ; (post install section, happens last after any optional sections)
91 ; add any commands that need to happen after any optional sections here
92 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E" "" "$INSTDIR"
93 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" "DisplayName" "SWISH-E (remove only)"
94 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E" "UninstallString" '"$INSTDIR\uninst.exe"'
95
96 WriteUninstaller "uninst.exe"
97 SectionEnd ; end of -post section
98
99
100
101 Section Uninstall
102 ; add delete commands to delete whatever files/registry keys/etc you installed here.
103 ; UninstallText "This will remove SWISH-E from your system"
104 Delete "$INSTDIR\uninst.exe"
105 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\SWISH-E Team\SWISH-E"
106 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SWISH-E"
107 RMDir /r "$INSTDIR"
108 RMDir /r "$SMPROGRAMS\SWISH-E\"
109 SectionEnd ; end of uninstall section
110
111 ; eof

  ViewVC Help
Powered by ViewVC 1.1.22