Subversion Repositories duke3d_hrp

Rev

Rev 257 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 257 Rev 673
1
; Script generated by the HM NIS Edit Script Wizard.
1
; Script generated by the HM NIS Edit Script Wizard.
2
 
2
 
3
; HM NIS Edit Wizard helper defines
3
; HM NIS Edit Wizard helper defines
4
!define PRODUCT_NAME "Duke Nukem 3D HRP"
4
!define PRODUCT_NAME "Duke Nukem 3D HRP"
5
!define PRODUCT_VERSION "V 4.0 (321)"
5
!define PRODUCT_VERSION "V 4.0 (321)"
6
!define PRODUCT_WEB_SITE "http://hrp.duke4.net"
6
!define PRODUCT_WEB_SITE "http://hrp.duke4.net"
7
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\eduke32.exe"
7
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\eduke32.exe"
8
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
8
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
9
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
9
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
10
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
10
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
11
 
11
 
12
SetCompressor lzma
12
SetCompressor lzma
13
 
13
 
14
; MUI 1.67 compatible ------
14
; MUI 1.67 compatible ------
15
!include "MUI.nsh"
15
!include "MUI.nsh"
16
!include "Sections.nsh"
16
!include "Sections.nsh"
17
 
17
 
18
; MUI Settings
18
; MUI Settings
19
!define MUI_ABORTWARNING
19
!define MUI_ABORTWARNING
20
!define MUI_ICON "icon.ico"
20
!define MUI_ICON "icon.ico"
21
!define MUI_UNICON "uninst.ico"
21
!define MUI_UNICON "uninst.ico"
22
 
22
 
23
!define MUI_HEADERIMAGE
23
!define MUI_HEADERIMAGE
24
!define MUI_WELCOMEFINISHPAGE_BITMAP "page.bmp"
24
!define MUI_WELCOMEFINISHPAGE_BITMAP "page.bmp"
25
!insertmacro MUI_DEFAULT MUI_HEADERIMAGE_BITMAP "banner.bmp"
25
!insertmacro MUI_DEFAULT MUI_HEADERIMAGE_BITMAP "banner.bmp"
26
 
26
 
27
; Welcome page
27
; Welcome page
28
!define MUI_WELCOMEPAGE_TITLE_3LINES
28
!define MUI_WELCOMEPAGE_TITLE_3LINES
29
!insertmacro MUI_PAGE_WELCOME
29
!insertmacro MUI_PAGE_WELCOME
30
 
30
 
31
; License page (Build license)
31
; License page (Build license)
32
!define MUI_PAGE_HEADER_TEXT "Build Source Code License Agreement (Build engine)"
32
!define MUI_PAGE_HEADER_TEXT "Build Source Code License Agreement (Build engine)"
33
!define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms of the build source code before installing."
33
!define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms of the build source code before installing."
34
!insertmacro MUI_PAGE_LICENSE "BUILDLIC.TXT"
34
!insertmacro MUI_PAGE_LICENSE "BUILDLIC.TXT"
35
 
35
 
36
; License page (GNU public license)
36
; License page (GNU public license)
37
!define MUI_PAGE_HEADER_TEXT "GNU Public License Agreement (EDuke32)"
37
!define MUI_PAGE_HEADER_TEXT "GNU Public License Agreement (EDuke32)"
38
!define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms of the EDuke32 port before installing."
38
!define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms of the EDuke32 port before installing."
39
!insertmacro MUI_PAGE_LICENSE "GNU.TXT"
39
!insertmacro MUI_PAGE_LICENSE "GNU.TXT"
40
 
40
 
41
; License page (HRP art license)
41
; License page (HRP art license)
42
!define MUI_PAGE_HEADER_TEXT "HRP Art License Agreement (High Resolution Content)"
42
!define MUI_PAGE_HEADER_TEXT "HRP Art License Agreement (High Resolution Content)"
43
!define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms of the high resolution content port before installing."
43
!define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms of the high resolution content port before installing."
44
!insertmacro MUI_PAGE_LICENSE "hrp_art_license.txt"
44
!insertmacro MUI_PAGE_LICENSE "hrp_art_license.txt"
45
 
