2015-02-06 02:08:48 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
|
|
<Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
|
2022-01-28 12:48:06 -04:00
|
|
|
<Package InstallerVersion="500" Compressed="yes" InstallScope="perUser" />
|
2015-02-06 02:08:48 -04:00
|
|
|
|
|
|
|
<PropertyRef Id="UpgradeTable" />
|
|
|
|
<PropertyRef Id="REGISTRYKEY" />
|
|
|
|
|
|
|
|
<Property Id="PYTHON_EXE" Secure="yes">
|
|
|
|
<ComponentSearch Id="PythonExe" Guid="$(var.PythonExeComponentGuid)">
|
|
|
|
<FileSearch Name="python.exe" />
|
|
|
|
</ComponentSearch>
|
|
|
|
</Property>
|
|
|
|
|
|
|
|
<Condition Message="!(loc.NoPython)">PYTHON_EXE</Condition>
|
|
|
|
|
|
|
|
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
|
2015-07-09 00:18:44 -03:00
|
|
|
<ComponentRef Id="OptionalFeature" />
|
2015-02-06 02:08:48 -04:00
|
|
|
</Feature>
|
|
|
|
|
|
|
|
<?if $(var.Platform)~="x64" ?>
|
|
|
|
<CustomAction Id="UpdatePip" BinaryKey="WixCA" DllEntry="CAQuietExec64" Execute="deferred" Return="ignore"/>
|
|
|
|
<?else ?>
|
|
|
|
<CustomAction Id="UpdatePip" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="ignore"/>
|
|
|
|
<?endif ?>
|
|
|
|
|
|
|
|
<!-- Install/uninstall pip -->
|
2015-07-04 15:48:37 -03:00
|
|
|
<CustomAction Id="SetUpdatePipCommandLine" Property="UpdatePip" Value='"[PYTHON_EXE]" -E -s -m ensurepip -U --default-pip' Execute="immediate" />
|
|
|
|
<CustomAction Id="SetRemovePipCommandLine" Property="UpdatePip" Value='"[PYTHON_EXE]" -E -s -B -m ensurepip._uninstall' Execute="immediate" />
|
2015-02-06 02:08:48 -04:00
|
|
|
|
|
|
|
<InstallExecuteSequence>
|
|
|
|
<Custom Action="SetUpdatePipCommandLine" Before="UpdatePip">(&DefaultFeature=3) AND NOT (!DefaultFeature=3)</Custom>
|
|
|
|
<Custom Action="SetRemovePipCommandLine" Before="UpdatePip">(&DefaultFeature=2) AND (!DefaultFeature=3)</Custom>
|
|
|
|
|
|
|
|
<Custom Action="UpdatePip" Before="InstallFinalize">UpdatePip</Custom>
|
|
|
|
</InstallExecuteSequence>
|
|
|
|
</Product>
|
|
|
|
</Wix>
|
|
|
|
|