source: remote_control/PuzzleboxBrainstorms-ThinkGearEmulator.nsi @ 63

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

thinkgear_emulator_setup:

  • configuration.ini filename changed

thinkgear_emulator_configuration.ini:

  • initial checkin

ThinkGearEmulator?.nsi:

  • initial checkin
  • intital 0.1.4 release
File size: 8.6 KB
Line 
1; Puzzlebox Brainstorms Windows Installer
2
3; NOTE: this .NSI script is designed for NSIS v1.8+
4
5Name "Puzzlebox ThinkGear Emulator"
6OutFile "Puzzlebox-ThinkGearEmulator-0.1.4-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 ThinkGear Emulator"
20InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" ""
21;DirShow show ; (make this hide to not let the user change it)
22DirText "Select the directory to install Puzzlebox ThinkGear Emulator 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 ThinkGear Emulator\Puzzlebox ThinkGear Emulator" "" "$INSTDIR"
30WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" "DisplayName" "Puzzlebox ThinkGear Emulator (remove only)"
31WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" "UninstallString" '"$INSTDIR\Puzzlesbox-ThinkGearEmulator-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_thinkgear.exe
46 File dist\puzzlebox_thinkgear_emulator_configuration.ini
47 File dist\puzzlebox_brainstorms_server_thinkgear.exe
48 File dist\pyexpat.pyd
49 File dist\pygame._arraysurfarray.pyd
50 File dist\pygame.base.pyd
51 File dist\pygame.bufferproxy.pyd
52 File dist\pygame.cdrom.pyd
53 File dist\pygame.color.pyd
54 File dist\pygame.constants.pyd
55 File dist\pygame.display.pyd
56 File dist\pygame.draw.pyd
57 File dist\pygame.event.pyd
58 File dist\pygame.fastevent.pyd
59 File dist\pygame.font.pyd
60 File dist\pygame.imageext.pyd
61 File dist\pygame.image.pyd
62 File dist\pygame.joystick.pyd
63 File dist\pygame.key.pyd
64 File dist\pygame.mask.pyd
65 File dist\pygame.mixer_music.pyd
66 File dist\pygame.mixer.pyd
67 File dist\pygame.mouse.pyd
68 File dist\pygame.movie.pyd
69 File dist\pygame._numericsndarray.pyd
70 File dist\pygame._numericsurfarray.pyd
71 File dist\pygame.overlay.pyd
72 File dist\pygame.pixelarray.pyd
73 File dist\pygame.rect.pyd
74 File dist\pygame.rwobject.pyd
75 File dist\pygame.scrap.pyd
76 File dist\pygame.surface.pyd
77 File dist\pygame.surflock.pyd
78 File dist\pygame.time.pyd
79 File dist\pygame.transform.pyd
80 File dist\python25.dll
81 File dist\SDL.dll
82 File dist\SDL_image.dll
83 File dist\SDL_mixer.dll
84 File dist\SDL_ttf.dll
85 File dist\select.pyd
86 File dist\simplejson._speedups.pyd
87 File dist\smpeg.dll
88 File dist\_socket.pyd
89 File dist\_ssl.pyd
90 File dist\unicodedata.pyd
91 File dist\w9xpopen.exe
92 File dist\zlib1.dll
93
94SetOutPath $INSTDIR\images
95 File dist\images\puzzlebox.ico
96
97 File package\vcredist_x86.exe
98
99ExecWait 'package\Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"'
100
101
102; write out uninstaller
103WriteUninstaller "$INSTDIR\Puzzlebox-ThinkGearEmulator-Uninstall.exe"
104
105SectionEnd ; end of default section
106
107
108Section "Start Menu + Desktop Icons"
109;  SetOutPath "$SMPROGRAMS\Puzzlebox ThinkGear Emulator"
110  SetOutPath $INSTDIR
111  CreateDirectory "$SMPROGRAMS\Puzzlebox ThinkGear Emulator"
112  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Client.lnk" \
113                 "$INSTDIR\puzzlebox_brainstorms_client_thinkgear.exe" \
114                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  "SW_SHOWMINIMIZED"
115  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Server.lnk" \
116                 "$INSTDIR\puzzlebox_brainstorms_server_thinkgear.exe" \
117                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  "SW_SHOWMINIMIZED"
118  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Edit Puzzlebox ThinkGear Emulator Configuration.lnk" \
119                 "$INSTDIR\puzzlebox_thinkgear_emulator_configuration.ini" \
120                 ""  ""  "0"  ""
121  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Uninstall Puzzlebox ThinkGear Emulator.lnk" \
122                 "$INSTDIR\Puzzlebox-ThinkGearEmulator-Uninstall.exe"
123SectionEnd
124
125
126; begin uninstall settings/section
127UninstallText "This will uninstall Puzzlebox ThinkGear Emulator from your system"
128
129Section Uninstall
130; add delete commands to delete whatever files/registry keys/etc you installed here.
131 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Client.lnk"
132 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Server.lnk"
133 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Edit Puzzlebox ThinkGear Emulator Configuration.lnk"
134 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Uninstall Puzzlebox ThinkGear Emulator.lnk"
135   RMDir "$SMPROGRAMS\Puzzlebox ThinkGear Emulator"
136
137
138 Delete $INSTDIR\bz2.pyd
139 Delete $INSTDIR\_ctypes.pyd
140 Delete $INSTDIR\_hashlib.pyd
141 Delete $INSTDIR\jpeg.dll
142 Delete $INSTDIR\libfreetype-6.dll
143 Delete $INSTDIR\libogg-0.dll
144 Delete $INSTDIR\libpng12-0.dll
145 Delete $INSTDIR\library.zip
146 Delete $INSTDIR\libtiff.dll
147 Delete $INSTDIR\libvorbis-0.dll
148 Delete $INSTDIR\libvorbisfile-3.dll
149; Delete $INSTDIR\MSVCR71.dll
150 Delete $INSTDIR\puzzlebox_brainstorms_client_thinkgear.exe
151 Delete $INSTDIR\puzzlebox_thinkgear_emulator_configuration.ini
152 Delete $INSTDIR\puzzlebox_brainstorms_server_thinkgear.exe
153 Delete $INSTDIR\pyexpat.pyd
154 Delete $INSTDIR\pygame._arraysurfarray.pyd
155 Delete $INSTDIR\pygame.base.pyd
156 Delete $INSTDIR\pygame.bufferproxy.pyd
157 Delete $INSTDIR\pygame.cdrom.pyd
158 Delete $INSTDIR\pygame.color.pyd
159 Delete $INSTDIR\pygame.constants.pyd
160 Delete $INSTDIR\pygame.display.pyd
161 Delete $INSTDIR\pygame.draw.pyd
162 Delete $INSTDIR\pygame.event.pyd
163 Delete $INSTDIR\pygame.fastevent.pyd
164 Delete $INSTDIR\pygame.font.pyd
165 Delete $INSTDIR\pygame.imageext.pyd
166 Delete $INSTDIR\pygame.image.pyd
167 Delete $INSTDIR\pygame.joystick.pyd
168 Delete $INSTDIR\pygame.key.pyd
169 Delete $INSTDIR\pygame.mask.pyd
170 Delete $INSTDIR\pygame.mixer_music.pyd
171 Delete $INSTDIR\pygame.mixer.pyd
172 Delete $INSTDIR\pygame.mouse.pyd
173 Delete $INSTDIR\pygame.movie.pyd
174 Delete $INSTDIR\pygame._numericsndarray.pyd
175 Delete $INSTDIR\pygame._numericsurfarray.pyd
176 Delete $INSTDIR\pygame.overlay.pyd
177 Delete $INSTDIR\pygame.pixelarray.pyd
178 Delete $INSTDIR\pygame.rect.pyd
179 Delete $INSTDIR\pygame.rwobject.pyd
180 Delete $INSTDIR\pygame.scrap.pyd
181 Delete $INSTDIR\pygame.surface.pyd
182 Delete $INSTDIR\pygame.surflock.pyd
183 Delete $INSTDIR\pygame.time.pyd
184 Delete $INSTDIR\pygame.transform.pyd
185 Delete $INSTDIR\python25.dll
186 Delete $INSTDIR\SDL.dll
187 Delete $INSTDIR\SDL_image.dll
188 Delete $INSTDIR\SDL_mixer.dll
189 Delete $INSTDIR\SDL_ttf.dll
190 Delete $INSTDIR\select.pyd
191 Delete $INSTDIR\simplejson._speedups.pyd
192 Delete $INSTDIR\smpeg.dll
193 Delete $INSTDIR\_socket.pyd
194 Delete $INSTDIR\_ssl.pyd
195 Delete $INSTDIR\unicodedata.pyd
196 Delete $INSTDIR\w9xpopen.exe
197 Delete $INSTDIR\zlib1.dll
198
199 Delete $INSTDIR\images\puzzlebox.ico
200
201 RMDir $INSTDIR\images
202
203 RMDIR $INSTDIR
204
205Delete "$INSTDIR\Puzzlebox-ThinkGearEmulator-Uninstall.exe"
206DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator"
207DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox ThinkGear Emulator"
208RMDir "$INSTDIR"
209
210  ; if $INSTDIR was removed, skip these next ones
211  IfFileExists $INSTDIR 0 Removed
212    MessageBox MB_YESNO|MB_ICONQUESTION \
213      "Remove all files in your Puzzlebox ThinkGear Emulator directory? (If you have anything \
214you created that you want to keep, click No)" IDNO Removed
215    Delete $INSTDIR\*.* ; this would be skipped if the user hits no
216    RMDir /r $INSTDIR
217    IfFileExists $INSTDIR 0 Removed
218      MessageBox MB_OK|MB_ICONEXCLAMATION \
219                 "Note: $INSTDIR could not be removed."
220  Removed:
221
222
223SectionEnd ; end of uninstall section
224
225; eof
226
Note: See TracBrowser for help on using the repository browser.