##// END OF EJS Templates
wix: add an ssl certificate file to the WiX installers
Steve Borho -
r13216:e5c2338d stable
parent child Browse files
Show More
@@ -1,50 +1,52
1 1 <Include>
2 2 <!-- These are component GUIDs used for Mercurial installers.
3 3 YOU MUST CHANGE ALL GUIDs below when copying this file
4 4 and replace 'Mercurial' in this notice with the name of
5 5 your project. Component GUIDs have global namespace! -->
6 6
7 7 <!-- contrib.wxs -->
8 8 <?define contrib.guid = {F17D27B7-4A6B-4cd2-AE72-FED3CFAA585E} ?>
9 9 <?define contrib.vim.guid = {BB04903A-652D-4C4F-9590-2BD07A2304F2} ?>
10 10
11 11 <!-- dist.wxs -->
12 12 <?define dist.guid = {0F63D160-0740-4BAF-BF25-0C6930310F51} ?>
13 13
14 14 <!-- doc.wxs -->
15 15 <?define doc.hg.1.html.guid = {AAAA3FDA-EDC5-4220-B59D-D342722358A2} ?>
16 16 <?define doc.hgignore.5.html.guid = {AA9118C4-F3A0-4429-A5F4-5A1906B2D67F} ?>
17 17 <?define doc.hgrc.5.html = {E0CEA1EB-FA01-408c-844B-EE5965165BAE} ?>
18 18 <?define doc.style.css = {172F8262-98E0-4711-BD39-4DAE0D77EF05} ?>
19 19
20 20 <!-- help.wxs -->
21 21 <?define helpFolder.guid = {21FE9CF9-933E-4C2E-B2EC-413A569FB996} ?>
22 22
23 23 <!-- i18n.wxs -->
24 24 <?define i18nFolder.guid = {EADFA693-A0B5-4f31-87C9-3997CFAC1B42} ?>
25 25
26 26 <!-- templates.wxs -->
27 27 <?define templates.root.guid = {111509CB-4C96-4035-80BC-F66A99CD5ACB} ?>
28 28 <?define templates.atom.guid = {45FCDF84-DE27-44f4-AF6C-C41F5994AE0D} ?>
29 29 <?define templates.coal.guid = {B63CCAAB-4EAF-43b4-901E-4BD13F5B78FC} ?>
30 30 <?define templates.gitweb.guid = {D8BFE3ED-06DD-4C4D-A00D-6D825955F922} ?>
31 31 <?define templates.monoblue.guid = {A394B4D5-2AF7-4AAC-AEA8-E92176E5501E} ?>
32 32 <?define templates.paper.guid = {7C94B80D-FD0D-44E7-8489-F30A9E20A47F} ?>
33 33 <?define templates.raw.guid = {04DE03A2-FBFD-4c5f-8DEA-5436DDF4689D} ?>
34 34 <?define templates.rss.guid = {A7D608DE-0CF6-44f4-AF1E-EE30CC237FDA} ?>
35 35 <?define templates.spartan.guid = {80222625-FA8F-44b1-86CE-1781EF375D09} ?>
36 36 <?define templates.static.guid = {68C9F843-DE7E-480f-9DA2-D220B19D02C3} ?>
37 37
38 38 <!-- mercurial.wxs -->
39 39 <?define ProductUpgradeCode = {A1CC6134-E945-4399-BE36-EB0017FDF7CF} ?>
40 40
41 41 <?define ComponentMainExecutableGUID = {D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF} ?>
42 42
43 43 <?define ReadMe.guid = {56A8E372-991D-4DCA-B91D-93D775974CF5} ?>
44 44 <?define COPYING.guid = {B7801DBA-1C49-4BF4-91AD-33C65F5C7895} ?>
45 45 <?define mercurial.rc.guid = {1D5FAEEE-7E6E-43B1-9F7F-802714316B15} ?>
46 46 <?define mergetools.rc.guid = {E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD} ?>
47 <?define paths.rc.guid = {F9ADF21D-5F0B-4934-8CD9-14BE63664721} ?>
48 <?define cacert.pem.guid = {EC1B2630-FE21-46E6-915B-A6545AF703D4} ?>
47 49 <?define ProgramMenuDir.guid = {D5A63320-1238-489B-B68B-CF053E9577CA} ?>
48 50 <?define hgcmd.guid = {65CCC756-E72E-4C5F-901E-D575EDC80DB3} ?>
49 51
50 52 </Include>
@@ -1,167 +1,178
1 1 <?xml version='1.0' encoding='windows-1252'?>
2 2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
3 3
4 4 <!-- Copyright 2010 Steve Borho <steve@borho.org>
5 5
6 6 This software may be used and distributed according to the terms of the
7 7 GNU General Public License version 2 or any later version. -->
8 8
9 9 <?include guids.wxi ?>
10 10 <?include defines.wxi ?>
11 11
12 12 <?if $(var.Platform) = "x64" ?>
13 13 <?define PFolder = ProgramFiles64Folder ?>
14 14 <?else?>
15 15 <?define PFolder = ProgramFilesFolder ?>
16 16 <?endif?>
17 17
18 18 <Product Id='*'
19 19 Name='Mercurial $(var.Version) ($(var.Platform))'
20 20 UpgradeCode='$(var.ProductUpgradeCode)'
21 21 Language='1033' Codepage='1252' Version='$(var.Version)'
22 22 Manufacturer='Matt Mackall and others'>
23 23
24 24 <Package Id='*'
25 25 Keywords='Installer'
26 26 Description="Mercurial distributed SCM (version $(var.Version))"
27 27 Comments='$(var.Comments)'
28 28 Platform='$(var.Platform)'
29 29 Manufacturer='Matt Mackall and others'
30 30 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
31 31
32 32 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'
33 33 CompressionLevel='high' />
34 34 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
35 35
36 36 <Condition Message='Mercurial MSI installers require Windows XP or higher'>
37 37 VersionNT >= 501
38 38 </Condition>
39 39
40 40 <Property Id="INSTALLDIR">
41 41 <ComponentSearch Id='SearchForMainExecutableComponent'
42 42 Guid='$(var.ComponentMainExecutableGUID)' />
43 43 </Property>
44 44
45 45 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
46 46 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property>
47 47 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property>
48 48 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property>
49 49 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property>
50 50 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property>
51 51 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
52 52
53 53 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
54 54 <Property Id='REINSTALLMODE'>amus</Property>
55 55
56 56 <!--Auto-accept the license page-->
57 57 <Property Id='LicenseAccepted'>1</Property>
58 58
59 59 <Directory Id='TARGETDIR' Name='SourceDir'>
60 60 <Directory Id='$(var.PFolder)' Name='PFiles'>
61 61 <Directory Id='INSTALLDIR' Name='Mercurial'>
62 62 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'>
63 63 <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' />
64 64 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
65 65 Permanent="no" Value="[INSTALLDIR]bin" Action="set" />
66 66 </Component>
67 67 <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'>
68 68 <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html'
69 69 KeyPath='yes'/>
70 70 </Component>
71 71 <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'>
72 72 <File Id='COPYING' Name='COPYING.rtf' Source='contrib\wix\COPYING.rtf'
73 73 KeyPath='yes'/>
74 74 </Component>
75 75
76 76 <Directory Id='HGRCD' Name='hgrc.d'>
77 77 <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'>
78 78 <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini'
79 79 ReadOnly='yes' KeyPath='yes'/>
80 80 </Component>
81 81 <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'>
82 82 <File Id='mergetools.rc' Name='MergeTools.rc' Source='contrib\mergetools.hgrc'
83 83 ReadOnly='yes' KeyPath='yes'/>
84 84 </Component>
85 <Component Id='paths.rc' Guid='$(var.paths.rc.guid)' Win64='$(var.IsX64)'>
86 <CreateFolder/>
87 <IniFile Id="ini0" Action="createLine" Directory="HGRCD" Name="Paths.rc"
88 Section="web" Key="cacerts" Value="[INSTALLDIR]hgrc.d\cacert.pem" />
89 </Component>
90 <Component Id='cacert.pem' Guid='$(var.cacert.pem.guid)' Win64='$(var.IsX64)'>
91 <File Id='cacert.pem' Name='cacert.pem' Source='..\misc\cacert.pem'
92 ReadOnly='yes' KeyPath='yes'/>
93 </Component>
85 94 </Directory>
86 95
87 96 <Directory Id='binFolder' Name='bin'>
88 97 <Component Id='HgCmd' Guid='$(var.hgcmd.guid)' Win64='$(var.IsX64)'>
89 98 <File Id='Hg.Cmd' Name='hg.cmd' KeyPath='yes' Source='contrib\wix\hg.cmd' />
90 99 </Component>
91 100 </Directory>
92 101 </Directory>
93 102 </Directory>
94 103
95 104 <Directory Id="ProgramMenuFolder" Name="Programs">
96 105 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
97 106 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
98 107 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
99 108 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
100 109 Value='[INSTALLDIR]' KeyPath='yes' />
101 110 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
102 111 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
103 112 </Component>
104 113 </Directory>
105 114 </Directory>
106 115
107 116 <?if $(var.Platform) = "x86" ?>
108 117 <Merge Id='VCRuntime' DiskId='1' Language='1033'
109 118 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
110 119 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
111 120 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
112 121 <?else?>
113 122 <Merge Id='VCRuntime' DiskId='1' Language='1033'
114 123 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
115 124 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
116 125 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
117 126 <?endif?>
118 127 </Directory>
119 128
120 129 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
121 130 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
122 131 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
123 132 Level='1' Absent='disallow' >
124 133 <ComponentRef Id='MainExecutable' />
125 134 <ComponentRef Id='distOutput' />
126 135 <ComponentRef Id='ProgramMenuDir' />
127 136 <ComponentRef Id='ReadMe' />
128 137 <ComponentRef Id='COPYING' />
129 138 <ComponentRef Id='mercurial.rc' />
130 139 <ComponentRef Id='mergetools.rc' />
140 <ComponentRef Id='paths.rc' />
141 <ComponentRef Id='cacert.pem' />
131 142 <ComponentRef Id='helpFolder' />
132 143 <ComponentRef Id='HgCmd' />
133 144 <ComponentGroupRef Id='templatesFolder' />
134 145 <MergeRef Id='VCRuntime' />
135 146 <MergeRef Id='VCRuntimePolicy' />
136 147 </Feature>
137 148 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
138 149 <ComponentGroupRef Id='localeFolder' />
139 150 <ComponentRef Id='i18nFolder' />
140 151 </Feature>
141 152 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
142 153 <ComponentGroupRef Id='docFolder' />
143 154 </Feature>
144 155 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
145 156 <ComponentGroupRef Id='contribFolder' />
146 157 </Feature>
147 158 </Feature>
148 159
149 160 <UIRef Id="WixUI_FeatureTree" />
150 161 <UIRef Id="WixUI_ErrorProgressText" />
151 162
152 163 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
153 164
154 165 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
155 166
156 167 <Upgrade Id='$(var.ProductUpgradeCode)'>
157 168 <UpgradeVersion
158 169 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
159 170 Property='INSTALLEDMERCURIALPRODUCTS' />
160 171 </Upgrade>
161 172
162 173 <InstallExecuteSequence>
163 174 <RemoveExistingProducts After='InstallInitialize'/>
164 175 </InstallExecuteSequence>
165 176
166 177 </Product>
167 178 </Wix>
General Comments 0
You need to be logged in to leave comments. Login now