45
 
46
; Components page
46
; Components page
47
!insertmacro MUI_PAGE_COMPONENTS
47
!insertmacro MUI_PAGE_COMPONENTS
48
; Directory page
48
; Directory page
49
!insertmacro MUI_PAGE_DIRECTORY
49
!insertmacro MUI_PAGE_DIRECTORY
50
; Start menu page
50
; Start menu page
51
var ICONS_GROUP
51
var ICONS_GROUP
52
!define MUI_STARTMENUPAGE_NODISABLE
52
!define MUI_STARTMENUPAGE_NODISABLE
53
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Duke Nukem 3D"
53
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Duke Nukem 3D"
54
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
54
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
55
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
55
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
56
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
56
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
57
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
57
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
58
; Instfiles page
58
; Instfiles page
59
!insertmacro MUI_PAGE_INSTFILES
59
!insertmacro MUI_PAGE_INSTFILES
60
; Finish page
60
; Finish page
61
!define MUI_FINISHPAGE_RUN "$INSTDIR\eduke32.exe"
61
!define MUI_FINISHPAGE_RUN "$INSTDIR\eduke32.exe"
62
!define MUI_FINISHPAGE_RUN_PARAMETERS ""
62
!define MUI_FINISHPAGE_RUN_PARAMETERS ""
63
!define MUI_FINISHPAGE_LINK "Visit the HRP website."
63
!define MUI_FINISHPAGE_LINK "Visit the HRP website."
64
!define MUI_FINISHPAGE_LINK_LOCATION "http://hrp.duke4.net"
64
!define MUI_FINISHPAGE_LINK_LOCATION "http://hrp.duke4.net"
65
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\hrp_readme.txt"
65
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\hrp_readme.txt"
66
!insertmacro MUI_PAGE_FINISH
66
!insertmacro MUI_PAGE_FINISH
67
 
67
 
68
; Uninstaller pages
68
; Uninstaller pages
69
!insertmacro MUI_UNPAGE_INSTFILES
69
!insertmacro MUI_UNPAGE_INSTFILES
70
 
70
 
71
; Language files
71
; Language files
72
!insertmacro MUI_LANGUAGE "English"
72
!insertmacro MUI_LANGUAGE "English"
73
 
73
 
74
; Reserve files
74
; Reserve files
75
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
75
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
76
 
76
 
77
; MUI end ------
77
; MUI end ------
78
 
78
 
79
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
79
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
80
OutFile "dn3d_hrp-4.0(321).exe"
80
OutFile "dn3d_hrp-4.0(321).exe"
81
InstallDir "c:\duke3d"
81
InstallDir "c:\duke3d"
82
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
82
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
83
ShowInstDetails show
83
ShowInstDetails show
84
ShowUnInstDetails show
84
ShowUnInstDetails show
85
 
85
 
86
Section "EDuke32" SEC01
86
Section "EDuke32" SEC01
87
  SetOutPath "$INSTDIR"
87
  SetOutPath "$INSTDIR"
88
  SetOverwrite ifnewer
88
  SetOverwrite ifnewer
89
  File "eduke32\eduke32.exe"
89
  File "eduke32\eduke32.exe"
90
  File "eduke32\mapster32.exe"
90
  File "eduke32\mapster32.exe"
91
  File "eduke32\m32help.hlp"
91
  File "eduke32\m32help.hlp"
92
  File "eduke32\NAMES.H"
92
  File "eduke32\NAMES.H"
93
  File "eduke32\tiles.cfg"
93
  File "eduke32\tiles.cfg"
94
 
94
 
95
; Shortcuts
95
; Shortcuts
96
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
96
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
97
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
97
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
98
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Duke Nukem 3D (EDuke32).lnk" "$INSTDIR\eduke32.exe"
98
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Duke Nukem 3D (EDuke32).lnk" "$INSTDIR\eduke32.exe"
99
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Mapster32.lnk" "$INSTDIR\eduke32.exe"
99
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Mapster32.lnk" "$INSTDIR\eduke32.exe"
100
  !insertmacro MUI_STARTMENU_WRITE_END
