source: remote_control/PuzzleboxBrainstorms-install.nsi @ 102

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

remote_control/PuzzleboxBrainstorms-install.nsi:

  • preparation for 0.2.0 release

remote_control/setup.py:

  • preparation for 0.2.0 release

remote_control/puzzlebox_brainstorms_network_server.py:

  • debug cleanup
File size: 10.9 KB
Line 
1; Puzzlebox Brainstorms Windows Installer
2
3; NOTE: this .NSI script is designed for NSIS v1.8+
4
5Name "Puzzlebox Brainstorms"
6OutFile "PuzzleboxBrainstorms-0.2.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 Brainstorms"
20InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox Brainstorms\Puzzlebox Brainstorms" ""
21;DirShow show ; (make this hide to not let the user change it)
22DirText "Select the directory to install Puzzlebox Brainstorms 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 Brainstorms\Puzzlebox Brainstorms" "" "$INSTDIR"
30WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox Brainstorms\Puzzlebox Brainstorms" "DisplayName" "Puzzlebox Brainstorms (remove only)"
31WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox Brainstorms\Puzzlebox Brainstorms" "UninstallString" '"$INSTDIR\PuzzlesboxBrainstorms-Uninstall.exe"'
32     
33 File dist\bz2.pyd
34 File dist\_ctypes.pyd
35 File dist\_hashlib.pyd
36 File dist\jpeg.dll
37 File dist\libfreetype-6.dll
38 File dist\libogg-0.dll
39 File dist\libpng12-0.dll
40 File dist\library.zip
41 File dist\libtiff.dll
42 File dist\libvorbis-0.dll
43 File dist\libvorbisfile-3.dll
44; File dist\MSVCR71.dll
45 File dist\puzzlebox_brainstorms_client_local.exe
46 File dist\puzzlebox_brainstorms_client_network.exe
47 File dist\puzzlebox_brainstorms_configuration.ini
48 File dist\puzzlebox_brainstorms_remote_control.exe
49 File dist\puzzlebox_brainstorms_server.exe
50 File dist\pyexpat.pyd
51 File dist\pygame._arraysurfarray.pyd
52 File dist\pygame.base.pyd
53 File dist\pygame.bufferproxy.pyd
54 File dist\pygame.cdrom.pyd
55 File dist\pygame.color.pyd
56 File dist\pygame.constants.pyd
57 File dist\pygame.display.pyd
58 File dist\pygame.draw.pyd
59 File dist\pygame.event.pyd
60 File dist\pygame.fastevent.pyd
61 File dist\pygame.font.pyd
62 File dist\pygame.imageext.pyd
63 File dist\pygame.image.pyd
64 File dist\pygame.joystick.pyd
65 File dist\pygame.key.pyd
66 File dist\pygame.mask.pyd
67 File dist\pygame.mixer_music.pyd
68 File dist\pygame.mixer.pyd
69 File dist\pygame.mouse.pyd
70 File dist\pygame.movie.pyd
71 File dist\pygame._numericsndarray.pyd
72 File dist\pygame._numericsurfarray.pyd
73 File dist\pygame.overlay.pyd
74 File dist\pygame.pixelarray.pyd
75 File dist\pygame.rect.pyd
76 File dist\pygame.rwobject.pyd
77 File dist\pygame.scrap.pyd
78 File dist\pygame.surface.pyd
79 File dist\pygame.surflock.pyd
80 File dist\pygame.time.pyd
81 File dist\pygame.transform.pyd
82 File dist\python25.dll
83 File dist\SDL.dll
84 File dist\SDL_image.dll
85 File dist\SDL_mixer.dll
86 File dist\SDL_ttf.dll
87 File dist\select.pyd
88 File dist\smpeg.dll
89 File dist\_socket.pyd
90 File dist\_ssl.pyd
91 File dist\unicodedata.pyd
92 File dist\w9xpopen.exe
93 File dist\zlib1.dll
94
95SetOutPath $INSTDIR\emokey
96 File emokey\puzzlebox_brainstorms.ekm
97
98SetOutPath $INSTDIR\emoscript
99 File emoscript\puzzlebox_brainstorms-test_drive-push_pull.emo
100 File emoscript\puzzlebox_brainstorms-training-pull.emo
101 File emoscript\puzzlebox_brainstorms-training-push.emo
102
103SetOutPath $INSTDIR\images
104 File dist\images\1-upper_left-orange.png
105 File dist\images\1-upper_left-white.png
106 File dist\images\2-up-orange.png
107 File dist\images\2-up-white.png
108 File dist\images\3-upper_right-orange.png
109 File dist\images\3-upper_right-white.png
110 File dist\images\7-lower_left-orange.png
111 File dist\images\7-lower_left-white.png
112 File dist\images\8-down-orange.png
113 File dist\images\8-down-white.png
114 File dist\images\9-lower_right-orange.png
115 File dist\images\9-lower_right-white.png
116 File dist\images\puzzlebox.ico
117
118;SetOutPath $INSTDIR\fonts
119; File dist\fonts\tahomabd.ttf
120; File dist\fonts\tahoma.ttf
121
122 File package\vcredist_x86.exe
123
124ExecWait 'package\Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"'
125
126
127; write out uninstaller
128WriteUninstaller "$INSTDIR\PuzzleboxBrainstorms-Uninstall.exe"
129
130SectionEnd ; end of default section
131
132
133Section "Start Menu + Desktop Icons"
134;  SetOutPath "$SMPROGRAMS\Puzzlebox Brainstorms"
135  SetOutPath $INSTDIR
136  CreateDirectory "$SMPROGRAMS\Puzzlebox Brainstorms"
137  CreateShortCut "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox Brainstorms.lnk" \
138                 "$INSTDIR\puzzlebox_brainstorms_client_interface_local.exe" \
139                 ""  ""  "0"  "SW_SHOWMINIMIZED"
140  CreateShortCut "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox Brainstorms Network Client.lnk" \
141                 "$INSTDIR\puzzlebox_brainstorms_client_interface_network.exe" \
142                 ""  ""  "0"  "SW_SHOWMINIMIZED"
143  CreateShortCut "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox Brainstorms Network Server.lnk" \
144                 "$INSTDIR\puzzlebox_brainstorms_network_server.exe" \
145                 ""  ""  "0"  "SW_SHOWMINIMIZED"
146  CreateShortCut "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox ThinkGear Connect Client.lnk" \
147                 "$INSTDIR\puzzlebox_brainstorms_network_client_twisted.exe" \
148                 ""  ""  "0"  "SW_SHOWMINIMIZED"
149  CreateShortCut "$SMPROGRAMS\Puzzlebox Brainstorms\Edit Puzzlebox Brainstorms Configuration.lnk" \
150                 "$INSTDIR\puzzlebox_brainstorms_configuration.ini" \
151                 ""  ""  "0"  ""
152  CreateShortCut "$SMPROGRAMS\Puzzlebox Brainstorms\Uninstall Puzzlebox Brainstorms.lnk" \
153                 "$INSTDIR\PuzzleboxBrainstorms-Uninstall.exe"
154  CreateShortCut "$DESKTOP\Puzzlebox Brainstorms.lnk"
155                 "$INSTDIR\puzzlebox_brainstorms_client_interface_local.exe" \
156                 ""  ""  "0"  "SW_SHOWMINIMIZED"
157SectionEnd
158
159
160; begin uninstall settings/section
161UninstallText "This will uninstall Puzzlebox Brainstorms from your system"
162
163Section Uninstall
164; add delete commands to delete whatever files/registry keys/etc you installed here.
165 Delete "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox Brainstorms.lnk"
166 Delete "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox Brainstorms Network Client.lnk"
167 Delete "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox Brainstorms Network Server.lnk"
168 Delete "$SMPROGRAMS\Puzzlebox Brainstorms\Puzzlebox ThinkGear Connect Client.lnk"
169 Delete "$SMPROGRAMS\Puzzlebox Brainstorms\Edit Puzzlebox Brainstorms Configuration.lnk"
170 Delete "$SMPROGRAMS\Puzzlebox Brainstorms\Uninstall Puzzlebox Brainstorms.lnk"
171 RMDir "$SMPROGRAMS\Puzzlebox Brainstorms"
172 Delete "$DESKTOP\Puzzlebox Brainstorms.lnk"
173
174
175 Delete $INSTDIR\bz2.pyd
176 Delete $INSTDIR\_ctypes.pyd
177 Delete $INSTDIR\_hashlib.pyd
178 Delete $INSTDIR\jpeg.dll
179 Delete $INSTDIR\libfreetype-6.dll
180 Delete $INSTDIR\libogg-0.dll
181 Delete $INSTDIR\libpng12-0.dll
182 Delete $INSTDIR\library.zip
183 Delete $INSTDIR\libtiff.dll
184 Delete $INSTDIR\libvorbis-0.dll
185 Delete $INSTDIR\libvorbisfile-3.dll
186 Delete $INSTDIR\MSVCR71.dll
187 Delete $INSTDIR\puzzlebox_brainstorms_client_local.exe
188 Delete $INSTDIR\puzzlebox_brainstorms_client_network.exe
189 Delete $INSTDIR\puzzlebox_brainstorms_configuration.ini
190 Delete $INSTDIR\puzzlebox_brainstorms_remote_control.exe
191 Delete $INSTDIR\puzzlebox_brainstorms_server.exe
192 Delete $INSTDIR\pyexpat.pyd
193 Delete $INSTDIR\pygame._arraysurfarray.pyd
194 Delete $INSTDIR\pygame.base.pyd
195 Delete $INSTDIR\pygame.bufferproxy.pyd
196 Delete $INSTDIR\pygame.cdrom.pyd
197 Delete $INSTDIR\pygame.color.pyd
198 Delete $INSTDIR\pygame.constants.pyd
199 Delete $INSTDIR\pygame.display.pyd
200 Delete $INSTDIR\pygame.draw.pyd
201 Delete $INSTDIR\pygame.event.pyd
202 Delete $INSTDIR\pygame.fastevent.pyd
203 Delete $INSTDIR\pygame.font.pyd
204 Delete $INSTDIR\pygame.imageext.pyd
205 Delete $INSTDIR\pygame.image.pyd
206 Delete $INSTDIR\pygame.joystick.pyd
207 Delete $INSTDIR\pygame.key.pyd
208 Delete $INSTDIR\pygame.mask.pyd
209 Delete $INSTDIR\pygame.mixer_music.pyd
210 Delete $INSTDIR\pygame.mixer.pyd
211 Delete $INSTDIR\pygame.mouse.pyd
212 Delete $INSTDIR\pygame.movie.pyd
213 Delete $INSTDIR\pygame._numericsndarray.pyd
214 Delete $INSTDIR\pygame._numericsurfarray.pyd
215 Delete $INSTDIR\pygame.overlay.pyd
216 Delete $INSTDIR\pygame.pixelarray.pyd
217 Delete $INSTDIR\pygame.rect.pyd
218 Delete $INSTDIR\pygame.rwobject.pyd
219 Delete $INSTDIR\pygame.scrap.pyd
220 Delete $INSTDIR\pygame.surface.pyd
221 Delete $INSTDIR\pygame.surflock.pyd
222 Delete $INSTDIR\pygame.time.pyd
223 Delete $INSTDIR\pygame.transform.pyd
224 Delete $INSTDIR\python25.dll
225 Delete $INSTDIR\SDL.dll
226 Delete $INSTDIR\SDL_image.dll
227 Delete $INSTDIR\SDL_mixer.dll
228 Delete $INSTDIR\SDL_ttf.dll
229 Delete $INSTDIR\select.pyd
230 Delete $INSTDIR\smpeg.dll
231 Delete $INSTDIR\_socket.pyd
232 Delete $INSTDIR\_ssl.pyd
233 Delete $INSTDIR\unicodedata.pyd
234 Delete $INSTDIR\w9xpopen.exe
235 Delete $INSTDIR\zlib1.dll
236
237 Delete $INSTDIR\emokey\puzzlebox_brainstorms.ekm
238 Delete $INSTDIR\emoscript\puzzlebox_brainstorms-test_drive-push_pull.emo
239 Delete $INSTDIR\emoscript\puzzlebox_brainstorms-training-pull.emo
240 Delete $INSTDIR\emoscript\puzzlebox_brainstorms-training-push.emo
241
242 Delete $INSTDIR\images\1-upper_left-orange.png
243 Delete $INSTDIR\images\1-upper_left-white.png
244 Delete $INSTDIR\images\2-up-orange.png
245 Delete $INSTDIR\images\2-up-white.png
246 Delete $INSTDIR\images\3-upper_right-orange.png
247 Delete $INSTDIR\images\3-upper_right-white.png
248 Delete $INSTDIR\images\7-lower_left-orange.png
249 Delete $INSTDIR\images\7-lower_left-white.png
250 Delete $INSTDIR\images\8-down-orange.png
251 Delete $INSTDIR\images\8-down-white.png
252 Delete $INSTDIR\images\9-lower_right-orange.png
253 Delete $INSTDIR\images\9-lower_right-white.png
254 Delete $INSTDIR\images\puzzlebox.ico
255
256 RMDir $INSTDIR\images
257
258; Delete $INSTDIR\fonts\tahomabd.ttf
259; Delete $INSTDIR\fonts\tahoma.ttf
260; RMDir $INSTDIR\fonts
261
262 RMDIR $INSTDIR
263
264Delete "$INSTDIR\PuzzleboxBrainstorms-Uninstall.exe"
265DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox Brainstorms\Puzzlebox Brainstorms"
266DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox Brainstorms"
267RMDir "$INSTDIR"
268
269  ; if $INSTDIR was removed, skip these next ones
270  IfFileExists $INSTDIR 0 Removed
271    MessageBox MB_YESNO|MB_ICONQUESTION \
272      "Remove all files in your Puzzlebox Brainstorms directory? (If you have anything \
273you created that you want to keep, click No)" IDNO Removed
274    Delete $INSTDIR\*.* ; this would be skipped if the user hits no
275    RMDir /r $INSTDIR
276    IfFileExists $INSTDIR 0 Removed
277      MessageBox MB_OK|MB_ICONEXCLAMATION \
278                 "Note: $INSTDIR could not be removed."
279  Removed:
280
281
282SectionEnd ; end of uninstall section
283
284; eof
285
Note: See TracBrowser for help on using the repository browser.