Mercurial > hg
comparison contrib/wix/mercurial.wxs @ 10502:1e022c88a0a5 stable
Add WiX installer scripts to contrib/wix
author | Steve Borho <steve@borho.org> |
---|---|
date | Thu, 18 Feb 2010 13:05:15 -0600 |
parents | |
children | 47838dee7d60 |
comparison
equal
deleted
inserted
replaced
10501:a27af7229850 | 10502:1e022c88a0a5 |
---|---|
1 <?xml version='1.0' encoding='windows-1252'?> | |
2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> | |
3 | |
4 <!-- Copyright 2010 Steve Borho <steve@borho.org> | |
5 | |
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. --> | |
8 | |
9 <?define ComponentMainExecutableGUID = D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF ?> | |
10 <?define ProductUpgradeCode = A1CC6134-E945-4399-BE36-EB0017FDF7CF ?> | |
11 | |
12 <Product Name='Mercurial' Id='*' | |
13 UpgradeCode='$(var.ProductUpgradeCode)' | |
14 Language='1033' Codepage='1252' Version='$(var.Version)' Manufacturer='Matt Mackall and others.'> | |
15 | |
16 <Package Id='*' Keywords='Installer' Description="Mercurial distributed SCM (version $(var.Version))" | |
17 Comments='$(var.Comments)' Manufacturer='Matt Mackall and others.' | |
18 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' /> | |
19 | |
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]" /> | |
22 | |
23 <Condition Message='Mercurial requires Windows XP or higher'>VersionNT >= 501</Condition> | |
24 | |
25 <Property Id="INSTALLDIR"> | |
26 <ComponentSearch Id='SearchForMainExecutableComponent' Guid='$(var.ComponentMainExecutableGUID)' /> | |
27 </Property> | |
28 | |
29 <!--Property Id='ARPCOMMENTS'>any comments</Property--> | |
30 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property> | |
31 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property> | |
32 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property> | |
33 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property> | |
34 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property> | |
35 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property> | |
36 | |
37 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property> | |
38 <Property Id='REINSTALLMODE'>amus</Property> | |
39 | |
40 <Directory Id='TARGETDIR' Name='SourceDir'> | |
41 <Directory Id='ProgramFilesFolder' Name='PFiles'> | |
42 <Directory Id='INSTALLDIR' Name='Mercurial'> | |
43 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)'> | |
44 <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' /> | |
46 <File Id='pythonDLL' Name='python26.dll' DiskId='1' Source='dist\python26.dll' /> | |
47 <Environment Id="Environment" Name="PATH" Part="last" System="yes" | |
48 Permanent="no" Value="[INSTALLDIR]" Action="set" /> | |
49 </Component> | |
50 <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'/> | |
52 </Component> | |
53 <Component Id='COPYING' Guid='B7801DBA-1C49-4BF4-91AD-33C65F5C7895'> | |
54 <File Id='COPYING' Name='COPYING.rtf' DiskId='1' Source='..\misc\COPYING.rtf' /> | |
55 </Component> | |
56 <Directory Id='HGRCD' Name='hgrc.d'> | |
57 <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' | |
59 ReadOnly='yes'/> | |
60 </Component> | |
61 <Component Id='mergetools.rc' Guid='E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD'> | |
62 <File Id='mergetools.rc' Name='MergeTools.rc' DiskId='1' Source='contrib\mergetools.hgrc' | |
63 ReadOnly='yes'/> | |
64 </Component> | |
65 </Directory> | |
66 </Directory> | |
67 </Directory> | |
68 | |
69 <Directory Id="ProgramMenuFolder" Name="Programs"> | |
70 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)"> | |
71 <Component Id="ProgramMenuDir" Guid="D5A63320-1238-489B-B68B-CF053E9577CA"> | |
72 <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> | |
73 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string' | |
74 Value='[INSTALLDIR]' KeyPath='yes' /> | |
75 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' Target='[ARPHELPLINK]' | |
76 Icon="hgIcon.ico" IconIndex='0' /> | |
77 </Component> | |
78 </Directory> | |
79 </Directory> | |
80 | |
81 <Directory Id="DesktopFolder" Name="Desktop" /> | |
82 <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' /> | |
84 <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' /> | |
86 </Directory> | |
87 | |
88 <Feature Id='Complete' Title='Mercurial $(var.Version)' Description='The complete package' | |
89 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' > | |
90 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app' | |
91 Level='1' Absent='disallow' > | |
92 <ComponentRef Id='MainExecutable' /> | |
93 <ComponentRef Id='ProgramMenuDir' /> | |
94 <ComponentRef Id='ReadMe' /> | |
95 <ComponentRef Id='COPYING' /> | |
96 <ComponentRef Id='mercurial.rc' /> | |
97 <ComponentRef Id='mergetools.rc' /> | |
98 <ComponentGroupRef Id='helpFolder' /> | |
99 <ComponentGroupRef Id='templatesFolder' /> | |
100 <MergeRef Id='VCRuntime' /> | |
101 <MergeRef Id='VCRuntimePolicy' /> | |
102 </Feature> | |
103 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'> | |
104 <ComponentGroupRef Id='localeFolder' /> | |
105 <ComponentGroupRef Id='i18nFolder' /> | |
106 </Feature> | |
107 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'> | |
108 <ComponentGroupRef Id='docFolder' /> | |
109 </Feature> | |
110 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'> | |
111 <ComponentGroupRef Id='contribFolder' /> | |
112 </Feature> | |
113 </Feature> | |
114 | |
115 <UIRef Id="WixUI_FeatureTree" /> | |
116 <UIRef Id="WixUI_ErrorProgressText" /> | |
117 | |
118 <WixVariable Id="WixUILicenseRtf" Value="..\misc\COPYING.rtf" /> | |
119 | |
120 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" /> | |
121 | |
122 <Upgrade Id='$(var.ProductUpgradeCode)'> | |
123 <UpgradeVersion | |
124 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no' | |
125 Property='INSTALLEDMERCURIALPRODUCTS' /> | |
126 </Upgrade> | |
127 | |
128 <InstallExecuteSequence> | |
129 <RemoveExistingProducts After='InstallInitialize'/> | |
130 </InstallExecuteSequence> | |
131 | |
132 </Product> | |
133 </Wix> |