100
  !insertmacro MUI_STARTMENU_WRITE_END
101
 
101
 
102
SectionEnd
102
SectionEnd
103
 
103
 
104
Section "High resolution content" SEC02
104
Section "High resolution content" SEC02
105
  SetOutPath "$INSTDIR"
105
  SetOutPath "$INSTDIR"
106
  SetOverwrite ifnewer
106
  SetOverwrite ifnewer
107
 
107
 
108
  File "hrp_content\hrp_readme.txt"
108
  File "hrp_content\hrp_readme.txt"
109
  File "hrp_content\hrp_art_license.txt"
109
  File "hrp_content\hrp_art_license.txt"
110
  SetOutPath "$INSTDIR\autoload\duke3d.grp"
110
  SetOutPath "$INSTDIR\autoload"
111
  File "hrp_content\duke3d_hrp.zip"
111
  File "hrp_content\duke3d_hrp.zip"
112
SectionEnd
112
SectionEnd
113
 
113
 
114
Section "Atomic map hacks" SEC03
-
 
115
  SetOutPath "$INSTDIR\autoload\duke3d.grp"
-
 
116
  SetOverwrite ifnewer
-
 
117
 
-
 
118
  File "maphacks_atomic\maphacks.zip"
-
 
119
SectionEnd
-
 
120
 
-
 
121
Section /o "1.3d map hacks" SEC04
-
 
122
  SetOutPath "$INSTDIR\autoload\duke3d.grp"
-
 
123
  SetOverwrite ifnewer
-
 
124
 
-
 
125
  File "maphacks_13d\maphacks.zip"
-
 
126
SectionEnd
-
 
127
 
-
 
128
Section "High Quality Muisc" SEC05
114
Section "High Quality Muisc" SEC05
129
  SetOutPath "$instdir\autoload\duke3d.grp"
115
  SetOutPath "$instdir\autoload"
130
  SetOverwrite ifnewer
116
  SetOverwrite ifnewer
131
 
117
 
132
  File "music\eduke32_mus.zip"
118
  File "music\eduke32_mus.zip"
133
SectionEnd
119
SectionEnd
134
 
120
 
135
Section "Duke Plus mod" SEC06
121
Section "Duke Plus mod" SEC06
136
 
122
 
137
   SetOutPath "$INSTDIR"
123
   SetOutPath "$INSTDIR"
138
   SetOverwrite ifnewer
124
   SetOverwrite ifnewer
139
 
125
 
140
   File "duke_plus\DPEFFECTS.html"
126
   File "duke_plus\DPEFFECTS.html"
141
   File "duke_plus\dukeplus.bat"
127
   File "duke_plus\dukeplus.bat"
142
   File "duke_plus\DukePlus_Manual.html"
128
   File "duke_plus\DukePlus_Manual.html"
143
   File "duke_plus\mapster.bat"
129
   File "duke_plus\mapster.bat"
144
 
130
 
145
   SetOutPath "$INSTDIR\DukePlus"
131
   SetOutPath "$INSTDIR\DukePlus"
146
 
132
 
147
   File "duke_plus\DukePlus\dpmaps.zip"
133
   File "duke_plus\DukePlus\dpmaps.zip"
148
   File "duke_plus\DukePlus\dukeplus.def"
134
   File "duke_plus\DukePlus\dukeplus.def"
149
   File "duke_plus\DukePlus\DUKEPLUS_RESOURCES.zip"
135
   File "duke_plus\DukePlus\DUKEPLUS_RESOURCES.zip"
150
   File "duke_plus\DukePlus\EDUKE.CON"
136
   File "duke_plus\DukePlus\EDUKE.CON"
151
   File "duke_plus\DukePlus\tiles005.art"
137
   File "duke_plus\DukePlus\tiles005.art"
152
   File "duke_plus\DukePlus\tiles024.art"
138
   File "duke_plus\DukePlus\tiles024.art"
153
 
139
 
154
   SetOutPath "$INSTDIR\DukePlus\dpcons"
140
   SetOutPath "$INSTDIR\DukePlus\dpcons"
155
 
141
 
156
   File "duke_plus\DukePlus\dpcons\DEFSPLUS.CON"
