-
Notifications
You must be signed in to change notification settings - Fork 63
/
RepeaterExtras.nsi
109 lines (84 loc) · 5.57 KB
/
RepeaterExtras.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
;NSIS Modern User Interface
;Repeater install script
;Written by Jonathan Naylor
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
;--------------------------------
;Configuration
;General
Name "Repeater Extras 20130702"
OutFile "RepeaterExtras-20130702.exe"
;Folder selection page
InstallDir "$PROGRAMFILES\Repeater Extras"
;Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MUI_PAGE_LICENSE "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\COPYING.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Installer Sections
Section "Repeater Extras Program Files" SecProgram
SetOutPath "$INSTDIR"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Release\DCSGateway.exe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Release\DExtraGateway.exe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Release\ParrotController.exe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Release\wxbase28u_vc_custom.dll"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Release\wxmsw28u_adv_vc_custom.dll"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Release\wxmsw28u_core_vc_custom.dll"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\DCS_Hosts.txt"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\DExtra_Hosts.txt"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\de_DE.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\de_DE.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\dk_DK.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\dk_DK.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\en_GB.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\en_GB.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\en_US.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\en_US.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\es_ES.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\es_ES.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\fr_FR.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\fr_FR.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\it_IT.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\it_IT.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\no_NO.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\no_NO.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\pl_PL.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\pl_PL.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\se_SE.ambe"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\Data\se_SE.indx"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\COPYING.txt"
File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\RepeaterExtras\CHANGES.txt"
;Create start menu entry
CreateDirectory "$SMPROGRAMS\Repeater Extras"
CreateShortCut "$SMPROGRAMS\Repeater Extras\DCS Gateway.lnk" "$INSTDIR\DCSGateway.exe"
CreateShortCut "$SMPROGRAMS\Repeater Extras\DExtra Gateway.lnk" "$INSTDIR\DExtraGateway.exe"
CreateShortCut "$SMPROGRAMS\Repeater Extras\Parrot Controller.lnk" "$INSTDIR\ParrotController.exe"
CreateShortCut "$SMPROGRAMS\Repeater Extras\Licence.lnk" "$INSTDIR\COPYING.txt"
CreateShortCut "$SMPROGRAMS\Repeater Extras\Changes.lnk" "$INSTDIR\CHANGES.txt"
CreateShortCut "$SMPROGRAMS\Repeater Extras\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd
;--------------------------------
;Uninstaller Section
Section "Uninstall"
Delete "$INSTDIR\*.*"
RMDir "$INSTDIR"
Delete "$SMPROGRAMS\Repeater Extras\*.*"
RMDir "$SMPROGRAMS\Repeater Extras"
DeleteRegKey /ifempty HKCU "Software\G4KLX\DCS Gateway"
DeleteRegKey /ifempty HKCU "Software\G4KLX\DExtra Gateway"
DeleteRegKey /ifempty HKCU "Software\G4KLX\Parrot Controller"
SectionEnd