##// END OF EJS Templates
wix: tell ComponentSearch that it is finding a directory (not a file)...
Kyle Lippincott -
r47159:8deab876 stable
parent child Browse files
Show More
@@ -1,152 +1,153 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 Guid='$(var.ComponentMainExecutableGUID)' />
42 Guid='$(var.ComponentMainExecutableGUID)'
43 Type='directory' />
43 44 </Property>
44 45
45 46 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
46 47 <Property Id='ARPCONTACT'>mercurial@mercurial-scm.org</Property>
47 48 <Property Id='ARPHELPLINK'>https://mercurial-scm.org/wiki/</Property>
48 49 <Property Id='ARPURLINFOABOUT'>https://mercurial-scm.org/about/</Property>
49 50 <Property Id='ARPURLUPDATEINFO'>https://mercurial-scm.org/downloads/</Property>
50 51 <Property Id='ARPHELPTELEPHONE'>https://mercurial-scm.org/wiki/Support</Property>
51 52 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
52 53
53 54 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
54 55 <Property Id='REINSTALLMODE'>amus</Property>
55 56
56 57 <!--Auto-accept the license page-->
57 58 <Property Id='LicenseAccepted'>1</Property>
58 59
59 60 <Directory Id='TARGETDIR' Name='SourceDir'>
60 61 <Directory Id='$(var.PFolder)' Name='PFiles'>
61 62 <Directory Id='INSTALLDIR' Name='Mercurial'>
62 63 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'>
63 64 <CreateFolder />
64 65 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
65 66 Permanent="no" Value="[INSTALLDIR]" Action="set" />
66 67 </Component>
67 68 </Directory>
68 69 </Directory>
69 70
70 71 <Directory Id="ProgramMenuFolder" Name="Programs">
71 72 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
72 73 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
73 74 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
74 75 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
75 76 Value='[INSTALLDIR]' KeyPath='yes' />
76 77 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
77 78 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
78 79 </Component>
79 80 </Directory>
80 81 </Directory>
81 82
82 83 <!-- Install VCRedist merge modules on Python 2. On Python 3,
83 84 vcruntimeXXX.dll is part of the install layout and gets picked up
84 85 as a regular file. -->
85 86 <?if $(var.PythonVersion) = "2" ?>
86 87 <?if $(var.Platform) = "x86" ?>
87 88 <Merge Id='VCRuntime' DiskId='1' Language='1033'
88 89 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
89 90 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
90 91 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
91 92 <?else?>
92 93 <Merge Id='VCRuntime' DiskId='1' Language='1033'
93 94 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
94 95 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
95 96 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
96 97 <?endif?>
97 98 <?endif?>
98 99 </Directory>
99 100
100 101 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
101 102 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
102 103 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
103 104 Level='1' Absent='disallow' >
104 105 <ComponentRef Id='MainExecutable' />
105 106 <ComponentRef Id='ProgramMenuDir' />
106 107 <ComponentGroupRef Id="hg.group.ROOT" />
107 108 <ComponentGroupRef Id="hg.group.defaultrc" />
108 109 <ComponentGroupRef Id="hg.group.helptext" />
109 110 <?ifdef MercurialHasLib?>
110 111 <ComponentGroupRef Id="hg.group.lib" />
111 112 <?endif?>
112 113 <ComponentGroupRef Id="hg.group.templates" />
113 114 <?if $(var.PythonVersion) = "2" ?>
114 115 <MergeRef Id='VCRuntime' />
115 116 <MergeRef Id='VCRuntimePolicy' />
116 117 <?endif?>
117 118 </Feature>
118 119 <?ifdef MercurialExtraFeatures?>
119 120 <?foreach EXTRAFEAT in $(var.MercurialExtraFeatures)?>
120 121 <FeatureRef Id="$(var.EXTRAFEAT)" />
121 122 <?endforeach?>
122 123 <?endif?>
123 124 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
124 125 <ComponentGroupRef Id="hg.group.locale" />
125 126 </Feature>
126 127 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
127 128 <ComponentGroupRef Id="hg.group.doc" />
128 129 </Feature>
129 130 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
130 131 <ComponentGroupRef Id="hg.group.contrib" />
131 132 </Feature>
132 133 </Feature>
133 134
134 135 <UIRef Id="WixUI_FeatureTree" />
135 136 <UIRef Id="WixUI_ErrorProgressText" />
136 137
137 138 <WixVariable Id="WixUILicenseRtf" Value="contrib\packaging\wix\COPYING.rtf" />
138 139
139 140 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
140 141
141 142 <Upgrade Id='$(var.ProductUpgradeCode)'>
142 143 <UpgradeVersion
143 144 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
144 145 Property='INSTALLEDMERCURIALPRODUCTS' />
145 146 </Upgrade>
146 147
147 148 <InstallExecuteSequence>
148 149 <RemoveExistingProducts After='InstallInitialize'/>
149 150 </InstallExecuteSequence>
150 151
151 152 </Product>
152 153 </Wix>
General Comments 0
You need to be logged in to leave comments. Login now