142
   File "duke_plus\DukePlus\dpcons\DEFSPLUS.CON"
157
   File "duke_plus\DukePlus\dpcons\DUKEPLUS.CON"
143
   File "duke_plus\DukePlus\dpcons\DUKEPLUS.CON"
158
   File "duke_plus\DukePlus\dpcons\HUDPLUS.CON"
144
   File "duke_plus\DukePlus\dpcons\HUDPLUS.CON"
159
   File "duke_plus\DukePlus\dpcons\LIGHTS.CON"
145
   File "duke_plus\DukePlus\dpcons\LIGHTS.CON"
160
   File "duke_plus\DukePlus\dpcons\PLAYERPLUS.CON"
146
   File "duke_plus\DukePlus\dpcons\PLAYERPLUS.CON"
161
   File "duke_plus\DukePlus\dpcons\USERPLUS.CON"
147
   File "duke_plus\DukePlus\dpcons\USERPLUS.CON"
162
 
148
 
163
; Shortcuts
149
; Shortcuts
164
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
150
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
165
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
151
  CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
166
  SetOutPath "$INSTDIR"
152
  SetOutPath "$INSTDIR"
167
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Duke Plus.lnk" "$INSTDIR\dukeplus.bat"
153
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Duke Plus.lnk" "$INSTDIR\dukeplus.bat"
168
  !insertmacro MUI_STARTMENU_WRITE_END
154
  !insertmacro MUI_STARTMENU_WRITE_END
169
SectionEnd
155
SectionEnd
170
 
156
 
171
Section "-grpinstaller"
157
Section "-grpinstaller"
172
  SetOutPath "$INSTDIR"
158
  SetOutPath "$INSTDIR"
173
  SetOverwrite ifnewer
159
  SetOverwrite ifnewer
174
 
160
 
175
  File "datainst.exe"
161
  File "datainst.exe"
176
 
162
 
177
  IfFileExists "$INSTDIR\duke3d.grp" SkipGrpIn
163
  IfFileExists "$INSTDIR\duke3d.grp" SkipGrpIn
178
     MessageBox MB_YESNO "Do you want to run the GRP installer to find your duke3d.grp file and copy it to your HRP folder?" IDNO SkipGrpIn
164
     MessageBox MB_YESNO "Do you want to run the GRP installer to find your duke3d.grp file and copy it to your HRP folder?" IDNO SkipGrpIn
179
     DetailPrint "Running grp installer..."
165
     DetailPrint "Running grp installer..."
180
     exec "$INSTDIR\datainst.exe"
166
     exec "$INSTDIR\datainst.exe"
181
  SkipGrpIn:
167
  SkipGrpIn:
182
 
168
 
183
SectionEnd
169
SectionEnd
184
 
170
 
185
 
171
 
186
Function .onSelChange
172
Function .onSelChange
187
  !insertmacro StartRadioButtons $1
173
  !insertmacro StartRadioButtons $1
188
    !insertmacro RadioButton ${SEC03}
174
    !insertmacro RadioButton ${SEC03}
189
    !insertmacro RadioButton ${SEC04}
175
    !insertmacro RadioButton ${SEC04}
190
  !insertmacro EndRadioButtons
176
  !insertmacro EndRadioButtons
191
FunctionEnd
177
FunctionEnd
192
 
178
 
193
Function .onInit
179
Function .onInit
194
 
180
 
195
  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${PRODUCT_NAME} ${PRODUCT_VERSION}") i .r1 ?e'
181
  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${PRODUCT_NAME} ${PRODUCT_VERSION}") i .r1 ?e'
196
  Pop $R0
182
  Pop $R0
197
  StrCmp $R0 0 +3
183
  StrCmp $R0 0 +3
198
    MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
184
    MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
199
    Abort
185
    Abort
200
 
186
 
201
  SetOutPath $TEMP
187
  SetOutPath $TEMP
202
  File /oname=spltmp.bmp "hrp_splash.bmp"
188
  File /oname=spltmp.bmp "hrp_splash.bmp"
203
  advsplash::show 1500 600 250 -1 $TEMP\spltmp
