| 1 |
<?xml version="1.0"?> |
| 2 |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 3 |
<Fragment> |
| 4 |
<PackageGroup Id="packageinstall"> |
| 5 |
<!-- |
| 6 |
This is an example of installing a package using pip as part of main install. |
| 7 |
|
| 8 |
For a network-only install, remove the Payload element and change the install |
| 9 |
command to specify the package and (optionally) version specifier. |
| 10 |
|
| 11 |
<ExePackage Id="requests" |
| 12 |
SourceFile="py.exe" |
| 13 |
Compressed="yes" |
| 14 |
DisplayName="!(loc.CompileAllDescription)" |
| 15 |
InstallCommand='-[WinVer] -m pip install requests-2.7.0-py2.py3-none-any.whl' |
| 16 |
UninstallCommand='-[WinVer] -m pip uninstall -y requests' |
| 17 |
Vital="no" |
| 18 |
InstallCondition="Include_pip and not LauncherOnly"> |
| 19 |
<Payload SourceFile="requests-2.7.0-py2.py3-none-any.whl" |
| 20 |
Compressed="$(var.CompressMSI)" |
| 21 |
DownloadUrl="$(var.DownloadUrl)" /> |
| 22 |
</ExePackage> |
| 23 |
--> |
| 24 |
</PackageGroup> |
| 25 |
</Fragment> |
| 26 |
</Wix> |