-
Notifications
You must be signed in to change notification settings - Fork 1
/
Tendrils.nsi
254 lines (222 loc) · 5.51 KB
/
Tendrils.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
; Tendrils.nsi
;
; Modified from the example script
!include "MUI.nsh"
;Variables
Var MUI_TEMP
Var STARTMENU_FOLDER
;--------------------------------
; The name of the installer
Name "Tendrils"
; The file to write
OutFile "Tendrils.20110130.exe"
; The default installation directory
InstallDir $PROGRAMFILES\Tendrils
;--------------------------------
; Pages
;Page instfiles
;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Modern UI Test"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
Page directory
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put files there
File "BGM.txt"
File "BigBrother.txt"
File "CombatLog.txt"
File "Critters.txt"
File "Encounters.txt"
File "Items.txt"
File "Map.txt"
File "Tendrils.txt"
File "Trivia.txt"
File "crack.nfo"
File "Bard.py"
File "BattleResults.py"
File "BattleScreen.py"
File "BattleSprites.py"
File "BlezmonScreen.py"
File "Blinkenlights.py"
File "BlockScreen.py"
File "Cacophany.py"
File "Cards.py"
File "CastleLock.py"
File "ChestScreen.py"
File "Constants.py"
File "CountLines.py"
File "Critter.py"
File "CRLF.py"
File "DalekScreen.py"
File "DancingScreen.py"
File "DialogScreen.py"
File "EquipScreen.py"
File "FadeScreen.py"
File "FirstScreen.py"
File "FreePlayScreen.py"
File "Global.py"
File "GrumbleCakes.py"
File "InnScreen.py"
File "Instructions.py"
File "ItemPanel.py"
File "JoustPongScreen.py"
File "JoyConfigScreen.py"
File "LevelUp.py"
File "LightsOutPanel.py"
File "lights_out.py"
File "lock.py"
File "Magic.py"
File "Mastermind.py"
File "MastermindScreen.py"
File "Maze.py"
File "MazeLevel1.py"
File "MazeLevel10.py"
File "MazeLevel2.py"
File "MazeLevel3.py"
File "MazeLevel4.py"
File "MazeLevel5.py"
File "MazeLevel6.py"
File "MazeLevel7.py"
File "MazeLevel8.py"
File "MazeLevel9.py"
File "MazeMaker.py"
File "MazeRooms.py"
File "MazeScreen.py"
File "MemoryCard.py"
File "MessagePanel.py"
File "modmatrix.py"
File "Music.py"
File "NewDialogScreen.py"
File "NPC.py"
File "NPCScreen.py"
File "Old wallSquish.py"
File "Options.py"
File "OptionsScreen.py"
File "Party.py"
File "PegScreen.py"
File "Play.py"
File "PracticeScreen.py"
File "Resources.py"
File "SaveScreen.py"
File "Screen.py"
File "SeanMatrix.py"
File "setup.py"
File "ShopScreen.py"
File "SnipeScreen.py"
File "SolitaireScreen.py"
File "SPCGrabber.py"
File "SPCMunger.py"
File "SpecialItems.py"
File "SpiralMeister.py"
File "SpriteGrab.py"
File "StatusPanel.py"
File "SummonPositions.py"
File "Temp2.py"
File "Tendrils.py"
File "Test.py"
File "TestMunger.py"
File "TowerScreen.py"
File "TriviaScreen.py"
File "Utils.py"
File "VictoryScreen.py"
File "WallGrab.py"
File "wallSquish.py"
File "WelcomeScreen.py"
File "WireLock.py"
File "WordDialTrap.py"
File "WordSquares.py"
File "WormScreen.py"
File "base.pyd"
File "bufferproxy.pyd"
File "bz2.pyd"
File "cdrom.pyd"
File "color.pyd"
File "constants.pyd"
File "display.pyd"
File "draw.pyd"
File "event.pyd"
File "fastevent.pyd"
File "font.pyd"
File "image.pyd"
File "imageext.pyd"
File "joystick.pyd"
File "key.pyd"
File "mask.pyd"
File "mixer.pyd"
File "mixer_music.pyd"
File "mouse.pyd"
File "movie.pyd"
File "overlay.pyd"
File "pixelarray.pyd"
File "rect.pyd"
File "rwobject.pyd"
File "scrap.pyd"
File "select.pyd"
File "surface.pyd"
File "surflock.pyd"
File "time.pyd"
File "transform.pyd"
File "unicodedata.pyd"
File "_arraysurfarray.pyd"
File "_numericsndarray.pyd"
File "_numericsurfarray.pyd"
File "_psyco.pyd"
File "_socket.pyd"
File "_ssl.pyd"
File "jpeg.dll"
File "libfreetype-6.dll"
File "libogg-0.dll"
File "libpng12-0.dll"
File "libtiff.dll"
File "libvorbis-0.dll"
File "libvorbisfile-3.dll"
File "MSVCR71.dll"
File "python25.dll"
File "SDL.dll"
File "SDL_image.dll"
File "SDL_mixer.dll"
File "SDL_ttf.dll"
File "smpeg.dll"
File "zlib1.dll"
File "Tendrils.exe"
File "w9xpopen.exe"
File "library.zip"
File /r Mazes
File /r Fonts
File /r NPC
File /r Summon
File /r Music
File /r Images
File /r Sounds
;Store install folder
WriteRegStr HKCU "Software\Tendrils" "" $INSTDIR
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Tendrils.lnk" "$INSTDIR\Tendrils.exe"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd ; end the section
Section "Uninstall"
Delete "$INSTDIR"
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
;Delete empty start menu parent diretories
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
startMenuDeleteLoop:
RMDir $MUI_TEMP
GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
IfErrors startMenuDeleteLoopDone
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
startMenuDeleteLoopDone:
DeleteRegKey /ifempty HKCU "Software\Tendrils"
SectionEnd ; end of uninstall