189
  advsplash::show 1500 600 250 -1 $TEMP\spltmp
204
  Pop $0
190
  Pop $0
205
  Delete $TEMP\spltmp.bmp
191
  Delete $TEMP\spltmp.bmp
206
 
192
 
207
  StrCpy $1 ${SEC04} ; Group 1 - Option 1 is selected by default
193
  StrCpy $1 ${SEC04} ; Group 1 - Option 1 is selected by default
208
 
194
 
209
FunctionEnd
195
FunctionEnd
210
 
196
 
211
Section -AdditionalIcons
197
Section -AdditionalIcons
212
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
198
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
213
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
199
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
214
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\HRP Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
200
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\HRP Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
215
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
201
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
216
  !insertmacro MUI_STARTMENU_WRITE_END
202
  !insertmacro MUI_STARTMENU_WRITE_END
217
SectionEnd
203
SectionEnd
218
 
204
 
219
Section -Post
205
Section -Post
220
  WriteUninstaller "$INSTDIR\uninst.exe"
206
  WriteUninstaller "$INSTDIR\uninst.exe"
221
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\eduke32.exe"
207
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\eduke32.exe"
222
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "Path" "$INSTDIR"
208
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "Path" "$INSTDIR"
223
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
209
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
224
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
210
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
225
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
211
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
226
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
212
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
227
SectionEnd
213
SectionEnd
228
 
214
 
229
; Section descriptions
215
; Section descriptions
230
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
216
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
231
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "The eDuke32 port that is needed to use the high resolution content. Only uncheck this if you want to install it manualy or if you already have it installed."
217
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "The eDuke32 port that is needed to use the high resolution content. Only uncheck this if you want to install it manualy or if you already have it installed."
232
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "The high resoltution textures and models."
218
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "The high resoltution textures and models."
233
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Map hacks for atomic and plutonium pack version of the game. fixes model related problems caused by original level design not being designed for 3D models."
219
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Map hacks for atomic and plutonium pack version of the game. fixes model related problems caused by original level design not being designed for 3D models."
234
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Map hacks for 1.3d full or shareware version of the game. fixes model related problems caused by original level design not being designed for 3D models."
220
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Map hacks for 1.3d full or shareware version of the game. fixes model related problems caused by original level design not being designed for 3D models."
235
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "A pack of high quality replacements for the games music."
221
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "A pack of high quality replacements for the games music."
236
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "A game enhancement mod with bug fixes and (mostly optional) new features."
222
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "A game enhancement mod with bug fixes and (mostly optional) new features."
237
!insertmacro MUI_FUNCTION_DESCRIPTION_END
223
!insertmacro MUI_FUNCTION_DESCRIPTION_END
238
 
224
 
239
Function un.onUninstSuccess
225
Function un.onUninstSuccess
240
  HideWindow
226
  HideWindow
241
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
227
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
242
FunctionEnd
228
FunctionEnd
243
 
229
 
244
Function un.onInit
230
Function un.onInit
245
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
231
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
246
  Abort
232
  Abort
247
FunctionEnd
233
FunctionEnd
248
 
234
 
249
Section Uninstall
235
Section Uninstall
250
  !insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
236
  !insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
251
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
237
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
252
  Delete "$INSTDIR\uninst.exe"
238
  Delete "$INSTDIR\uninst.exe"
253
;eduke32 files
239
;eduke32 files
254
  Delete "$INSTDIR\eduke32.exe"
240
  Delete "$INSTDIR\eduke32.exe"
255
  Delete "$INSTDIR\mapster32.exe"
241
  Delete "$INSTDIR\mapster32.exe"
256
  Delete "$INSTDIR\m32help.hlp"
242
  Delete "$INSTDIR\m32help.hlp"
257
  Delete "$INSTDIR\NAMES.H"
243
  Delete "$INSTDIR\NAMES.H"
258
  Delete "$INSTDIR\tiles.cfg"
244
  Delete "$INSTDIR\tiles.cfg"
259
 
245
 
260
;hrp content
246
;hrp content
261
  Delete "$INSTDIR\hrp_readme.txt"
247
  Delete "$INSTDIR\hrp_readme.txt"
