2015-02-06 07:08:48 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
2016-07-25 03:04:29 +02:00
|
|
|
<Fragment>
|
|
|
|
<Property Id="ROOTREGISTRYKEY" Value="Software\Python\PythonCore" />
|
|
|
|
</Fragment>
|
|
|
|
|
2015-02-06 07:08:48 +01:00
|
|
|
<Fragment>
|
2015-10-31 20:17:11 +01:00
|
|
|
<Property Id="REGISTRYKEY" Value="Software\Python\PythonCore\$(var.ShortVersion)$(var.PyArchExt)$(var.PyTestExt)" />
|
2015-02-06 07:08:48 +01:00
|
|
|
</Fragment>
|
|
|
|
|
2015-07-09 05:18:44 +02:00
|
|
|
<Fragment>
|
|
|
|
<Component Id="OptionalFeature" Guid="*" Directory="InstallDirectory">
|
|
|
|
<Condition>OPTIONALFEATURESREGISTRYKEY</Condition>
|
|
|
|
<RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]">
|
|
|
|
<RegistryValue Type="string" Name="$(var.OptionalFeatureName)" Value="$(var.Version)" KeyPath="yes" />
|
|
|
|
</RegistryKey>
|
|
|
|
</Component>
|
|
|
|
</Fragment>
|
|
|
|
|
2015-02-06 07:08:48 +01:00
|
|
|
<Fragment>
|
|
|
|
<Property Id="UpgradeTable" Value="1" />
|
|
|
|
|
2016-09-09 22:19:09 +02:00
|
|
|
<?ifndef SuppressUpgradeTable ?>
|
2015-02-06 07:08:48 +01:00
|
|
|
<Upgrade Id="$(var.UpgradeCode)">
|
|
|
|
<UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
|
|
|
|
<UpgradeVersion Property="UPGRADE" Minimum="$(var.UpgradeMinimumVersion)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
|
|
|
|
</Upgrade>
|
|
|
|
|
2016-05-19 00:54:05 +02:00
|
|
|
<?ifdef CoreUpgradeCode ?>
|
2015-02-06 07:08:48 +01:00
|
|
|
<?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
|
|
|
|
<Upgrade Id="$(var.CoreUpgradeCode)">
|
2015-03-25 05:25:16 +01:00
|
|
|
<UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" />
|
2015-02-06 07:08:48 +01:00
|
|
|
</Upgrade>
|
2015-10-02 00:19:39 +02:00
|
|
|
<Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition>
|
|
|
|
<?endif ?>
|
2015-02-06 07:08:48 +01:00
|
|
|
<?endif ?>
|
|
|
|
|
|
|
|
<Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition>
|
|
|
|
<Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition>
|
|
|
|
|
|
|
|
<InstallExecuteSequence>
|
2015-10-02 00:19:39 +02:00
|
|
|
<RemoveExistingProducts After="InstallInitialize" Overridable="yes">UPGRADE</RemoveExistingProducts>
|
2015-02-06 07:08:48 +01:00
|
|
|
</InstallExecuteSequence>
|
2023-02-13 21:33:48 +01:00
|
|
|
<?endif ?>
|
2015-02-06 07:08:48 +01:00
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<!-- Include an icon for the Programs and Features dialog -->
|
2016-09-05 23:51:41 +02:00
|
|
|
<Icon Id="ARPIcon" SourceFile="!(bindpath.src)PC\icons\python.ico" />
|
2015-02-06 07:08:48 +01:00
|
|
|
<Property Id="ARPPRODUCTICON" Value="ARPIcon" />
|
|
|
|
<Property Id="ARPNOMODIFY" Value="1" />
|
|
|
|
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
2022-03-07 18:23:11 +01:00
|
|
|
<?ifdef InstallDirectoryGuidSeed ?>
|
2015-02-06 07:08:48 +01:00
|
|
|
<Directory Id="InstallDirectory" ComponentGuidGenerationSeed="$(var.InstallDirectoryGuidSeed)" />
|
2022-03-07 18:23:11 +01:00
|
|
|
<?endif ?>
|
2015-02-06 07:08:48 +01:00
|
|
|
</Directory>
|
2022-03-07 18:23:11 +01:00
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
2022-03-16 01:46:33 +01:00
|
|
|
<?ifdef PythonExeComponentGuid ?>
|
2022-03-07 18:23:11 +01:00
|
|
|
<!-- Locate TARGETDIR automatically assuming we have executables installed -->
|
|
|
|
<Property Id="TARGETDIR">
|
|
|
|
<ComponentSearch Id="PythonExe_Directory" Guid="$(var.PythonExeComponentGuid)">
|
|
|
|
<DirectorySearch Id="PythonExe_Directory" AssignToProperty="yes" Path=".">
|
|
|
|
<FileSearch Id="PythonExe_DirectoryFile" Name="python.exe" />
|
|
|
|
</DirectorySearch>
|
|
|
|
</ComponentSearch>
|
|
|
|
</Property>
|
2022-03-16 01:46:33 +01:00
|
|
|
<?endif ?>
|
2022-03-07 18:23:11 +01:00
|
|
|
<Property Id="DetectTargetDir" Value="1" />
|
2015-02-06 07:08:48 +01:00
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<!-- Top-level directories -->
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
2016-10-10 05:18:52 +02:00
|
|
|
<Directory Id="DLLs" Name="DLLs">
|
|
|
|
<Directory Id="Catalogs" />
|
|
|
|
</Directory>
|
2015-02-06 07:08:48 +01:00
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
2022-03-22 02:08:37 +01:00
|
|
|
<Directory Id="Doc" Name="Doc">
|
|
|
|
<Directory Id="Doc_html" Name="html" />
|
|
|
|
</Directory>
|
2015-02-06 07:08:48 +01:00
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
|
|
|
<Directory Id="include" Name="include" />
|
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
|
|
|
<Directory Id="Lib" Name="Lib" />
|
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
|
|
|
<Directory Id="libs" Name="libs" />
|
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
|
|
|
<Directory Id="Scripts" Name="Scripts" />
|
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="InstallDirectory">
|
|
|
|
<Directory Id="tcl" Name="tcl" />
|
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
|
|
|
|
<!-- Start Menu folder -->
|
|
|
|
<Fragment>
|
|
|
|
<DirectoryRef Id="TARGETDIR">
|
|
|
|
<Directory Id="ProgramMenuFolder">
|
2015-10-31 20:17:11 +01:00
|
|
|
<Directory Id="MenuDir" Name="!(loc.ProductName)" />
|
2015-02-06 07:08:48 +01:00
|
|
|
</Directory>
|
|
|
|
</DirectoryRef>
|
|
|
|
</Fragment>
|
|
|
|
</Wix>
|