##// END OF EJS Templates
wix: pre-check the 'I approve this license' checkbox...
Steve Borho -
r10610:eea2db5f default
parent child Browse files
Show More
@@ -1,133 +1,136 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 <?define ComponentMainExecutableGUID = D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF ?>
9 <?define ComponentMainExecutableGUID = D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF ?>
10 <?define ProductUpgradeCode = A1CC6134-E945-4399-BE36-EB0017FDF7CF ?>
10 <?define ProductUpgradeCode = A1CC6134-E945-4399-BE36-EB0017FDF7CF ?>
11
11
12 <Product Name='Mercurial' Id='*'
12 <Product Name='Mercurial' Id='*'
13 UpgradeCode='$(var.ProductUpgradeCode)'
13 UpgradeCode='$(var.ProductUpgradeCode)'
14 Language='1033' Codepage='1252' Version='$(var.Version)' Manufacturer='Matt Mackall and others.'>
14 Language='1033' Codepage='1252' Version='$(var.Version)' Manufacturer='Matt Mackall and others.'>
15
15
16 <Package Id='*' Keywords='Installer' Description="Mercurial distributed SCM (version $(var.Version))"
16 <Package Id='*' Keywords='Installer' Description="Mercurial distributed SCM (version $(var.Version))"
17 Comments='$(var.Comments)' Manufacturer='Matt Mackall and others.'
17 Comments='$(var.Comments)' Manufacturer='Matt Mackall and others.'
18 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
18 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
19
19
20 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' CompressionLevel='high' />
20 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' CompressionLevel='high' />
21 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
21 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
22
22
23 <Condition Message='Mercurial requires Windows XP or higher'>VersionNT >= 501</Condition>
23 <Condition Message='Mercurial requires Windows XP or higher'>VersionNT >= 501</Condition>
24
24
25 <Property Id="INSTALLDIR">
25 <Property Id="INSTALLDIR">
26 <ComponentSearch Id='SearchForMainExecutableComponent' Guid='$(var.ComponentMainExecutableGUID)' />
26 <ComponentSearch Id='SearchForMainExecutableComponent' Guid='$(var.ComponentMainExecutableGUID)' />
27 </Property>
27 </Property>
28
28
29 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
29 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
30 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property>
30 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property>
31 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property>
31 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property>
32 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property>
32 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property>
33 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property>
33 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property>
34 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property>
34 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property>
35 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
35 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
36
36
37 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
37 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
38 <Property Id='REINSTALLMODE'>amus</Property>
38 <Property Id='REINSTALLMODE'>amus</Property>
39
39
40 <!--Auto-accept the license page-->
41 <Property Id='LicenseAccepted'>1</Property>
42
40 <Directory Id='TARGETDIR' Name='SourceDir'>
43 <Directory Id='TARGETDIR' Name='SourceDir'>
41 <Directory Id='ProgramFilesFolder' Name='PFiles'>
44 <Directory Id='ProgramFilesFolder' Name='PFiles'>
42 <Directory Id='INSTALLDIR' Name='Mercurial'>
45 <Directory Id='INSTALLDIR' Name='Mercurial'>
43 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)'>
46 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)'>
44 <File Id='hgEXE' Name='hg.exe' DiskId='1' Source='dist\hg.exe' KeyPath='yes' />
47 <File Id='hgEXE' Name='hg.exe' DiskId='1' Source='dist\hg.exe' KeyPath='yes' />
45 <File Id='libraryZIP' Name='library.zip' DiskId='1' Source='dist\library.zip' />
48 <File Id='libraryZIP' Name='library.zip' DiskId='1' Source='dist\library.zip' />
46 <File Id='pythonDLL' Name='python26.dll' DiskId='1' Source='dist\python26.dll' />
49 <File Id='pythonDLL' Name='python26.dll' DiskId='1' Source='dist\python26.dll' />
47 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
50 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
48 Permanent="no" Value="[INSTALLDIR]" Action="set" />
51 Permanent="no" Value="[INSTALLDIR]" Action="set" />
49 </Component>
52 </Component>
50 <Component Id='ReadMe' Guid='56A8E372-991D-4DCA-B91D-93D775974CF5'>
53 <Component Id='ReadMe' Guid='56A8E372-991D-4DCA-B91D-93D775974CF5'>
51 <File Id='ReadMe' Name='ReadMe.html' DiskId='1' Source='contrib\win32\ReadMe.html' KeyPath='yes'/>
54 <File Id='ReadMe' Name='ReadMe.html' DiskId='1' Source='contrib\win32\ReadMe.html' KeyPath='yes'/>
52 </Component>
55 </Component>
53 <Component Id='COPYING' Guid='B7801DBA-1C49-4BF4-91AD-33C65F5C7895'>
56 <Component Id='COPYING' Guid='B7801DBA-1C49-4BF4-91AD-33C65F5C7895'>
54 <File Id='COPYING' Name='COPYING.rtf' DiskId='1' Source='contrib\wix\COPYING.rtf' />
57 <File Id='COPYING' Name='COPYING.rtf' DiskId='1' Source='contrib\wix\COPYING.rtf' />
55 </Component>
58 </Component>
56 <Directory Id='HGRCD' Name='hgrc.d'>
59 <Directory Id='HGRCD' Name='hgrc.d'>
57 <Component Id='mercurial.rc' Guid='1D5FAEEE-7E6E-43B1-9F7F-802714316B15'>
60 <Component Id='mercurial.rc' Guid='1D5FAEEE-7E6E-43B1-9F7F-802714316B15'>
58 <File Id='mercurial.rc' Name='Mercurial.rc' DiskId='1' Source='contrib\win32\mercurial.ini'
61 <File Id='mercurial.rc' Name='Mercurial.rc' DiskId='1' Source='contrib\win32\mercurial.ini'
59 ReadOnly='yes'/>
62 ReadOnly='yes'/>
60 </Component>
63 </Component>
61 <Component Id='mergetools.rc' Guid='E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD'>
64 <Component Id='mergetools.rc' Guid='E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD'>
62 <File Id='mergetools.rc' Name='MergeTools.rc' DiskId='1' Source='contrib\mergetools.hgrc'
65 <File Id='mergetools.rc' Name='MergeTools.rc' DiskId='1' Source='contrib\mergetools.hgrc'
63 ReadOnly='yes'/>
66 ReadOnly='yes'/>
64 </Component>
67 </Component>
65 </Directory>
68 </Directory>
66 </Directory>
69 </Directory>
67 </Directory>
70 </Directory>
68
71
69 <Directory Id="ProgramMenuFolder" Name="Programs">
72 <Directory Id="ProgramMenuFolder" Name="Programs">
70 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
73 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
71 <Component Id="ProgramMenuDir" Guid="D5A63320-1238-489B-B68B-CF053E9577CA">
74 <Component Id="ProgramMenuDir" Guid="D5A63320-1238-489B-B68B-CF053E9577CA">
72 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
75 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
73 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
76 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
74 Value='[INSTALLDIR]' KeyPath='yes' />
77 Value='[INSTALLDIR]' KeyPath='yes' />
75 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' Target='[ARPHELPLINK]'
78 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' Target='[ARPHELPLINK]'
76 Icon="hgIcon.ico" IconIndex='0' />
79 Icon="hgIcon.ico" IconIndex='0' />
77 </Component>
80 </Component>
78 </Directory>
81 </Directory>
79 </Directory>
82 </Directory>
80
83
81 <Directory Id="DesktopFolder" Name="Desktop" />
84 <Directory Id="DesktopFolder" Name="Desktop" />
82 <Merge Id='VCRuntime' DiskId='1' Language='1033'
85 <Merge Id='VCRuntime' DiskId='1' Language='1033'
83 SourceFile='C:\Program Files\Microsoft SDKs\Windows\v7.0\Redist\VC\microsoft.vcxx.crt.x86_msm.msm' />
86 SourceFile='C:\Program Files\Microsoft SDKs\Windows\v7.0\Redist\VC\microsoft.vcxx.crt.x86_msm.msm' />
84 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
87 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
85 SourceFile='C:\Program Files\Microsoft SDKs\Windows\v7.0\Redist\VC\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
88 SourceFile='C:\Program Files\Microsoft SDKs\Windows\v7.0\Redist\VC\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
86 </Directory>
89 </Directory>
87
90
88 <Feature Id='Complete' Title='Mercurial $(var.Version)' Description='The complete package'
91 <Feature Id='Complete' Title='Mercurial $(var.Version)' Description='The complete package'
89 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
92 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
90 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
93 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
91 Level='1' Absent='disallow' >
94 Level='1' Absent='disallow' >
92 <ComponentRef Id='MainExecutable' />
95 <ComponentRef Id='MainExecutable' />
93 <ComponentRef Id='ProgramMenuDir' />
96 <ComponentRef Id='ProgramMenuDir' />
94 <ComponentRef Id='ReadMe' />
97 <ComponentRef Id='ReadMe' />
95 <ComponentRef Id='COPYING' />
98 <ComponentRef Id='COPYING' />
96 <ComponentRef Id='mercurial.rc' />
99 <ComponentRef Id='mercurial.rc' />
97 <ComponentRef Id='mergetools.rc' />
100 <ComponentRef Id='mergetools.rc' />
98 <ComponentGroupRef Id='helpFolder' />
101 <ComponentGroupRef Id='helpFolder' />
99 <ComponentGroupRef Id='templatesFolder' />
102 <ComponentGroupRef Id='templatesFolder' />
100 <MergeRef Id='VCRuntime' />
103 <MergeRef Id='VCRuntime' />
101 <MergeRef Id='VCRuntimePolicy' />
104 <MergeRef Id='VCRuntimePolicy' />
102 </Feature>
105 </Feature>
103 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
106 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
104 <ComponentGroupRef Id='localeFolder' />
107 <ComponentGroupRef Id='localeFolder' />
105 <ComponentGroupRef Id='i18nFolder' />
108 <ComponentGroupRef Id='i18nFolder' />
106 </Feature>
109 </Feature>
107 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
110 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
108 <ComponentGroupRef Id='docFolder' />
111 <ComponentGroupRef Id='docFolder' />
109 </Feature>
112 </Feature>
110 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
113 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
111 <ComponentGroupRef Id='contribFolder' />
114 <ComponentGroupRef Id='contribFolder' />
112 </Feature>
115 </Feature>
113 </Feature>
116 </Feature>
114
117
115 <UIRef Id="WixUI_FeatureTree" />
118 <UIRef Id="WixUI_FeatureTree" />
116 <UIRef Id="WixUI_ErrorProgressText" />
119 <UIRef Id="WixUI_ErrorProgressText" />
117
120
118 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
121 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
119
122
120 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
123 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
121
124
122 <Upgrade Id='$(var.ProductUpgradeCode)'>
125 <Upgrade Id='$(var.ProductUpgradeCode)'>
123 <UpgradeVersion
126 <UpgradeVersion
124 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
127 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
125 Property='INSTALLEDMERCURIALPRODUCTS' />
128 Property='INSTALLEDMERCURIALPRODUCTS' />
126 </Upgrade>
129 </Upgrade>
127
130
128 <InstallExecuteSequence>
131 <InstallExecuteSequence>
129 <RemoveExistingProducts After='InstallInitialize'/>
132 <RemoveExistingProducts After='InstallInitialize'/>
130 </InstallExecuteSequence>
133 </InstallExecuteSequence>
131
134
132 </Product>
135 </Product>
133 </Wix>
136 </Wix>
General Comments 0
You need to be logged in to leave comments. Login now