##// END OF EJS Templates
wix: drop bin/ folder from MSI installers (issue 2673)...
Steve Borho -
r13563:39194892 stable
parent child Browse files
Show More
@@ -1,52 +1,51 b''
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 = {C3B634A4-1B05-4A40-94A9-38EE853CF693} ?>
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 47 <?define paths.rc.guid = {F9ADF21D-5F0B-4934-8CD9-14BE63664721} ?>
48 48 <?define cacert.pem.guid = {EC1B2630-FE21-46E6-915B-A6545AF703D4} ?>
49 49 <?define ProgramMenuDir.guid = {D5A63320-1238-489B-B68B-CF053E9577CA} ?>
50 <?define hgcmd.guid = {65CCC756-E72E-4C5F-901E-D575EDC80DB3} ?>
51 50
52 51 </Include>
@@ -1,178 +1,172 b''
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 Permanent="no" Value="[INSTALLDIR]bin" Action="set" />
65 Permanent="no" Value="[INSTALLDIR]" 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 85 <Component Id='paths.rc' Guid='$(var.paths.rc.guid)' Win64='$(var.IsX64)'>
86 86 <CreateFolder/>
87 87 <IniFile Id="ini0" Action="createLine" Directory="HGRCD" Name="Paths.rc"
88 88 Section="web" Key="cacerts" Value="[INSTALLDIR]hgrc.d\cacert.pem" />
89 89 </Component>
90 90 <Component Id='cacert.pem' Guid='$(var.cacert.pem.guid)' Win64='$(var.IsX64)'>
91 91 <File Id='cacert.pem' Name='cacert.pem' Source='..\misc\cacert.pem'
92 92 ReadOnly='yes' KeyPath='yes'/>
93 93 </Component>
94 94 </Directory>
95 95
96 <Directory Id='binFolder' Name='bin'>
97 <Component Id='HgCmd' Guid='$(var.hgcmd.guid)' Win64='$(var.IsX64)'>
98 <File Id='Hg.Cmd' Name='hg.cmd' KeyPath='yes' Source='contrib\wix\hg.cmd' />
99 </Component>
100 </Directory>
101 96 </Directory>
102 97 </Directory>
103 98
104 99 <Directory Id="ProgramMenuFolder" Name="Programs">
105 100 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
106 101 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
107 102 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
108 103 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
109 104 Value='[INSTALLDIR]' KeyPath='yes' />
110 105 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
111 106 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
112 107 </Component>
113 108 </Directory>
114 109 </Directory>
115 110
116 111 <?if $(var.Platform) = "x86" ?>
117 112 <Merge Id='VCRuntime' DiskId='1' Language='1033'
118 113 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
119 114 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
120 115 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
121 116 <?else?>
122 117 <Merge Id='VCRuntime' DiskId='1' Language='1033'
123 118 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
124 119 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
125 120 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
126 121 <?endif?>
127 122 </Directory>
128 123
129 124 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
130 125 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
131 126 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
132 127 Level='1' Absent='disallow' >
133 128 <ComponentRef Id='MainExecutable' />
134 129 <ComponentRef Id='distOutput' />
135 130 <ComponentRef Id='ProgramMenuDir' />
136 131 <ComponentRef Id='ReadMe' />
137 132 <ComponentRef Id='COPYING' />
138 133 <ComponentRef Id='mercurial.rc' />
139 134 <ComponentRef Id='mergetools.rc' />
140 135 <ComponentRef Id='paths.rc' />
141 136 <ComponentRef Id='cacert.pem' />
142 137 <ComponentRef Id='helpFolder' />
143 <ComponentRef Id='HgCmd' />
144 138 <ComponentGroupRef Id='templatesFolder' />
145 139 <MergeRef Id='VCRuntime' />
146 140 <MergeRef Id='VCRuntimePolicy' />
147 141 </Feature>
148 142 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
149 143 <ComponentGroupRef Id='localeFolder' />
150 144 <ComponentRef Id='i18nFolder' />
151 145 </Feature>
152 146 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
153 147 <ComponentGroupRef Id='docFolder' />
154 148 </Feature>
155 149 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
156 150 <ComponentGroupRef Id='contribFolder' />
157 151 </Feature>
158 152 </Feature>
159 153
160 154 <UIRef Id="WixUI_FeatureTree" />
161 155 <UIRef Id="WixUI_ErrorProgressText" />
162 156
163 157 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
164 158
165 159 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
166 160
167 161 <Upgrade Id='$(var.ProductUpgradeCode)'>
168 162 <UpgradeVersion
169 163 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
170 164 Property='INSTALLEDMERCURIALPRODUCTS' />
171 165 </Upgrade>
172 166
173 167 <InstallExecuteSequence>
174 168 <RemoveExistingProducts After='InstallInitialize'/>
175 169 </InstallExecuteSequence>
176 170
177 171 </Product>
178 172 </Wix>
General Comments 0
You need to be logged in to leave comments. Login now