##// 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 <?xml version='1.0' encoding='windows-1252'?>
1 <?xml version='1.0' encoding='windows-1252'?>
2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
3
3
4 <!-- Copyright 2010 Steve Borho <steve@borho.org>
4 <!-- Copyright 2010 Steve Borho <steve@borho.org>
5
5
6 This software may be used and distributed according to the terms of the
6 This software may be used and distributed according to the terms of the
7 GNU General Public License version 2 or any later version. -->
7 GNU General Public License version 2 or any later version. -->
8
8
9 <?include guids.wxi ?>
9 <?include guids.wxi ?>
10 <?include defines.wxi ?>
10 <?include defines.wxi ?>
11
11
12 <?if $(var.Platform) = "x64" ?>
12 <?if $(var.Platform) = "x64" ?>
13 <?define PFolder = ProgramFiles64Folder ?>
13 <?define PFolder = ProgramFiles64Folder ?>
14 <?else?>
14 <?else?>
15 <?define PFolder = ProgramFilesFolder ?>
15 <?define PFolder = ProgramFilesFolder ?>
16 <?endif?>
16 <?endif?>
17
17
18 <Product Id='*'
18 <Product Id='*'
19 Name='Mercurial $(var.Version) ($(var.Platform))'
19 Name='Mercurial $(var.Version) ($(var.Platform))'
20 UpgradeCode='$(var.ProductUpgradeCode)'
20 UpgradeCode='$(var.ProductUpgradeCode)'
21 Language='1033' Codepage='1252' Version='$(var.Version)'
21 Language='1033' Codepage='1252' Version='$(var.Version)'
22 Manufacturer='Matt Mackall and others'>
22 Manufacturer='Matt Mackall and others'>
23
23
24 <Package Id='*'
24 <Package Id='*'
25 Keywords='Installer'
25 Keywords='Installer'
26 Description="Mercurial distributed SCM (version $(var.Version))"
26 Description="Mercurial distributed SCM (version $(var.Version))"
27 Comments='$(var.Comments)'
27 Comments='$(var.Comments)'
28 Platform='$(var.Platform)'
28 Platform='$(var.Platform)'
29 Manufacturer='Matt Mackall and others'
29 Manufacturer='Matt Mackall and others'
30 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
30 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
31
31
32 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'
32 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'
33 CompressionLevel='high' />
33 CompressionLevel='high' />
34 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
34 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
35
35
36 <Condition Message='Mercurial MSI installers require Windows XP or higher'>
36 <Condition Message='Mercurial MSI installers require Windows XP or higher'>
37 VersionNT >= 501
37 VersionNT >= 501
38 </Condition>
38 </Condition>
39
39
40 <Property Id="INSTALLDIR">
40 <Property Id="INSTALLDIR">
41 <ComponentSearch Id='SearchForMainExecutableComponent'
41 <ComponentSearch Id='SearchForMainExecutableComponent'
42 Guid='$(var.ComponentMainExecutableGUID)' />
42 Guid='$(var.ComponentMainExecutableGUID)'
43 Type='directory' />
43 </Property>
44 </Property>
44
45
45 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
46 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
46 <Property Id='ARPCONTACT'>mercurial@mercurial-scm.org</Property>
47 <Property Id='ARPCONTACT'>mercurial@mercurial-scm.org</Property>
47 <Property Id='ARPHELPLINK'>https://mercurial-scm.org/wiki/</Property>
48 <Property Id='ARPHELPLINK'>https://mercurial-scm.org/wiki/</Property>
48 <Property Id='ARPURLINFOABOUT'>https://mercurial-scm.org/about/</Property>
49 <Property Id='ARPURLINFOABOUT'>https://mercurial-scm.org/about/</Property>
49 <Property Id='ARPURLUPDATEINFO'>https://mercurial-scm.org/downloads/</Property>
50 <Property Id='ARPURLUPDATEINFO'>https://mercurial-scm.org/downloads/</Property>
50 <Property Id='ARPHELPTELEPHONE'>https://mercurial-scm.org/wiki/Support</Property>
51 <Property Id='ARPHELPTELEPHONE'>https://mercurial-scm.org/wiki/Support</Property>
51 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
52 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
52
53
53 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
54 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
54 <Property Id='REINSTALLMODE'>amus</Property>
55 <Property Id='REINSTALLMODE'>amus</Property>
55
56
56 <!--Auto-accept the license page-->
57 <!--Auto-accept the license page-->
57 <Property Id='LicenseAccepted'>1</Property>
58 <Property Id='LicenseAccepted'>1</Property>
58
59
59 <Directory Id='TARGETDIR' Name='SourceDir'>
60 <Directory Id='TARGETDIR' Name='SourceDir'>
60 <Directory Id='$(var.PFolder)' Name='PFiles'>
61 <Directory Id='$(var.PFolder)' Name='PFiles'>
61 <Directory Id='INSTALLDIR' Name='Mercurial'>
62 <Directory Id='INSTALLDIR' Name='Mercurial'>
62 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'>
63 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'>
63 <CreateFolder />
64 <CreateFolder />
64 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
65 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
65 Permanent="no" Value="[INSTALLDIR]" Action="set" />
66 Permanent="no" Value="[INSTALLDIR]" Action="set" />
66 </Component>
67 </Component>
67 </Directory>
68 </Directory>
68 </Directory>
69 </Directory>
69
70
70 <Directory Id="ProgramMenuFolder" Name="Programs">
71 <Directory Id="ProgramMenuFolder" Name="Programs">
71 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
72 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
72 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
73 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
73 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
74 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
74 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
75 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
75 Value='[INSTALLDIR]' KeyPath='yes' />
76 Value='[INSTALLDIR]' KeyPath='yes' />
76 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
77 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
77 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
78 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
78 </Component>
79 </Component>
79 </Directory>
80 </Directory>
80 </Directory>
81 </Directory>
81
82
82 <!-- Install VCRedist merge modules on Python 2. On Python 3,
83 <!-- Install VCRedist merge modules on Python 2. On Python 3,
83 vcruntimeXXX.dll is part of the install layout and gets picked up
84 vcruntimeXXX.dll is part of the install layout and gets picked up
84 as a regular file. -->
85 as a regular file. -->
85 <?if $(var.PythonVersion) = "2" ?>
86 <?if $(var.PythonVersion) = "2" ?>
86 <?if $(var.Platform) = "x86" ?>
87 <?if $(var.Platform) = "x86" ?>
87 <Merge Id='VCRuntime' DiskId='1' Language='1033'
88 <Merge Id='VCRuntime' DiskId='1' Language='1033'
88 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
89 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
89 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
90 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
90 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
91 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
91 <?else?>
92 <?else?>
92 <Merge Id='VCRuntime' DiskId='1' Language='1033'
93 <Merge Id='VCRuntime' DiskId='1' Language='1033'
93 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
94 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
94 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
95 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
95 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
96 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
96 <?endif?>
97 <?endif?>
97 <?endif?>
98 <?endif?>
98 </Directory>
99 </Directory>
99
100
100 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
101 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
101 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
102 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
102 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
103 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
103 Level='1' Absent='disallow' >
104 Level='1' Absent='disallow' >
104 <ComponentRef Id='MainExecutable' />
105 <ComponentRef Id='MainExecutable' />
105 <ComponentRef Id='ProgramMenuDir' />
106 <ComponentRef Id='ProgramMenuDir' />
106 <ComponentGroupRef Id="hg.group.ROOT" />
107 <ComponentGroupRef Id="hg.group.ROOT" />
107 <ComponentGroupRef Id="hg.group.defaultrc" />
108 <ComponentGroupRef Id="hg.group.defaultrc" />
108 <ComponentGroupRef Id="hg.group.helptext" />
109 <ComponentGroupRef Id="hg.group.helptext" />
109 <?ifdef MercurialHasLib?>
110 <?ifdef MercurialHasLib?>
110 <ComponentGroupRef Id="hg.group.lib" />
111 <ComponentGroupRef Id="hg.group.lib" />
111 <?endif?>
112 <?endif?>
112 <ComponentGroupRef Id="hg.group.templates" />
113 <ComponentGroupRef Id="hg.group.templates" />
113 <?if $(var.PythonVersion) = "2" ?>
114 <?if $(var.PythonVersion) = "2" ?>
114 <MergeRef Id='VCRuntime' />
115 <MergeRef Id='VCRuntime' />
115 <MergeRef Id='VCRuntimePolicy' />
116 <MergeRef Id='VCRuntimePolicy' />
116 <?endif?>
117 <?endif?>
117 </Feature>
118 </Feature>
118 <?ifdef MercurialExtraFeatures?>
119 <?ifdef MercurialExtraFeatures?>
119 <?foreach EXTRAFEAT in $(var.MercurialExtraFeatures)?>
120 <?foreach EXTRAFEAT in $(var.MercurialExtraFeatures)?>
120 <FeatureRef Id="$(var.EXTRAFEAT)" />
121 <FeatureRef Id="$(var.EXTRAFEAT)" />
121 <?endforeach?>
122 <?endforeach?>
122 <?endif?>
123 <?endif?>
123 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
124 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
124 <ComponentGroupRef Id="hg.group.locale" />
125 <ComponentGroupRef Id="hg.group.locale" />
125 </Feature>
126 </Feature>
126 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
127 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
127 <ComponentGroupRef Id="hg.group.doc" />
128 <ComponentGroupRef Id="hg.group.doc" />
128 </Feature>
129 </Feature>
129 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
130 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
130 <ComponentGroupRef Id="hg.group.contrib" />
131 <ComponentGroupRef Id="hg.group.contrib" />
131 </Feature>
132 </Feature>
132 </Feature>
133 </Feature>
133
134
134 <UIRef Id="WixUI_FeatureTree" />
135 <UIRef Id="WixUI_FeatureTree" />
135 <UIRef Id="WixUI_ErrorProgressText" />
136 <UIRef Id="WixUI_ErrorProgressText" />
136
137
137 <WixVariable Id="WixUILicenseRtf" Value="contrib\packaging\wix\COPYING.rtf" />
138 <WixVariable Id="WixUILicenseRtf" Value="contrib\packaging\wix\COPYING.rtf" />
138
139
139 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
140 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
140
141
141 <Upgrade Id='$(var.ProductUpgradeCode)'>
142 <Upgrade Id='$(var.ProductUpgradeCode)'>
142 <UpgradeVersion
143 <UpgradeVersion
143 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
144 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
144 Property='INSTALLEDMERCURIALPRODUCTS' />
145 Property='INSTALLEDMERCURIALPRODUCTS' />
145 </Upgrade>
146 </Upgrade>
146
147
147 <InstallExecuteSequence>
148 <InstallExecuteSequence>
148 <RemoveExistingProducts After='InstallInitialize'/>
149 <RemoveExistingProducts After='InstallInitialize'/>
149 </InstallExecuteSequence>
150 </InstallExecuteSequence>
150
151
151 </Product>
152 </Product>
152 </Wix>
153 </Wix>
General Comments 0
You need to be logged in to leave comments. Login now