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