Show More
@@ -1,167 +1,167 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 | </Property> |
|
43 | </Property> | |
44 |
|
44 | |||
45 | <!--Property Id='ARPCOMMENTS'>any comments</Property--> |
|
45 | <!--Property Id='ARPCOMMENTS'>any comments</Property--> | |
46 | <Property Id='ARPCONTACT'>mercurial@mercurial-scm.org</Property> |
|
46 | <Property Id='ARPCONTACT'>mercurial@mercurial-scm.org</Property> | |
47 | <Property Id='ARPHELPLINK'>https://mercurial-scm.org/wiki/</Property> |
|
47 | <Property Id='ARPHELPLINK'>https://mercurial-scm.org/wiki/</Property> | |
48 | <Property Id='ARPURLINFOABOUT'>https://mercurial-scm.org/about/</Property> |
|
48 | <Property Id='ARPURLINFOABOUT'>https://mercurial-scm.org/about/</Property> | |
49 | <Property Id='ARPURLUPDATEINFO'>https://mercurial-scm.org/downloads/</Property> |
|
49 | <Property Id='ARPURLUPDATEINFO'>https://mercurial-scm.org/downloads/</Property> | |
50 | <Property Id='ARPHELPTELEPHONE'>https://mercurial-scm.org/wiki/Support</Property> |
|
50 | <Property Id='ARPHELPTELEPHONE'>https://mercurial-scm.org/wiki/Support</Property> | |
51 | <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property> |
|
51 | <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property> | |
52 |
|
52 | |||
53 | <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property> |
|
53 | <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property> | |
54 | <Property Id='REINSTALLMODE'>amus</Property> |
|
54 | <Property Id='REINSTALLMODE'>amus</Property> | |
55 |
|
55 | |||
56 | <!--Auto-accept the license page--> |
|
56 | <!--Auto-accept the license page--> | |
57 | <Property Id='LicenseAccepted'>1</Property> |
|
57 | <Property Id='LicenseAccepted'>1</Property> | |
58 |
|
58 | |||
59 | <Directory Id='TARGETDIR' Name='SourceDir'> |
|
59 | <Directory Id='TARGETDIR' Name='SourceDir'> | |
60 | <Directory Id='$(var.PFolder)' Name='PFiles'> |
|
60 | <Directory Id='$(var.PFolder)' Name='PFiles'> | |
61 | <Directory Id='INSTALLDIR' Name='Mercurial'> |
|
61 | <Directory Id='INSTALLDIR' Name='Mercurial'> | |
62 | <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'> |
|
62 | <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'> | |
63 | <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' /> |
|
63 | <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' /> | |
64 | <Environment Id="Environment" Name="PATH" Part="last" System="yes" |
|
64 | <Environment Id="Environment" Name="PATH" Part="last" System="yes" | |
65 | Permanent="no" Value="[INSTALLDIR]" Action="set" /> |
|
65 | Permanent="no" Value="[INSTALLDIR]" Action="set" /> | |
66 | </Component> |
|
66 | </Component> | |
67 | <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'> |
|
67 | <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'> | |
68 | <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html' |
|
68 | <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html' | |
69 | KeyPath='yes'/> |
|
69 | KeyPath='yes'/> | |
70 | </Component> |
|
70 | </Component> | |
71 | <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'> |
|
71 | <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'> | |
72 | <File Id='COPYING' Name='COPYING.rtf' Source='contrib\packaging\wix\COPYING.rtf' |
|
72 | <File Id='COPYING' Name='COPYING.rtf' Source='contrib\packaging\wix\COPYING.rtf' | |
73 | KeyPath='yes'/> |
|
73 | KeyPath='yes'/> | |
74 | </Component> |
|
74 | </Component> | |
75 |
|
75 | |||
76 | <Directory Id='HGRCD' Name='hgrc.d'> |
|
76 | <Directory Id='HGRCD' Name='hgrc.d'> | |
77 | <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'> |
|
77 | <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'> | |
78 | <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini' |
|
78 | <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini' | |
79 | ReadOnly='yes' KeyPath='yes'/> |
|
79 | ReadOnly='yes' KeyPath='yes'/> | |
80 | </Component> |
|
80 | </Component> | |
81 | <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'> |
|
81 | <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'> | |
82 | <File Id='mergetools.rc' Name='MergeTools.rc' Source='mercurial\default.d\mergetools.rc' |
|
82 | <File Id='mergetools.rc' Name='MergeTools.rc' Source='mercurial\default.d\mergetools.rc' | |
83 | ReadOnly='yes' KeyPath='yes'/> |
|
83 | ReadOnly='yes' KeyPath='yes'/> | |
84 | </Component> |
|
84 | </Component> | |
85 | </Directory> |
|
85 | </Directory> | |
86 |
|
86 | |||
87 | </Directory> |
|
87 | </Directory> | |
88 | </Directory> |
|
88 | </Directory> | |
89 |
|
89 | |||
90 | <Directory Id="ProgramMenuFolder" Name="Programs"> |
|
90 | <Directory Id="ProgramMenuFolder" Name="Programs"> | |
91 | <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)"> |
|
91 | <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)"> | |
92 | <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'> |
|
92 | <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'> | |
93 | <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> |
|
93 | <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> | |
94 | <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string' |
|
94 | <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string' | |
95 | Value='[INSTALLDIR]' KeyPath='yes' /> |
|
95 | Value='[INSTALLDIR]' KeyPath='yes' /> | |
96 | <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' |
|
96 | <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' | |
97 | Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' /> |
|
97 | Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' /> | |
98 | </Component> |
|
98 | </Component> | |
99 | </Directory> |
|
99 | </Directory> | |
100 | </Directory> |
|
100 | </Directory> | |
101 |
|
101 | |||
102 | <?if $(var.Platform) = "x86" ?> |
|
102 | <?if $(var.Platform) = "x86" ?> | |
103 | <Merge Id='VCRuntime' DiskId='1' Language='1033' |
|
103 | <Merge Id='VCRuntime' DiskId='1' Language='1033' | |
104 | SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' /> |
|
104 | SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' /> | |
105 | <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' |
|
105 | <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' | |
106 | SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' /> |
|
106 | SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' /> | |
107 | <?else?> |
|
107 | <?else?> | |
108 | <Merge Id='VCRuntime' DiskId='1' Language='1033' |
|
108 | <Merge Id='VCRuntime' DiskId='1' Language='1033' | |
109 | SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' /> |
|
109 | SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' /> | |
110 | <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' |
|
110 | <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' | |
111 | SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' /> |
|
111 | SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' /> | |
112 | <?endif?> |
|
112 | <?endif?> | |
113 | </Directory> |
|
113 | </Directory> | |
114 |
|
114 | |||
115 | <Feature Id='Complete' Title='Mercurial' Description='The complete package' |
|
115 | <Feature Id='Complete' Title='Mercurial' Description='The complete package' | |
116 | Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' > |
|
116 | Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' > | |
117 | <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app' |
|
117 | <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app' | |
118 | Level='1' Absent='disallow' > |
|
118 | Level='1' Absent='disallow' > | |
119 | <ComponentRef Id='MainExecutable' /> |
|
119 | <ComponentRef Id='MainExecutable' /> | |
120 | <ComponentRef Id='distOutput' /> |
|
120 | <ComponentRef Id='distOutput' /> | |
121 | <ComponentRef Id='libOutput' /> |
|
121 | <ComponentRef Id='libOutput' /> | |
122 | <ComponentRef Id='ProgramMenuDir' /> |
|
122 | <ComponentRef Id='ProgramMenuDir' /> | |
123 | <ComponentRef Id='ReadMe' /> |
|
123 | <ComponentRef Id='ReadMe' /> | |
124 | <ComponentRef Id='COPYING' /> |
|
124 | <ComponentRef Id='COPYING' /> | |
125 | <ComponentRef Id='mercurial.rc' /> |
|
125 | <ComponentRef Id='mercurial.rc' /> | |
126 | <ComponentRef Id='mergetools.rc' /> |
|
126 | <ComponentRef Id='mergetools.rc' /> | |
127 | <ComponentGroupRef Id='helpFolder' /> |
|
127 | <ComponentGroupRef Id='helpFolder' /> | |
128 | <ComponentGroupRef Id='templatesFolder' /> |
|
128 | <ComponentGroupRef Id='templatesFolder' /> | |
129 | <MergeRef Id='VCRuntime' /> |
|
129 | <MergeRef Id='VCRuntime' /> | |
130 | <MergeRef Id='VCRuntimePolicy' /> |
|
130 | <MergeRef Id='VCRuntimePolicy' /> | |
131 | </Feature> |
|
131 | </Feature> | |
132 |
<?if |
|
132 | <?ifdef MercurialExtraFeatures?> | |
133 | <?foreach EXTRAFEAT in $(var.MercurialExtraFeatures)?> |
|
133 | <?foreach EXTRAFEAT in $(var.MercurialExtraFeatures)?> | |
134 | <FeatureRef Id="$(var.EXTRAFEAT)" /> |
|
134 | <FeatureRef Id="$(var.EXTRAFEAT)" /> | |
135 | <?endforeach?> |
|
135 | <?endforeach?> | |
136 | <?endif?> |
|
136 | <?endif?> | |
137 | <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'> |
|
137 | <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'> | |
138 | <ComponentGroupRef Id='localeFolder' /> |
|
138 | <ComponentGroupRef Id='localeFolder' /> | |
139 | <ComponentRef Id='i18nFolder' /> |
|
139 | <ComponentRef Id='i18nFolder' /> | |
140 | </Feature> |
|
140 | </Feature> | |
141 | <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'> |
|
141 | <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'> | |
142 | <ComponentGroupRef Id='docFolder' /> |
|
142 | <ComponentGroupRef Id='docFolder' /> | |
143 | </Feature> |
|
143 | </Feature> | |
144 | <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'> |
|
144 | <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'> | |
145 | <ComponentGroupRef Id='contribFolder' /> |
|
145 | <ComponentGroupRef Id='contribFolder' /> | |
146 | </Feature> |
|
146 | </Feature> | |
147 | </Feature> |
|
147 | </Feature> | |
148 |
|
148 | |||
149 | <UIRef Id="WixUI_FeatureTree" /> |
|
149 | <UIRef Id="WixUI_FeatureTree" /> | |
150 | <UIRef Id="WixUI_ErrorProgressText" /> |
|
150 | <UIRef Id="WixUI_ErrorProgressText" /> | |
151 |
|
151 | |||
152 | <WixVariable Id="WixUILicenseRtf" Value="contrib\packaging\wix\COPYING.rtf" /> |
|
152 | <WixVariable Id="WixUILicenseRtf" Value="contrib\packaging\wix\COPYING.rtf" /> | |
153 |
|
153 | |||
154 | <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" /> |
|
154 | <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" /> | |
155 |
|
155 | |||
156 | <Upgrade Id='$(var.ProductUpgradeCode)'> |
|
156 | <Upgrade Id='$(var.ProductUpgradeCode)'> | |
157 | <UpgradeVersion |
|
157 | <UpgradeVersion | |
158 | IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no' |
|
158 | IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no' | |
159 | Property='INSTALLEDMERCURIALPRODUCTS' /> |
|
159 | Property='INSTALLEDMERCURIALPRODUCTS' /> | |
160 | </Upgrade> |
|
160 | </Upgrade> | |
161 |
|
161 | |||
162 | <InstallExecuteSequence> |
|
162 | <InstallExecuteSequence> | |
163 | <RemoveExistingProducts After='InstallInitialize'/> |
|
163 | <RemoveExistingProducts After='InstallInitialize'/> | |
164 | </InstallExecuteSequence> |
|
164 | </InstallExecuteSequence> | |
165 |
|
165 | |||
166 | </Product> |
|
166 | </Product> | |
167 | </Wix> |
|
167 | </Wix> |
General Comments 0
You need to be logged in to leave comments.
Login now