mercurial.wxs
172 lines
| 7.6 KiB
| text/plain
|
TextLexer
|
r10513 | <?xml version='1.0' encoding='windows-1252'?> | ||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> | ||||
<!-- Copyright 2010 Steve Borho <steve@borho.org> | ||||
This software may be used and distributed according to the terms of the | ||||
GNU General Public License version 2 or any later version. --> | ||||
|
r10930 | <?include guids.wxi ?> | ||
|
r13042 | <?include defines.wxi ?> | ||
|
r10513 | |||
|
r13041 | <?if $(var.Platform) = "x64" ?> | ||
|
r13042 | <?define PFolder = ProgramFiles64Folder ?> | ||
|
r13041 | <?else?> | ||
|
r13042 | <?define PFolder = ProgramFilesFolder ?> | ||
|
r13041 | <?endif?> | ||
|
r10930 | <Product Id='*' | ||
|
r19023 | Name='Mercurial $(var.Version) ($(var.Platform))' | ||
|
r10513 | UpgradeCode='$(var.ProductUpgradeCode)' | ||
|
r10930 | Language='1033' Codepage='1252' Version='$(var.Version)' | ||
Manufacturer='Matt Mackall and others'> | ||||
|
r10513 | |||
|
r10930 | <Package Id='*' | ||
Keywords='Installer' | ||||
Description="Mercurial distributed SCM (version $(var.Version))" | ||||
Comments='$(var.Comments)' | ||||
|
r13042 | Platform='$(var.Platform)' | ||
|
r10930 | Manufacturer='Matt Mackall and others' | ||
|
r10513 | InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' /> | ||
|
r10930 | <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' | ||
CompressionLevel='high' /> | ||||
|
r10513 | <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" /> | ||
|
r13042 | <Condition Message='Mercurial MSI installers require Windows XP or higher'> | ||
VersionNT >= 501 | ||||
</Condition> | ||||
|
r10513 | |||
<Property Id="INSTALLDIR"> | ||||
|
r10930 | <ComponentSearch Id='SearchForMainExecutableComponent' | ||
Guid='$(var.ComponentMainExecutableGUID)' /> | ||||
|
r10513 | </Property> | ||
<!--Property Id='ARPCOMMENTS'>any comments</Property--> | ||||
<Property Id='ARPCONTACT'>mercurial@selenic.com</Property> | ||||
<Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property> | ||||
<Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property> | ||||
<Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property> | ||||
<Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property> | ||||
<Property Id='ARPPRODUCTICON'>hgIcon.ico</Property> | ||||
<Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property> | ||||
<Property Id='REINSTALLMODE'>amus</Property> | ||||
|
r10610 | <!--Auto-accept the license page--> | ||
<Property Id='LicenseAccepted'>1</Property> | ||||
|
r10513 | <Directory Id='TARGETDIR' Name='SourceDir'> | ||
|
r13042 | <Directory Id='$(var.PFolder)' Name='PFiles'> | ||
|
r10513 | <Directory Id='INSTALLDIR' Name='Mercurial'> | ||
|
r13042 | <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'> | ||
|
r10930 | <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' /> | ||
|
r10513 | <Environment Id="Environment" Name="PATH" Part="last" System="yes" | ||
|
r13563 | Permanent="no" Value="[INSTALLDIR]" Action="set" /> | ||
|
r10513 | </Component> | ||
|
r13042 | <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'> | ||
|
r10930 | <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html' | ||
KeyPath='yes'/> | ||||
|
r10513 | </Component> | ||
|
r13042 | <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'> | ||
|
r10930 | <File Id='COPYING' Name='COPYING.rtf' Source='contrib\wix\COPYING.rtf' | ||
KeyPath='yes'/> | ||||
|
r10513 | </Component> | ||
|
r13041 | |||
|
r10513 | <Directory Id='HGRCD' Name='hgrc.d'> | ||
|
r13042 | <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'> | ||
|
r10930 | <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini' | ||
ReadOnly='yes' KeyPath='yes'/> | ||||
|
r10513 | </Component> | ||
|
r13042 | <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'> | ||
|
r10930 | <File Id='mergetools.rc' Name='MergeTools.rc' Source='contrib\mergetools.hgrc' | ||
ReadOnly='yes' KeyPath='yes'/> | ||||
|
r10513 | </Component> | ||
|
r13216 | <Component Id='paths.rc' Guid='$(var.paths.rc.guid)' Win64='$(var.IsX64)'> | ||
<CreateFolder/> | ||||
<IniFile Id="ini0" Action="createLine" Directory="HGRCD" Name="Paths.rc" | ||||
Section="web" Key="cacerts" Value="[INSTALLDIR]hgrc.d\cacert.pem" /> | ||||
</Component> | ||||
<Component Id='cacert.pem' Guid='$(var.cacert.pem.guid)' Win64='$(var.IsX64)'> | ||||
<File Id='cacert.pem' Name='cacert.pem' Source='..\misc\cacert.pem' | ||||
ReadOnly='yes' KeyPath='yes'/> | ||||
</Component> | ||||
|
r10513 | </Directory> | ||
|
r13041 | |||
|
r10513 | </Directory> | ||
</Directory> | ||||
<Directory Id="ProgramMenuFolder" Name="Programs"> | ||||
<Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)"> | ||||
|
r13042 | <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'> | ||
|
r10513 | <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> | ||
<RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string' | ||||
Value='[INSTALLDIR]' KeyPath='yes' /> | ||||
|
r10930 | <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' | ||
Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' /> | ||||
|
r10513 | </Component> | ||
</Directory> | ||||
</Directory> | ||||
|
r13042 | <?if $(var.Platform) = "x86" ?> | ||
<Merge Id='VCRuntime' DiskId='1' Language='1033' | ||||
SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' /> | ||||
<Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' | ||||
SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' /> | ||||
<?else?> | ||||
<Merge Id='VCRuntime' DiskId='1' Language='1033' | ||||
SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' /> | ||||
<Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' | ||||
SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' /> | ||||
<?endif?> | ||||
|
r10513 | </Directory> | ||
|
r10733 | <Feature Id='Complete' Title='Mercurial' Description='The complete package' | ||
|
r10513 | Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' > | ||
<Feature Id='MainProgram' Title='Program' Description='Mercurial command line app' | ||||
Level='1' Absent='disallow' > | ||||
<ComponentRef Id='MainExecutable' /> | ||||
|
r13041 | <ComponentRef Id='distOutput' /> | ||
|
r10513 | <ComponentRef Id='ProgramMenuDir' /> | ||
<ComponentRef Id='ReadMe' /> | ||||
<ComponentRef Id='COPYING' /> | ||||
<ComponentRef Id='mercurial.rc' /> | ||||
<ComponentRef Id='mergetools.rc' /> | ||||
|
r13216 | <ComponentRef Id='paths.rc' /> | ||
<ComponentRef Id='cacert.pem' /> | ||||
|
r10828 | <ComponentRef Id='helpFolder' /> | ||
|
r10513 | <ComponentGroupRef Id='templatesFolder' /> | ||
<MergeRef Id='VCRuntime' /> | ||||
<MergeRef Id='VCRuntimePolicy' /> | ||||
</Feature> | ||||
<Feature Id='Locales' Title='Translations' Description='Translations' Level='1'> | ||||
<ComponentGroupRef Id='localeFolder' /> | ||||
|
r10828 | <ComponentRef Id='i18nFolder' /> | ||
|
r10513 | </Feature> | ||
<Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'> | ||||
<ComponentGroupRef Id='docFolder' /> | ||||
</Feature> | ||||
<Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'> | ||||
<ComponentGroupRef Id='contribFolder' /> | ||||
</Feature> | ||||
</Feature> | ||||
<UIRef Id="WixUI_FeatureTree" /> | ||||
<UIRef Id="WixUI_ErrorProgressText" /> | ||||
|
r10552 | <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" /> | ||
|
r10513 | |||
<Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" /> | ||||
<Upgrade Id='$(var.ProductUpgradeCode)'> | ||||
<UpgradeVersion | ||||
IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no' | ||||
Property='INSTALLEDMERCURIALPRODUCTS' /> | ||||
</Upgrade> | ||||
<InstallExecuteSequence> | ||||
<RemoveExistingProducts After='InstallInitialize'/> | ||||
</InstallExecuteSequence> | ||||
</Product> | ||||
</Wix> | ||||