forked from Amebis/eduVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LetsConnectTAPWinPre.wxs
95 lines (82 loc) · 3.1 KB
/
LetsConnectTAPWinPre.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
<?xml version="1.0" encoding="utf-8"?>
<!--
Let's Connect! - The open source VPN
Copyright: 2017-2020 The Commons Conservancy eduVPN Programme
SPDX-License-Identifier: GPL-3.0+
-->
<Wix
xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
<Product
Id="$(var.TAPWinPre.ProductGUID)"
UpgradeCode="$(var.TAPWinPre.UpgradeGUID)"
Version="$(var.TAPWinPre.Version)"
Language="!(loc.ProductLanguage)"
Name="!(loc.$(var.ClientTarget).TAPWinPreName) $(var.TAPWinPre.VersionInformational)"
Manufacturer="!(loc.ManufacturerName)">
<Package
InstallScope="perMachine"
InstallerVersion="200"
Compressed="yes"
SummaryCodepage="!(loc.SummaryCodepage)"
ReadOnly="yes"/>
<Media
Id="1"
Cabinet="TAPWinPre.cab"
EmbedCab="yes"/>
<Property Id="ARPURLINFOABOUT" Value="$(var.ClientAboutUrl)"/>
<Binary Id="tap0901.cer" SourceFile="tap0901.cer"/>
<!--
Upgrading functionality
-->
<MajorUpgrade
DowngradeErrorMessage="!(loc.NewerVersionInstalled)"
Schedule="afterInstallExecute"/>
<Property Id="BINDIRPREV">
<ComponentSearch Id="tap0901.cer" Guid="{DA41DE05-8DED-4573-A42B-23E583CCD6E6}"/>
</Property>
<SetProperty
After="AppSearch"
Action="SetBinDirPrev"
Id="BINDIR"
Value="[BINDIRPREV]"
Sequence="first"><![CDATA[BINDIRPREV AND NOT Installed]]></SetProperty>
<SetProperty
After="SetBinDirPrev"
Action="SetBinDirParam"
Id="BINDIR"
Value="[INSTALLDIR]"
Sequence="first"><![CDATA[INSTALLDIR AND NOT Installed]]></SetProperty>
<!--
Folders
-->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.ProgramFilesFolder)">
<Directory Id="PRODUCTDIR" Name="$(var.ClientTitle)">
<Directory Id="BINDIR" Name="TAPWinPre" FileSource="$(var.TargetDir)"/>
</Directory>
</Directory>
</Directory>
<!--
Compontents
-->
<DirectoryRef Id="BINDIR">
<Component Id="tap0901.cer" Guid="{DA41DE05-8DED-4573-A42B-23E583CCD6E6}">
<File Source="tap0901.cer"/>
<iis:Certificate
Id="OpenVPNTechCert"
Name="OpenVPN Technologies, Inc."
StoreLocation="localMachine"
StoreName="trustedPublisher"
BinaryKey="tap0901.cer"
Request="no"/>
</Component>
</DirectoryRef>
<!--
Features
-->
<Feature Id="TAPWinPre" Title="!(loc.$(var.ClientTarget).TAPWinPreName)" Level="1">
<ComponentRef Id="tap0901.cer"/>
</Feature>
</Product>
</Wix>