-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrivendell-producer.nsi.in
159 lines (143 loc) · 3.86 KB
/
rivendell-producer.nsi.in
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
# rivendell-producer.nsi
#
# Make a Windows Installer using NSIS
#
# (C) Copyright 2017 Fred Gleason <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
# Manifest Data
#
Name "Rivendell-Producer"
OutFile "rivendell-producer-@[email protected]"
BrandingText " "
InstallDir "$PROGRAMFILES\Radio Free Asia\Rivendell-Producer"
LicenseData "COPYING.rtf"
LicenseText "GNU General Public License v2.0"
LicenseForceSelection radiobuttons
ManifestSupportedOS all
RequestExecutionLevel "user"
#
# Pages
#
Page license
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
Section
#
# Are we an Administrator?
#
# UserInfo::getAccountType
# Pop $0
# StrCmp $0 "Admin" +3
# MessageBox MB_OK "You must have Administrator privileges to install this package."
# Return
#
# Install Files
#
SetOutPath $INSTDIR
File "AUTHORS"
File "ChangeLog"
File "COPYING"
File "NEWS"
File "README"
File "QtCore4.dll"
File "QtGui4.dll"
File "QtNetwork4.dll"
File "iconv.dll"
File "libcurl-4.dll"
File "libcrypto-10.dll"
File "libexpat-1.dll"
File "libgcc_s_sjlj-1.dll"
File "libidn-11.dll"
File "libpng16-16.dll"
File "libsamplerate-0.dll"
File "libssh2-1.dll"
File "libssl-10.dll"
File "libstdc++-6.dll"
File "libwinpthread-1.dll"
File "zlib1.dll"
File "rdadminb.exe"
File "rdlogeditb.exe"
File "version.txt"
#
# Create Shortcuts
#
SetShellVarContext all
createShortCut "$SMPROGRAMS\RDAdmin Remote.lnk" "$INSTDIR\rdadminb.exe"
SetShellVarContext all
# createShortCut "$SMPROGRAMS\RDLogEdit Remote.lnk" "$INSTDIR\rdlogeditb.exe"
# createShortcut "$desktop\RDLogEdit Remote.lnk" "$instdir\rdlogeditb.exe"
WriteUninstaller $INSTDIR\uninstaller.exe
SectionEnd
Section "RDLibrary Remote"
SetOutPath $INSTDIR
File "rdlibraryb.exe"
SetShellVarContext all
createShortCut "$SMPROGRAMS\RDLibrary Remote.lnk" "$INSTDIR\rdlibraryb.exe"
createShortcut "$desktop\RDLibrary Remote.lnk" "$instdir\rdlibraryb.exe"
SectionEnd
Section "RDLogEdit Remote"
SetOutPath $INSTDIR
File "rdlogeditb.exe"
SetShellVarContext all
createShortCut "$SMPROGRAMS\RDLogEdit Remote.lnk" "$INSTDIR\rdlogeditb.exe"
createShortcut "$desktop\RDLogEdit Remote.lnk" "$instdir\rdlogeditb.exe"
SectionEnd
Section "Uninstall"
#
# Names and Paths
#
StrCpy $1 "\Radio Free Asia\rivendell-producer"
StrCpy $INSTDIR $PROGRAMFILES$1
#
# Remove Files
#
Delete "Uninstall"
Delete $INSTDIR\AUTHORS
Delete $INSTDIR\ChangeLog
Delete $INSTDIR\COPYING
Delete $INSTDIR\NEWS
Delete $INSTDIR\README
Delete $INSTDIR\QtCore4.dll
Delete $INSTDIR\QtGui4.dll
Delete $INSTDIR\QtNetwork4.dll
Delete $INSTDIR\iconv.dll
Delete $INSTDIR\libcurl-4.dll
Delete $INSTDIR\libcrypto-10.dll
Delete $INSTDIR\libexpat-1.dll
Delete $INSTDIR\libgcc_s_sjlj-1.dll
Delete $INSTDIR\libidn-11.dll
Delete $INSTDIR\libpng16-16.dll
Delete $INSTDIR\libssh2-1.dll
Delete $INSTDIR\libssl-10.dll
Delete $INSTDIR\libstdc++-6.dll
Delete $INSTDIR\libwinpthread-1.dll
Delete $INSTDIR\zlib1.dll
Delete $INSTDIR\rdadminb.exe
Delete $INSTDIR\rdlibraryb.exe
Delete $INSTDIR\rdlogeditb.exe
Delete $INSTDIR\version.txt
#
# Remove Shortcuts
#
SetShellVarContext all
delete "$SMPROGRAMS\RDAdmin Remote.lnk"
delete "$SMPROGRAMS\RDLibrary Remote.lnk"
delete "$SMPROGRAMS\RDLogEdit Remote.lnk"
SectionEnd