source: trunk/synapse/Puzzlebox-Synapse.nsi @ 172

Last change on this file since 172 was 160, checked in by sc, 11 years ago

Puzzlebox-Synapse.nsi:

  • 0.3.0 release

puzzlebox_synapse_client_thinkgear.py:

  • fixed localhost addressing issue

puzzlebox_synapse_interface.py:

  • fixed typo

setup_win32.py:

  • initial checkin
File size: 6.0 KB
Line 
1; Puzzlebox Synapse Windows Installer
2
3; NOTE: this .NSI script is designed for NSIS v1.8+
4
5Name "Puzzlebox Synapse"
6OutFile "Puzzlebox-Synapse-0.3.0-setup.exe"
7
8; Some default compiler settings (uncomment and change at will):
9; SetCompress auto ; (can be off or force)
10; SetDatablockOptimize on ; (can be off)
11; CRCCheck on ; (can be off)
12; AutoCloseWindow false ; (can be true for the window go away automatically at end)
13; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
14; SetDateSave off ; (can be on to have files restored to their orginal date)
15
16LicenseText "You must agree to this license before installing."
17LicenseData "LICENSE.txt"
18
19InstallDir "$PROGRAMFILES\Puzzlebox Synapse"
20InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox Synapse\Puzzlebox Synapse" ""
21;DirShow show ; (make this hide to not let the user change it)
22DirText "Select the directory to install Puzzlebox Synapse into:"
23
24InstallColors /windows
25
26Section "" ; (default section)
27SetOutPath "$INSTDIR"
28; add files / whatever that need to be installed here.
29WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox Synapse\Puzzlebox Synapse" "" "$INSTDIR"
30WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox Synapse\Puzzlebox Synapse" "DisplayName" "Puzzlebox Synapse (remove only)"
31WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox Synapse\Puzzlebox Synapse" "UninstallString" '"$INSTDIR\Puzzlesbox-Synapse-Uninstall.exe"'
32     
33 File dist\_ctypes.pyd
34 File dist\_socket.pyd
35 File dist\_ssl.pyd
36 File dist\bz2.pyd
37 File dist\libgcc_s_dw2-1.dll
38 File dist\library.zip
39 File dist\mingwm10.dll
40; File dist\msvcr71.dll
41 File dist\puzzlebox_synapse_client_thinkgear.exe
42 File dist\puzzlebox_synapse_configuration.ini
43 File dist\puzzlebox_synapse_interface.exe
44 File dist\puzzlebox_synapse_server_thinkgear.exe
45 File dist\PyQt4.QtCore.pyd
46 File dist\PyQt4.QtGui.pyd
47 File dist\PyQt4.QtNetwork.pyd
48 File dist\python25.dll
49 File dist\QtCore4.dll
50 File dist\QtGui4.dll
51 File dist\QtNetwork4.dll
52 File dist\select.pyd
53 File dist\simplejson._speedups.pyd
54 File dist\sip.pyd
55 File dist\unicodedata.pyd
56 File dist\w9xpopen.exe
57
58
59SetOutPath $INSTDIR\images
60 File dist\images\puzzlebox.ico
61 File dist\images\puzzlebox_logo.png
62
63
64ExecWait 'package\Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"'
65
66
67; write out uninstaller
68WriteUninstaller "$INSTDIR\Puzzlebox-Synapse-Uninstall.exe"
69
70SectionEnd ; end of default section
71
72
73Section "Start Menu + Desktop Icons"
74;  SetOutPath "$SMPROGRAMS\Puzzlebox Synapse"
75  SetOutPath $INSTDIR
76  CreateDirectory "$SMPROGRAMS\Puzzlebox Synapse"
77  CreateShortCut "$SMPROGRAMS\Puzzlebox Synapse\Puzzlebox Synapse ThinkGear Connect Client.lnk" \
78                 "$INSTDIR\puzzlebox_synapse_client_thinkgear.exe" \
79                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  ""
80  CreateShortCut "$SMPROGRAMS\Puzzlebox Synapse\Puzzlebox Synapse.lnk" \
81                 "$INSTDIR\puzzlebox_synapse_interface.exe" \
82                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  ""
83  CreateShortCut "$SMPROGRAMS\Puzzlebox Synapse\Edit Puzzlebox Synapse Configuration.lnk" \
84                 "$INSTDIR\puzzlebox_synapse_configuration.ini" \
85                 ""  ""  "0"  ""
86  CreateShortCut "$SMPROGRAMS\Puzzlebox Synapse\Uninstall Puzzlebox Synapse.lnk" \
87                 "$INSTDIR\Puzzlebox-Synapse-Uninstall.exe"
88  CreateShortCut "$DESKTOP\Puzzlebox Synapse.lnk" \
89                 "$INSTDIR\puzzlebox_synapse_interface.exe" \
90                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  ""
91SectionEnd
92
93
94; begin uninstall settings/section
95UninstallText "This will uninstall Puzzlebox Synapse from your system"
96
97Section Uninstall
98; add delete commands to delete whatever files/registry keys/etc you installed here.
99 Delete "$SMPROGRAMS\Puzzlebox Synapse\Puzzlebox Synapse ThinkGear Connect Client.lnk"
100 Delete "$SMPROGRAMS\Puzzlebox Synapse\Puzzlebox Synapse.lnk"
101 Delete "$SMPROGRAMS\Puzzlebox Synapse\Edit Puzzlebox Synapse Configuration.lnk"
102 Delete "$SMPROGRAMS\Puzzlebox Synapse\Uninstall Puzzlebox Synapse.lnk"
103   RMDir "$SMPROGRAMS\Puzzlebox Synapse"
104 Delete "$DESKTOP\Puzzlebox Synapse.lnk"
105
106
107 Delete $INSTDIR\_ctypes.pyd
108 Delete $INSTDIR\_socket.pyd
109 Delete $INSTDIR\_ssl.pyd
110 Delete $INSTDIR\bz2.pyd
111 Delete $INSTDIR\libgcc_s_dw2-1.dll
112 Delete $INSTDIR\library.zip
113 Delete $INSTDIR\mingwm10.dll
114 Delete $INSTDIR\msvcr71.dll
115 Delete $INSTDIR\puzzlebox_synapse_client_thinkgear.exe
116 Delete $INSTDIR\puzzlebox_synapse_configuration.ini
117 Delete $INSTDIR\puzzlebox_synapse_interface.exe
118 Delete $INSTDIR\puzzlebox_synapse_server_thinkgear.exe
119 Delete $INSTDIR\PyQt4.QtCore.pyd
120 Delete $INSTDIR\PyQt4.QtGui.pyd
121 Delete $INSTDIR\PyQt4.QtNetwork.pyd
122 Delete $INSTDIR\python25.dll
123 Delete $INSTDIR\QtCore4.dll
124 Delete $INSTDIR\QtGui4.dll
125 Delete $INSTDIR\QtNetwork4.dll
126 Delete $INSTDIR\select.pyd
127 Delete $INSTDIR\simplejson._speedups.pyd
128 Delete $INSTDIR\sip.pyd
129 Delete $INSTDIR\unicodedata.pyd
130 Delete $INSTDIR\w9xpopen.exe
131
132
133 Delete $INSTDIR\images\puzzlebox.ico
134 Delete $INSTDIR\images\puzzlebox_logo.png
135
136 RMDir $INSTDIR\images
137
138 RMDIR $INSTDIR
139
140Delete "$INSTDIR\Puzzlebox-Synapse-Uninstall.exe"
141DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox Synapse\Puzzlebox Synapse"
142DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox Synapse"
143RMDir "$INSTDIR"
144
145  ; if $INSTDIR was removed, skip these next ones
146  IfFileExists $INSTDIR 0 Removed
147    MessageBox MB_YESNO|MB_ICONQUESTION \
148      "Remove all files in your Puzzlebox Synapse directory? (If you have anything \
149you created that you want to keep, click No)" IDNO Removed
150    Delete $INSTDIR\*.* ; this would be skipped if the user hits no
151    RMDir /r $INSTDIR
152    IfFileExists $INSTDIR 0 Removed
153      MessageBox MB_OK|MB_ICONEXCLAMATION \
154                 "Note: $INSTDIR could not be removed."
155  Removed:
156
157
158SectionEnd ; end of uninstall section
159
160; eof
161
Note: See TracBrowser for help on using the repository browser.