262
  Delete "$INSTDIR\hrp_art_license.txt"
248
  Delete "$INSTDIR\hrp_art_license.txt"
263
  Delete "$INSTDIR\autoload\duke3d.grp\duke3d_hrp.zip"
249
  Delete "$INSTDIR\autoload\duke3d_hrp.zip"
264
  Delete "$INSTDIR\autoload\duke3d.grp\maphacks.zip"
-
 
265
 
250
 
266
;music content
251
;music content
267
  Delete "$INSTDIR\autoload\duke3d.grp\eduke32_mus.zip"
252
  Delete "$INSTDIR\autoload\eduke32_mus.zip"
268
 
253
 
269
;duke plus
254
;duke plus
270
   Delete "$INSTDIR\DPEFFECTS.html"
255
   Delete "$INSTDIR\DPEFFECTS.html"
271
   Delete "$INSTDIR\dukeplus.bat"
256
   Delete "$INSTDIR\dukeplus.bat"
272
   Delete "$INSTDIR\DukePlus_Manual.html"
257
   Delete "$INSTDIR\DukePlus_Manual.html"
273
   Delete "$INSTDIR\mapster.bat"
258
   Delete "$INSTDIR\mapster.bat"
274
 
259
 
275
   Delete "$INSTDIR\DukePlus\dpmaps.zip"
260
   Delete "$INSTDIR\DukePlus\dpmaps.zip"
276
   Delete "$INSTDIR\DukePlus\dukeplus.def"
261
   Delete "$INSTDIR\DukePlus\dukeplus.def"
277
   Delete "$INSTDIR\DukePlus\DUKEPLUS_RESOURCES.zip"
262
   Delete "$INSTDIR\DukePlus\DUKEPLUS_RESOURCES.zip"
278
   Delete "$INSTDIR\DukePlus\EDUKE.CON"
263
   Delete "$INSTDIR\DukePlus\EDUKE.CON"
279
   Delete "$INSTDIR\DukePlus\tiles005.art"
264
   Delete "$INSTDIR\DukePlus\tiles005.art"
280
   Delete "$INSTDIR\DukePlus\tiles024.art"
265
   Delete "$INSTDIR\DukePlus\tiles024.art"
281
 
266
 
282
   Delete "$INSTDIR\DukePlus\dpcons\DEFSPLUS.CON"
267
   Delete "$INSTDIR\DukePlus\dpcons\DEFSPLUS.CON"
283
   Delete "$INSTDIR\DukePlus\dpcons\DUKEPLUS.CON"
268
   Delete "$INSTDIR\DukePlus\dpcons\DUKEPLUS.CON"
284
   Delete "$INSTDIR\DukePlus\dpcons\HUDPLUS.CON"
269
   Delete "$INSTDIR\DukePlus\dpcons\HUDPLUS.CON"
285
   Delete "$INSTDIR\DukePlus\dpcons\LIGHTS.CON"
270
   Delete "$INSTDIR\DukePlus\dpcons\LIGHTS.CON"
286
   Delete "$INSTDIR\DukePlus\dpcons\PLAYERPLUS.CON"
271
   Delete "$INSTDIR\DukePlus\dpcons\PLAYERPLUS.CON"
287
   Delete "$INSTDIR\DukePlus\dpcons\USERPLUS.CON"
272
   Delete "$INSTDIR\DukePlus\dpcons\USERPLUS.CON"
288
 
273
 
289
   Delete "$INSTDIR\DukePlus\*.log"
274
   Delete "$INSTDIR\DukePlus\*.log"
290
 
275
 
291
   IfFileExists "$INSTDIR\DukePlus\*.cfg" 0 SkipDnPlusCfg
276
   IfFileExists "$INSTDIR\DukePlus\*.cfg" 0 SkipDnPlusCfg
292
   MessageBox MB_YESNO "Do you want to remove Duke Plus configuration files? These files contain the configuration of the Duke Plus mod." IDNO SkipDnPlusCfg
277
   MessageBox MB_YESNO "Do you want to remove Duke Plus configuration files? These files contain the configuration of the Duke Plus mod." IDNO SkipDnPlusCfg
