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