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