forked from medfreeman/RogueSquadron3DInstaller
-
Notifications
You must be signed in to change notification settings - Fork 1
/
RS3DInstaller_nglide_103.nsi
576 lines (484 loc) · 16.8 KB
/
RS3DInstaller_nglide_103.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
;Rogue Squadron 3D Installer
;Written by med_freeman
;Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) license - https://creativecommons.org/licenses/by-nc-nd/3.0/
;2015-02-11 20:46
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
!include "Sections.nsh"
!include "LogicLib.nsh"
;--------------------------------
;General
;The name of the installer
!define APP_NAME "Rogue Squadron 3D"
;The version of nGlide
!define NGLIDE_VERSION "103"
;The version of the installer
!define APP_VERSION "0.97_tmp_nglide_${NGLIDE_VERSION}"
;The name of the publisher
!define APP_PUBLISHER "LucasArts, Factor 5"
;Registry path
!define PARENT_REG_PATH "Software\LucasArts Entertainment Company LLC\Rogue Squadron"
!define REG_PATH "${PARENT_REG_PATH}\v1.0"
;The name of the installer
Name "${APP_NAME}"
;The file to write
OutFile "RS3DInstaller-${APP_VERSION}.exe"
;The icon of the installer exe
Icon ".\assets\gfx\icon\rogue.ico"
;Request application privileges for Windows Vista
RequestExecutionLevel admin
;Show details
ShowInstDetails show
;Default installation folder
InstallDir "$PROGRAMFILES\LucasArts\ROGUE"
;Get installation folder from registry if available
!define INSTDIR_REG_ROOT "HKLM"
!define INSTDIR_REG_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}"
InstallDirRegKey ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "InstallDir"
;Default Start menu folder
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "LucasArts\${APP_NAME}"
;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${INSTDIR_REG_ROOT}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${INSTDIR_REG_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "StartMenu Folder"
;--------------------------------
;Interface Settings
;Abort Warning
!define MUI_ABORTWARNING
;Show all languages, despite user's codepage
!define MUI_LANGDLL_ALLLANGUAGES
;MUI Settings / Icons
!define MUI_ICON ".\assets\gfx\icon\rogue.ico"
!define MUI_UNICON ".\assets\gfx\icon\rogue.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP ".\assets\gfx\header\rogue.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP ".\assets\gfx\welcome\rogue.bmp"
!define MUI_WELCOMEPAGE_TITLE_3LINES
;Finish Page
!define MUI_FINISHPAGE_TEXT $(FINISH_RUN_NGLIDE_LATER)
!define MUI_FINISHPAGE_NOAUTOCLOSE
;Graphics configuration
!define MUI_FINISHPAGE_RUN "$SYSDIR\nglide_config.exe"
!define MUI_FINISHPAGE_RUN_TEXT $(FINISH_RUN_NGLIDE)
;Add desktop shortcut
!define MUI_FINISHPAGE_SHOWREADME ""
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(FINISH_ADD_SHORTCUT)
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION FinishPageShortcut
;Open readme file
!define MUI_FINISHPAGE_LINK $(FINISH_OPEN_README)
!define MUI_FINISHPAGE_LINK_LOCATION "$INSTDIR\README.TXT"
;--------------------------------
;Variables
Var RogueCDPath
Var RogueVersion
Var DirectXSetupError
Var StartMenuFolder
Var RunningOnWine
;--------------------------------
;Pages
;Installer
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE ".\assets\license\LICENSE.TXT"
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_PAGE_CUSTOMFUNCTION_PRE DirectoryPre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW DirectoryPre
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
!define MUI_PAGE_CUSTOMFUNCTION_SHOW FinishPageHidenGlide
!insertmacro MUI_PAGE_FINISH
;Uninstaller
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
;--------------------------------
;Download
!include "nsisdl.nsh"
!define NSISDL_DOWNLOAD `!insertmacro NSISDL_DOWNLOAD`
;--------------------------------
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
;--------------------------------
;Uninstall
;include the Uninstall log header
!include "AdvUninstLog.nsh"
;Uninstall
!insertmacro UNATTENDED_UNINSTALL
;--------------------------------
;Installer Sections
Section $(HEAD_SectionGameInstall) SectionGameInstall
SectionIn RO
AddSize 52806
SetOutPath "$INSTDIR"
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
Call RogueFilesCopy
CreateDirectory "$INSTDIR\PlayerProfiles"
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
AccessControl::GrantOnFile "$INSTDIR\PlayerProfiles" "(BU)" "GenericRead + GenericWrite"
${If} $RunningOnWine = 0
SetOutPath "$INSTDIR\PlayerProfiles"
;!insertmacro UNINSTALL.LOG_OPEN_INSTALL
File "assets\profile\Player_03.sav"
;!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
AccessControl::GrantOnFile "$INSTDIR\PlayerProfiles\Player_03.sav" "(BU)" "GenericRead + GenericWrite"
${EndIf}
Call RogueRegistrySet
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetOutPath "$SMPROGRAMS"
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
;Create shortcuts
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\${APP_NAME}.lnk" "$INSTDIR\ROGUE.EXE"
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\View Rogue Squadron Readme.lnk" "$INSTDIR\README.TXT"
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\Uninstall Rogue Squadron.lnk" "${UNINST_EXE}"
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
!insertmacro MUI_STARTMENU_WRITE_END
Call RogueRegistryUninstallSet
SectionEnd
Section $(HEAD_SectionUpdate) SectionUpdate
SectionIn RO
AddSize 2476
DetailPrint $(UPDATE_INSTALL)
StrCpy $2 "$TEMP\rogueupd12.exe"
File /oname=$2 "assets\update\rogueupd12.exe"
;${NSISDL_DOWNLOAD} "http://media1.gamefront.com/moddb/2009/03/10/rogueupd12.exe" "$2"
;Pop $0 ;Get the return value
;StrCmp $0 "success" +3
; DetailPrint $(DOWNLOAD_ERROR)
; Abort
ClearErrors
ExecWait '"$2"'
IfErrors 0 noError
DetailPrint $(UPDATE_ERROR)
Delete $2
Abort
noError:
Delete $2
SectionEnd
Section $(HEAD_SectionDirectX) SectionDirectX
SetOutPath "$TEMP"
File "assets\directx\dxwebsetup.exe"
DetailPrint $(DIRECTX_SETUP)
ExecWait '"$TEMP\dxwebsetup.exe" /Q' $DirectXSetupError
DetailPrint $(DIRECTX_SETUP_FINISHED)
Delete "$TEMP\dxwebsetup.exe"
SetOutPath "$INSTDIR"
SectionEnd
Section $(HEAD_SectionNGlide) SectionNGlide
AddSize 2562
DetailPrint $(NGLIDE_DOWNLOAD)
StrCpy $2 "$TEMP\nGlide${NGLIDE_VERSION}_setup.exe"
${NSISDL_DOWNLOAD} "http://www.zeus-software.com/files/nglide/nGlide${NGLIDE_VERSION}_setup.exe" "$2"
Pop $0 ;Get the return value
StrCmp $0 "success" +3
DetailPrint $(DOWNLOAD_ERROR)
Abort
ClearErrors
ExecWait '"$2"'
IfErrors 0 noError
DetailPrint $(NGLIDE_ERROR)
Delete $2
Abort
noError:
Delete $2
;Select nGlide default settings
Call SetnGlideDefaults
SectionEnd
Section -$(HEAD_Section3DFXReg) Section3DFXReg
;Select Glide renderer
Call GetnGlideVersion
Pop $R0
${If} $R0 >= ${NGLIDE_VERSION}
WriteRegStr HKLM "${REG_PATH}" "3DSetup" "TRUE"
WriteRegStr HKLM "${REG_PATH}" "VDEVICE" "Voodoo (Glide)"
${EndIf}
SectionEnd
!include "FileFunc.nsh"
Section $(HEAD_SectionMissionCrashFix) SectionMissionCrashFix
SectionIn RO
FileOpen $0 "$INSTDIR\Rogue Squadron.EXE" "a"
FileSeek $0 1554569
nsisFile::FileReadBytes $0 7
Pop $1
DetailPrint $(MCRASH_SEARCH)
${If} $1 == "0FBF050CA57300"
FileSeek $0 1554569
nsisFile::FileWriteBytes $0 "B8000000009090"
DetailPrint $(MCRASH_APPLIED)
${Else}
DetailPrint $(MCRASH_ERROR)
${Endif}
FileClose $0
;Mission crash fix offset reference
;17B889h 15 (0Fh) to 184 (B8h)
;17B88Ah 191 (BFh) to 0 (00h)
;17B88Bh 5 (05h) to 0 (00h)
;17B88Ch 12 (0Ch) to 0 (00h)
;17B88Dh 165 (A5h) to 0 (00h)
;17B88Eh 115 (73h) to 144 (90h)
;17B88Fh 0 (00h) to 144 (90h)
SectionEnd
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;uninstall from path, must be repeated for every install logged path individual
!insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR"
;uninstall from path, must be repeated for every install logged path individual
!insertmacro UNINSTALL.LOG_UNINSTALL "$SMPROGRAMS"
!insertmacro UNINSTALL.LOG_UNINSTALL "$DESKTOP"
;end uninstall, after uninstall from all logged paths has been performed
!insertmacro UNINSTALL.LOG_END_UNINSTALL
!insertmacro UNINSTALL.LOG_END_UNINSTALL
Delete "$DESKTOP\${APP_NAME}.lnk"
DeleteRegKey HKLM "${PARENT_REG_PATH}"
Call un.RogueRegistryUninstallDelete
SectionEnd
;--------------------------------
;Macros
; Macros (UnselectSection GetParams FileCopy TrailingSlashHit)
!include ".\includes\macros.nsi"
;--------------------------------
;Installer Functions
;Resources (Game files and reg keys)
!include ".\resources\resources.nsi"
;Utils (DirectX detection - 64bit registry - Wine detection)
!include ".\includes\utils.nsi"
;Initialization
Function .onInit
Call UninstallIfAlreadyInstalled
Call RogueCDRom
Call RunningOnWine
Pop $RunningOnWine
Call GetDXVersion
Pop $R0
${If} $RunningOnWine = 1
${OrIf} $R0 >= 900
${UnselectSection} ${SectionDirectX}
${EndIf}
Call RogueGetVersion
Pop $R0
${If} $R0 >= 121
${UnselectSection} ${SectionUpdate}
${EndIf}
Call GetnGlideVersion
Pop $R0
${If} $R0 >= ${NGLIDE_VERSION}
${UnselectSection} ${SectionNGlide}
${EndIf}
;Splash
splash::show 2000 "$RogueCDPath\INSTALL\SETUP"
Pop $0
;Language Selection
!insertmacro MUI_LANGDLL_DISPLAY
;prepare log always within .onInit function
!insertmacro UNINSTALL.LOG_PREPARE_INSTALL
FunctionEnd
Function .onInstSuccess
;create/update log always within .onInstSuccess function
!insertmacro UNINSTALL.LOG_UPDATE_INSTALL
FunctionEnd
Function un.onInit
;begin uninstall, could be added on top of uninstall section instead
!insertmacro UNINSTALL.LOG_BEGIN_UNINSTALL
FunctionEnd
;Installation
Function DirectoryPre
${If} $RunningOnWine = 1
FindWindow $R1 "#32770" "" $HWNDPARENT
GetDlgItem $R2 $R1 1019
EnableWindow $R2 0
GetDlgItem $R2 $R1 1001
EnableWindow $R2 0
${EndIf}
FunctionEnd
Function FinishPageHidenGlide
SectionGetFlags ${SectionNGlide} $R0
IntOp $R0 $R0 & ${SF_SELECTED}
${IfNot} $R0 = ${SF_SELECTED}
SendMessage $mui.FinishPage.Text ${WM_SETTEXT} 0 ""
SendMessage $mui.FinishPage.Run ${BM_SETCHECK} ${BST_UNCHECKED} 0
ShowWindow $mui.FinishPage.Run 0
${EndIf}
FunctionEnd
Function FinishPageShortcut
CreateShortcut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\ROGUE.EXE"
FunctionEnd
!insertmacro GetDrives
Function RogueCDRom
${GetParams}
Pop $R5
StrCmp $R5 "/nocdprompt" +2
MessageBox MB_OK $(ROGUECDROM_PLS_INSERT)
${GetDrives} "CDROM" "FindRogueCDRom"
${If} $RogueCDPath == ""
MessageBox MB_OK $(ROGUECDROM_NOT_FOUND_DETAIL)
Quit
${EndIf}
StrCmp $R5 "/nocdprompt" +2
MessageBox MB_OK $(ROGUECDROM_FOUND)
FunctionEnd
Function FindRogueCDRom ;Uses system call, no more cdrom plugin
!define GetVolumeInformation "Kernel32::GetVolumeInformation(t,t,i,*i,*i,*i,t,i) i"
;Get CD-ROM information
System::Call '${GetVolumeInformation}("$9",.r0,${NSIS_MAX_STRLEN},.r1,,,,${NSIS_MAX_STRLEN})'
;And has correct volume name
${If} $0 == "ROGUE_1_000"
${AndIf} ${FileExists} "$9ROGUE\ROGUE SQUADRON.EXE"
${AndIf} ${FileExists} "$9ROGUE\DATA\BUNDLE.000"
${TrailingSlashHit} "$9"
Pop $RogueCDPath
StrCpy $0 StopGetDrives
${EndIf}
;Next Drive
Push $0
FunctionEnd
;Array support
!include "nsArray.nsh"
Function RogueFilesCopy
;Populating FileSourceArray
Call FileListSource
;Populating FileDestArray
Call FileListDest
;Getting Length of FileSourceArray
nsArray::Length FileSourceArray
Pop $R0
;Getting Length of FileDestArray
nsArray::Length FileDestArray
Pop $R1
;Comparing the two, if size mismatch exit
${If} $R0 != $R1
Quit
${EndIf}
;Preparing files iteration
ClearErrors
${Do}
nsArray::Iterate FileSourceArray
Pop $R0
Pop $R1 ;Original file relative path
${IfNot} ${FileExists} "$RogueCDPath\$R1" ;Skip files that don't exist for older cdrom versions
${Continue}
${EndIf}
nsArray::Get FileDestArray $R0
Pop $R2 ;Destination file / relative path / do not rename files
${FileCopy} "$RogueCDPath\$R1" "$INSTDIR\$R2" $RunningOnWine
${If} $RunningOnWine = 1
AccessControl::GrantOnFile "$INSTDIR\$R2" "(BU)" "GenericRead + GenericWrite"
${EndIf}
${LoopUntil} ${Errors} ;Loop until array completely iterated
FunctionEnd
Function RogueRegistrySet
;Populating RegistryKeys
Call RegistryListKeys
;Populating RegistryValues
Call RegistryListValues
;Getting Length of RegistryKeys
nsArray::Length RegistryKeys
Pop $R0
;Getting Length of RegistryValues
nsArray::Length RegistryValues
Pop $R1
;Comparing the two, if size mismatch exit
${If} $R0 != $R1
Quit
${EndIf}
;Preparing files iterations
ClearErrors
${Do}
nsArray::Iterate RegistryKeys
Pop $R0 ;Registry key type + index
StrCpy $R3 "$R0" 1 ;type of key (s=string, d=dword)
Pop $R1 ;Registry key
nsArray::Get RegistryValues $R0
Pop $R2 ;Registry value
${If} $R3 == "s"
WriteRegStr HKLM "${REG_PATH}" "$R1" "$R2"
${ElseIf} $R3 == "d"
WriteRegDWORD HKLM "${REG_PATH}" "$R1" $R2
${EndIf}
${LoopUntil} ${Errors} ;Loop until array completely iterated
;Magic key to recognize versions for game update
${If} $RogueVersion == "1.2"
WriteRegDWORD HKLM "${REG_PATH}" "Magic" 0x000927d8 ;1.2
${ElseIf} $RogueVersion == "1.3"
WriteRegDWORD HKLM "${REG_PATH}" "Magic" 0x0009283c ;1.3
${EndIf}
FunctionEnd
Function RogueRegistryUninstallSet
Call 64bitRegistrySet
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "InstallDir" "$INSTDIR"
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "DisplayName" "${APP_NAME}"
;Same as create shortcut you need to use ${UNINST_EXE} instead of anything else.
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "UninstallString" "${UNINST_EXE}"
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "Publisher" "${APP_PUBLISHER}"
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "DisplayIcon" "$INSTDIR\Uninstall.exe,0"
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "Readme" "$INSTDIR\README.TXT"
;Calculating game folder size
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
IntFmt $0 "0x%08X" $0
WriteRegDWORD ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "EstimatedSize" "$0"
WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "DisplayVersion" "$RogueVersion"
Call 64bitRegistryUnset
FunctionEnd
Function un.RogueRegistryUninstallDelete
Call un.64bitRegistrySet
DeleteRegKey ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}"
Call un.64bitRegistryUnset
FunctionEnd
!include "StrFunc.nsh"
${StrTrimNewLines}
${StrStrAdv}
${StrTok}
Function RogueGetVersion
Push $R0
Push $R1
Push $R2
FileOpen $R0 "$RogueCDPath\INSTALL\Readme.txt" r
FileRead $R0 $R1 ; we read until the end of line (including carriage return and new line) and save it to $R1
FileRead $R0 $R2
FileClose $R0 ; and close the file
${StrTrimNewLines} $R1 "$R1"
StrCpy $R1 "$R1 $R2"
${StrTrimNewLines} $R1 "$R1"
${StrStrAdv} $R1 "$R1" "Version " ">" ">" "0" "0" "0"
${StrTok} $R1 "$R1" " " "0" "1"
StrCpy $RogueVersion $R1
StrCpy $R0 $R1 1 ; get the major version
StrCpy $R2 $R1 1 3 ; get the lower minor version
StrCpy $R1 $R1 1 2 ; get the upper minor version
IntOp $R0 $R0 * 100
IntOp $R1 $R1 * 10
IntOp $R0 $R0 + $R1
IntOp $R0 $R0 + $R2
Pop $R2
Pop $R1
Exch $R0
FunctionEnd
Function UninstallIfAlreadyInstalled
Call 64bitRegistrySet
ClearErrors
ReadRegStr $0 ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "UninstallString"
${IfNot} ${Errors} ;key does exist
${If} ${Cmd} 'MessageBox MB_YESNO $(ALREADY_INSTALLED) IDYES' ;notice the quotes here
ExecWait '"$0" _?=$INSTDIR' $1
${IfNot} $1 = 0
Abort
${EndIf}
${Else}
Abort
${EndIf}
${EndIf}
Call 64bitRegistryUnset
FunctionEnd
;--------------------------------
;Descriptions
;Language strings
!include ".\resources\translations_common.nsi"
!include ".\resources\translations_${NGLIDE_VERSION}.nsi"