293
     Delete "$INSTDIR\DukePlus\*.cfg"
278
     Delete "$INSTDIR\DukePlus\*.cfg"
294
   SkipDnPlusCfg:
279
   SkipDnPlusCfg:
295
 
280
 
296
   IfFileExists "$INSTDIR\DukePlus\*.sav" 0 SkipDnPlusSav
281
   IfFileExists "$INSTDIR\DukePlus\*.sav" 0 SkipDnPlusSav
297
   MessageBox MB_YESNO "Do you want to remove your saved Duke Plus games?" IDNO SkipDnPlusSav
282
   MessageBox MB_YESNO "Do you want to remove your saved Duke Plus games?" IDNO SkipDnPlusSav
298
     Delete "$INSTDIR\DukePlus\*.sav"
283
     Delete "$INSTDIR\DukePlus\*.sav"
299
   SkipDnPlusSav:
284
   SkipDnPlusSav:
300
 
285
 
301
   IfFileExists "$INSTDIR\DukePlus\*.dmo" 0 SkipDnPlusDmo
286
   IfFileExists "$INSTDIR\DukePlus\*.dmo" 0 SkipDnPlusDmo
302
   MessageBox MB_YESNO "Do you want to remove your Duke Plus demo recordings?" IDNO SkipDnPlusDmo
287
   MessageBox MB_YESNO "Do you want to remove your Duke Plus demo recordings?" IDNO SkipDnPlusDmo
303
     Delete "$INSTDIR\DukePlus\*.dmo"
288
     Delete "$INSTDIR\DukePlus\*.dmo"
304
   SkipDnPlusDmo:
289
   SkipDnPlusDmo:
305
 
290
 
306
 
291
 
307
;datainst
292
;datainst
308
  Delete "$INSTDIR\datainst.exe"
293
  Delete "$INSTDIR\datainst.exe"
309
 
294
 
310
;cahce files
295
;cahce files
311
  Delete "$INSTDIR\textures"
296
  Delete "$INSTDIR\textures"
312
  Delete "$INSTDIR\*.cache"
297
  Delete "$INSTDIR\*.cache"
313
  Delete "$INSTDIR\DukePlus\textures"
298
  Delete "$INSTDIR\DukePlus\textures"
314
  Delete "$INSTDIR\DukePlus\*.cache"
299
  Delete "$INSTDIR\DukePlus\*.cache"
315
 
300
 
316
; shortcuts
301
; shortcuts
317
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall"
302
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall"
318
  Delete "$SMPROGRAMS\$ICONS_GROUP\HRP Website"
303
  Delete "$SMPROGRAMS\$ICONS_GROUP\HRP Website"
319
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Nukem 3D (EDuke32)"
304
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Nukem 3D (EDuke32)"
320
  Delete "$SMPROGRAMS\$ICONS_GROUP\Mapster32"
305
  Delete "$SMPROGRAMS\$ICONS_GROUP\Mapster32"
321
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Plus"
306
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Plus"
322
  Delete "$SMPROGRAMS\$ICONS_GROUP\Setup video audio and controls"
307
  Delete "$SMPROGRAMS\$ICONS_GROUP\Setup video audio and controls"
323
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
308
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
324
  Delete "$SMPROGRAMS\$ICONS_GROUP\HRP Website.lnk"
309
  Delete "$SMPROGRAMS\$ICONS_GROUP\HRP Website.lnk"
325
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Nuke.lnkm 3D (EDuke32).lnk"
310
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Nuke.lnkm 3D (EDuke32).lnk"
326
  Delete "$SMPROGRAMS\$ICONS_GROUP\Mapster32"
311
  Delete "$SMPROGRAMS\$ICONS_GROUP\Mapster32"
327
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Plus.lnk"
312
  Delete "$SMPROGRAMS\$ICONS_GROUP\Duke Plus.lnk"
328
  Delete "$SMPROGRAMS\$ICONS_GROUP\Setup video audio and controls.lnk"
313
  Delete "$SMPROGRAMS\$ICONS_GROUP\Setup video audio and controls.lnk"
329
 
314
 
