-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedusetup.wxs
268 lines (228 loc) · 13.8 KB
/
edusetup.wxs
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
<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'
xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'>
<Product Id='E718A250-9E1B-4812-8AB5-0D68E6E427B7' Name='Edusetup' Language='1033'
Version='1.0.0.0' Manufacturer='University of Leicester'
UpgradeCode='9F3F7826-E0F2-48E9-9DBA-1DB4EDE3F03A'>
<Package Description='Eduroam Installer'
Comments='Sets up the eduroam wireless network and installs required certificates'
Manufacturer='University of Leicester' InstallerVersion='200' Compressed='yes' />
<Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
<!--
Check that netsh.exe can be found. This shouldn't really be
necessary...
-->
<Property Id="NETSHFILE">
<DirectorySearch Id="CheckNetshDir" Path="[SystemFolder]" Depth="0">
<FileSearch Id="CheckNETSHFILE" Name="netsh.exe" />
</DirectorySearch>
</Property>
<Condition Message="This installer requires the netsh.exe program, but it cannot be found. As this is a standard component of Windows, your Windows install may be corrupt. Please fix this and then try again.">
<![CDATA[NETSHFILE]]>
</Condition>
<!--
Create the installation directory and put the root certificate
and wireless profile in there. These could go in a temporary
directory, but it can be useful for them to be left on the
machine in case a repair is needed. In any case, they're tiny.
-->
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='EdusetupDir' Name='Edusetup'>
<Component Id='ProfileFiles' Guid='3CD0833F-82F7-4915-B3EB-6A9FE4E9B8EE'>
<File Id='profile' Name='profile.xml' DiskId='1' Source='profile.xml' KeyPath='yes' />
</Component>
<!--
Comment out this Componet section if no certificate should be
installed.
-->
<Component Id="RootCertificate" Guid='C5C258C3-C37D-4521-8AFA-C4B1DB1EF19E'>
<File Id='rootca.der' Name='Root Certificate.der' DiskId='1' Source='rootca.der' />
<iis:Certificate Id="rootca"
Name="rootca.der"
Request="no"
BinaryKey="Certificate.RootCa.Binary"
StoreLocation="localMachine"
StoreName="root" />
</Component>
</Directory>
</Directory>
</Directory>
<!--
Pull the certificate into the installer. Comment out if
certificate should not be installed.
-->
<Binary Id="Certificate.RootCa.Binary" SourceFile="rootca.der" />
<!--
By default we remove any existing profile named 'eduroam' so
that it does not clash with the new profile we are about to
install.
-->
<Property Id="EduroamProfileRemove" Value='"netsh.exe" wlan delete profile name="eduroam"' />
<CustomAction Id="EduroamProfileRemove" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="deferred" Impersonate="no" Return="ignore" />
<!--
If there is an extra wireless profile, such as an old local
wireless network, that should be removed, uncomment the following
block. You will need to edit the name of the profile to remove.
Also uncomment the Custom Action in the InstallExecuteSequence
block below.
-->
<!--
<Property Id="ExtraProfileRemove" Value='"netsh.exe" wlan delete profile name="uol"' />
<CustomAction Id="ExtraProfileRemove" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="deferred" Impersonate="no" Return="ignore" />
-->
<CustomAction Id="EduroamProfileInstall_Cmd"
Property='EduroamProfileInstall'
Value='"[SystemFolder]netsh.exe" wlan add profile filename="[EdusetupDir]profile.xml"'
Execute="immediate" />
<CustomAction Id="EduroamProfileInstall" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="deferred" Impersonate="no" Return="check" />
<Property Id="EduroamProfileConnect" Value='"netsh.exe" wlan connect eduroam' />
<CustomAction Id="EduroamProfileConnect" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="deferred" Impersonate="no" Return="ignore" />
<InstallExecuteSequence>
<Custom Action="EduroamProfileRemove" Before="InstallFinalize" />
<!--
Uncomment the following line to remove the extra wireless
profile, if required.
-->
<!--
<Custom Action="ExtraProfileRemove" After="EduroamProfileRemove"><![CDATA[NOT REMOVE]]></Custom>
-->
<Custom Action="EduroamProfileInstall_Cmd" After="EduroamProfileRemove"><![CDATA[NOT REMOVE]]></Custom>
<Custom Action="EduroamProfileInstall" After="EduroamProfileInstall_Cmd"><![CDATA[NOT REMOVE]]></Custom>
<Custom Action="EduroamProfileConnect" After="EduroamProfileInstall"><![CDATA[NOT REMOVE]]></Custom>
</InstallExecuteSequence>
<!--
Just one feature, which is the complete install. It puts the
files in Program Files, and installs the certificate.
-->
<Feature Id='Complete'
Title='Setup Eduroam'
Level='1'
Description='Install certificate and configure eduroam profile.'
Display='expand'
ConfigurableDirectory='TARGETDIR'>
<ComponentRef Id='ProfileFiles' />
<!--
Comment out the next line if no certificate should be
installed.
-->
<ComponentRef Id='RootCertificate' />
</Feature>
<!--
User interface. You will want to edit some of the text in the
dialogue boxes defined below.
-->
<UI Id="User_Interface">
<Property Id="DefaultUIFont">DlgFont8</Property>
<TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" />
<TextStyle Id="DlgTitleFont" FaceName="Tahoma" Size="10" Bold="yes" />
<Dialog Id="WelcomeD" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
<Control Id="Install" Type="PushButton" X="236" Y="243" Width="56" Height="17" Hidden="yes" Default="yes" Text="Install" >
<Condition Action="show">NOT Installed</Condition>
<Publish Event="EndDialog" Value="Return">NOT Installed</Publish>
</Control>
<Control Id="Repair" Type="PushButton" X="236" Y="243" Width="56" Height="17" Hidden="yes" Default="yes" Text="Repair" >
<Condition Action="show">Installed</Condition>
<Publish Event="EndDialog" Value="Return">Installed</Publish>
</Control>
<Control Id="Exit" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Exit">
<Publish Event="EndDialog" Value="Exit">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="BackgroundBitmap" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="Back" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="DescriptionI" Type="Text" X="135" Y="50" Width="220" Height="100" Hidden="yes" Transparent="yes" NoPrefix="yes">
<Text>This installer will configure the eduroam wireless network on your computer.
To use eduroam you must comply with the university and JANET acceptable use regulations. If you visit other sites where you connect to eduroam, you must comply with their acceptable use regulations, too.
Click the Install button below to setup eduroam on your computer.
</Text>
<Condition Action="show">NOT Installed</Condition>
</Control>
<Control Id="DescriptionR" Type="Text" X="135" Y="50" Width="220" Height="100" Hidden="yes" Transparent="yes" NoPrefix="yes">
<Text>Eduroam has already been set up on your computer.
If it is not working correctly, you can attempt to re-install the wireless settings by clicking on 'Repair' below.
To remove the eduroam settings, please use "Programs and Features" in Control Panel to remove the Edusetup package.
</Text>
<Condition Action="show">Installed</Condition>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>{\DlgTitleFont}Welcome to eduroam setup</Text>
</Control>
</Dialog>
<Dialog Id="ProgressD" Width="370" Height="270" Title="[ProductName] Setup" Modeless="yes">
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Default="yes" Cancel="yes" Text="Cancel" />
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="BannerBitmap" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="Back" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Disabled="yes" Text="Next" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Text" Type="Text" X="20" Y="65" Width="330" Height="35" NoPrefix="yes">
<Text>Please wait while eduroam is configured on your computer.</Text>
</Control>
<Control Id="Title" Type="Text" X="20" Y="15" Width="330" Height="15" Transparent="yes" NoPrefix="yes">
<Text>{\DlgTitleFont}Setting up eduroam</Text>
</Control>
<Control Id="ActionText" Type="Text" X="70" Y="100" Width="285" Height="10">
<Subscribe Event="ActionText" Attribute="Text" />
</Control>
<Control Id="ProgressBar" Type="ProgressBar" X="20" Y="115" Width="330" Height="10" ProgressBlocks="yes" Text="Progress...">
<Subscribe Event="SetProgress" Attribute="Progress" />
</Control>
<Control Id="StatusLabel" Type="Text" X="20" Y="100" Width="50" Height="10" Text="!(loc.ProgressDlgStatusLabel)" />
</Dialog>
<Dialog Id="ExitD" Width="370" Height="270" Title="[ProductName] Setup">
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="Finish">
<Publish Event="EndDialog" Value="Return" />
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="Cancel" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="BackgroundBitmap" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="Back" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="50" Width="220" Height="100" Transparent="yes" NoPrefix="yes">
<Text>When logging in, you must remember to add your realm after your username. For example, user@example.ac.uk. Use your normal university password.
If you are having problems connecting to eduroam, please contact the IT help desk for assistance. Note that help for personally owned devices is limited to a best efforts basis only.
</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>{\DlgTitleFont}Eduroam setup complete!</Text>
</Control>
<!--
<Control Id="OptionalCheckBox" Type="CheckBox" X="135" Y="190" Width="220" Height="40" Hidden="yes" Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" CheckBoxValue="1" Text="[WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT]">
<Condition Action="show">WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT AND NOT Installed</Condition>
</Control>
-->
</Dialog>
<Dialog Id="ErrorD" Width="370" Height="270" Title="Installation Error">
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="Finish">
<Publish Event="EndDialog" Value="Exit">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="Cancel" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="BackgroundBitmap" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="Back" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="50" Width="220" Height="100" Transparent="yes" NoPrefix="yes">
<Text>!(loc.FatalErrorDescription1) !(loc.FatalErrorDescription2)
Please reboot and try again. If you continue to have problems, please contact IT Services for assistance.
</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>{\DlgTitleFont}Sorry, something has gone wrong!</Text>
</Control>
</Dialog>
<Binary Id="BackgroundBitmap" SourceFile="background.bmp" />
<Binary Id="BannerBitmap" SourceFile="banner.bmp" />
<InstallUISequence>
<Show Dialog="WelcomeD" After="CostFinalize" />
<Show Dialog="ProgressD" Before="ExecuteAction" />
<Show Dialog="ExitD" OnExit="success" />
<Show Dialog="ErrorD" OnExit="error" />
</InstallUISequence>
</UI>
<UIRef Id="User_Interface" />
</Product>
</Wix>