forked from NEOatNHNG/cacert-root-cert-installer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CAcert_Root_Certificates.wxs
121 lines (96 loc) · 6.97 KB
/
CAcert_Root_Certificates.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
CAcert Root Certificates Installer
Copyright (C) 2012 CAcert Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension" >
<Product Id="3D42DACC-2DA6-455F-94FC-A15BCEF695E4" Name="!(loc.appName)" Language="!(loc.langid)" Version="1.0.0" Manufacturer="CAcert Inc." UpgradeCode="828E7EE8-B6A3-4930-9BB1-207111F9C84A">
<Package InstallerVersion="200" Compressed="yes" Languages="!(loc.langid)" Description="CAcert Root Certificates" Comments="Install the CAcert root certificates on your system and optionally mark them as trusted in all applications that use the Windows certificate store" Keywords="CAcert, root certificate, certificate store, SSL, X.509" Manufacturer="CAcert Inc." />
<MajorUpgrade DowngradeErrorMessage="!(loc.downgradeErrorMessage)" Schedule="afterInstallExecute" />
<MediaTemplate EmbedCab="yes" />
<Feature Id="CertFilesFeature" Title="!(loc.appName)" Description="!(loc.mainFeatureDescription)" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER" Absent="disallow">
<ComponentRef Id="RootCert" />
<ComponentRef Id="Class3Cert"/>
<ComponentRef Id="GPGKey"/>
<ComponentRef Id="RDL"/>
<Feature Id="TrustCertsFeature" Title="!(loc.trustCertsFeature)" Description="!(loc.trustCertsFeatureDescription)">
<ComponentGroupRef Id="TrustCerts" />
</Feature>
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONFOLDER" Name="CAcert Root Certificates">
<Component Id="RootCert" Guid="6C086431-E9E0-4275-8D0F-29E0633DEF8A">
<File Id="RootCertFile" KeyPath="yes" Name="CAcert_Root.cer" ReadOnly="yes" Source="CAcert_Root.cer" />
</Component>
<Component Id="Class3Cert" Guid="5CD85CD1-14D7-4768-8F35-7908C6331501">
<File Id="Class3CertFile" KeyPath="yes" Name="CAcert_Class3_Subroot.cer" ReadOnly="yes" Source="CAcert_Class3_Subroot.cer" />
</Component>
<Component Id="GPGKey" Guid="3F77083D-AC90-43C3-8FC7-207FFB7B2B0D">
<File Id="GPGKeyFile" KeyPath="yes" Name="CAcert_GPG_Key.asc" ReadOnly="yes" Source="CAcert_GPG_Key.asc" />
</Component>
<Component Id="RDL" Guid="72632002-B7F1-4DD5-AE3F-623C05C0E34F">
<File Id="RDLFile" KeyPath="yes" Name="CAcert_Root_Distribution_License.rtf" ReadOnly="yes" Source="CAcert_Root_Distribution_License.rtf" />
</Component>
</Directory>
</Directory>
</Directory>
<Binary Id="RootCertBin" SourceFile="CAcert_Root.cer" />
<Binary Id="Class3CertBin" SourceFile="CAcert_Class3_Subroot.cer" />
<ComponentGroup Id="TrustCerts" Directory="APPLICATIONFOLDER">
<Component Id="TrustRootCertPerUser" Guid="1F1CF301-55A1-4686-AD68-3659541F5C60">
<iis:Certificate Id="TrustRootCertPerUser_Cert" Request="no" Name="!(loc.rootCertName)" BinaryKey="RootCertBin" StoreLocation="currentUser" StoreName="root" Overwrite="yes" />
<RegistryValue Id="TrustRootCertPerUser_RegVal" Root="HKCU" Key="Software\CAcert\Root Certificates" Name="RootCertImported" Type="string" Value="" KeyPath="yes" />
<Condition>ALLUSERS = ""</Condition>
</Component>
<Component Id="TrustRootCertPerMachine" Guid="52B203D2-9133-48DD-A92C-3D27DBC7509D">
<iis:Certificate Id="TrustRootCertPerMachine_Cert" Request="no" Name="!(loc.rootCertName)" BinaryKey="RootCertBin" StoreLocation="localMachine" StoreName="root" Overwrite="yes" />
<RegistryValue Id="TrustRootCertPerMachine_RegVal" Root="HKLM" Key="Software\CAcert\Root Certificates" Name="RootCertImported" Type="string" Value="" KeyPath="yes" />
<Condition>ALLUSERS = 1</Condition>
</Component>
<Component Id="TrustClass3CertPerUser" Guid="2E69DF7D-2C96-465C-8D05-80E91E0CFF8A">
<iis:Certificate Id="TrustClass3CertPerUser_Cert" Request="no" Name="!(loc.class3CertName)" BinaryKey="Class3CertBin" StoreLocation="currentUser" StoreName="ca" Overwrite="yes" />
<RegistryValue Id="TrustClass3CertPerUser_RegVal" Root="HKCU" Key="Software\CAcert\Root Certificates" Name="Class3CertImported" Type="string" Value="" KeyPath="yes" />
<Condition>ALLUSERS = ""</Condition>
</Component>
<Component Id="TrustClass3CertPerMachine" Guid="BE98B7C7-6E45-4700-B64A-71608DA5A210">
<iis:Certificate Id="TrustClass3CertPerMachine_Cert" Request="no" Name="!(loc.class3CertName)" BinaryKey="Class3CertBin" StoreLocation="localMachine" StoreName="ca" Overwrite="yes" />
<RegistryValue Id="TrustClass3CertPerMachine_RegVal" Root="HKLM" Key="Software\CAcert\Root Certificates" Name="Class3CertImported" Type="string" Value="" KeyPath="yes" />
<Condition>ALLUSERS = 1</Condition>
</Component>
</ComponentGroup>
<!-- Information for "Add/Remove Programs" -->
<Icon Id="icon" SourceFile="CAcert-icon-48.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon" />
<Property Id="ARPCOMMENTS" Value="!(loc.addRemoveProgramsComments)" />
<Property Id="ARPCONTACT" Value="[email protected]" />
<Property Id="ARPHELPLINK" Value="mailto:[email protected]" />
<Property Id="ARPURLINFOABOUT" Value="https://www.cacert.org" />
<WixVariable Id="WixUILicenseRtf" Value="CAcert_Root_Distribution_License.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="CAcert-logo-colour_493x58.bmp"/>
<WixVariable Id="WixUIDialogBmp" Value="CAcert-logo-colour_493x312.bmp" />
<UI Id="WixUI_Advanced_fixed">
<UIRef Id="WixUI_Advanced" />
<Property Id="ALLUSERS" Value="2" />
<Property Id="MSIINSTALLPERUSER" Value="1" />
<Property Id="ApplicationFolderName" Value="CAcert Root Certificates" />
<Property Id="WixAppFolder" Value="WixPerUserFolder" />
<!-- Explicitly trigger setting the default installation path correctly -->
<Publish Dialog="InstallScopeDlg" Control="Next" Event="DoAction" Value="WixSetDefaultPerUserFolder" Order="4">1</Publish>
<Publish Dialog="InstallScopeDlg" Control="Next" Event="DoAction" Value="WixSetDefaultPerMachineFolder" Order="4">1</Publish>
<Publish Dialog="InstallScopeDlg" Control="Next" Event="DoAction" Value="WixSetPerUserFolder" Order="5">WixAppFolder = "WixPerUserFolder"</Publish>
<Publish Dialog="InstallScopeDlg" Control="Next" Event="DoAction" Value="WixSetPerMachineFolder" Order="5">WixAppFolder = "WixPerMachineFolder"</Publish>
<Publish Dialog="InstallScopeDlg" Control="Next" Event="DoAction" Value="FindRelatedProducts" Order="5">1</Publish>
</UI>
</Product>
</Wix>