330
;logfiles
315
;logfiles
331
  Delete "$INSTDIR\*.log"
316
  Delete "$INSTDIR\*.log"
332
 
317
 
333
;folders
318
;folders
334
  SetOutPath $TEMP
319
  SetOutPath $TEMP
335
  RMDir "$SMPROGRAMS\$ICONS_GROUP"
320
  RMDir "$SMPROGRAMS\$ICONS_GROUP"
336
  RMDir "$INSTDIR\autoload\duke3d.grp"
321
  RMDir "$INSTDIR\autoload"
337
  RMDir "$INSTDIR\autoload"
322
  RMDir "$INSTDIR\autoload"
338
  RMDir "$INSTDIR\texcache"
323
  RMDir "$INSTDIR\texcache"
339
  RMDir "$INSTDIR\DukePlus\dpcons"
324
  RMDir "$INSTDIR\DukePlus\dpcons"
340
  RMDir "$INSTDIR\DukePlus"
325
  RMDir "$INSTDIR\DukePlus"
341
  RMDir "$INSTDIR"
326
  RMDir "$INSTDIR"
342
 
327
 
343
  IfFileExists "$INSTDIR\duke3d.grp" 0 SkipGrpUn
328
  IfFileExists "$INSTDIR\duke3d.grp" 0 SkipGrpUn
344
  MessageBox MB_YESNO "Do you want to remove $INSTDIR\duke3d.grp? This file contains the original Duke Nukem 3D art, maps, sounds etc." IDNO SkipGrpUn
329
  MessageBox MB_YESNO "Do you want to remove $INSTDIR\duke3d.grp? This file contains the original Duke Nukem 3D art, maps, sounds etc." IDNO SkipGrpUn
345
    Delete "$INSTDIR\duke3d.grp"
330
    Delete "$INSTDIR\duke3d.grp"
346
  SkipGrpUn:
331
  SkipGrpUn:
347
  
332
  
348
  IfFileExists "$INSTDIR\*.cfg" 0 SkipCfgUn
333
  IfFileExists "$INSTDIR\*.cfg" 0 SkipCfgUn
349
  MessageBox MB_YESNO "Do you want to remove eDuke32 configuration files? These files contain the configuration of eDuke32 and Mapster32." IDNO SkipCfgUn
334
  MessageBox MB_YESNO "Do you want to remove eDuke32 configuration files? These files contain the configuration of eDuke32 and Mapster32." IDNO SkipCfgUn
350
    Delete "$INSTDIR\duke3d.cfg"
335
    Delete "$INSTDIR\duke3d.cfg"
351
  SkipCfgUn:
336
  SkipCfgUn:
352
 
337
 
353
  IfFileExists "$INSTDIR\*.sav" 0 SkipSavUn
338
  IfFileExists "$INSTDIR\*.sav" 0 SkipSavUn
354
  MessageBox MB_YESNO "Do you want to remove your saved games?" IDNO SkipSavUn
339
  MessageBox MB_YESNO "Do you want to remove your saved games?" IDNO SkipSavUn
355
    Delete "$INSTDIR\*.sav"
340
    Delete "$INSTDIR\*.sav"
356
  SkipSavUn:
341
  SkipSavUn:
357
 
342
 
358
  IfFileExists "$INSTDIR\*.dmo" 0 SkipDmoUn
343
  IfFileExists "$INSTDIR\*.dmo" 0 SkipDmoUn
359
  MessageBox MB_YESNO "Do you want to remove your demo recordings?" IDNO SkipDmoUn
344
  MessageBox MB_YESNO "Do you want to remove your demo recordings?" IDNO SkipDmoUn
360
    Delete "$INSTDIR\*.dmo"
345
    Delete "$INSTDIR\*.dmo"
361
  SkipDmoUn:
346
  SkipDmoUn:
362
  
347
  
363
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
348
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
364
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
349
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
365
  SetAutoClose true
350
  SetAutoClose true
366
SectionEnd
351
SectionEnd
367
 
352
 
368

Generated by GNU Enscript 1.6.5.90.
353

Generated by GNU Enscript 1.6.5.90.
369
 
354
 
370
 
355
 
371
 
356