• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3    <Fragment>
4        <PackageGroup Id="postinstall">
5            <MsiPackage Id="path_AllUsers"
6                        SourceFile="path.msi"
7                        Compressed="$(var.CompressMSI)"
8                        DownloadUrl="$(var.DownloadUrl)"
9                        ForcePerMachine="yes"
10                        InstallCondition="InstallAllUsers and PrependPath and not LauncherOnly">
11                <MsiProperty Name="TARGETDIR" Value="[TargetDir]" />
12                <MsiProperty Name="OPTIONALFEATURESREGISTRYKEY" Value="[OptionalFeaturesRegistryKey]" />
13            </MsiPackage>
14            <MsiPackage Id="path_JustForMe"
15                        SourceFile="path.msi"
16                        Compressed="$(var.CompressMSI)"
17                        DownloadUrl="$(var.DownloadUrl)"
18                        ForcePerMachine="no"
19                        InstallCondition="not InstallAllUsers and PrependPath and not LauncherOnly">
20                <MsiProperty Name="TARGETDIR" Value="[TargetDir]" />
21                <MsiProperty Name="OPTIONALFEATURESREGISTRYKEY" Value="[OptionalFeaturesRegistryKey]" />
22            </MsiPackage>
23
24            <?define CompileAllCommand=-E -s -Wi "[TargetDir]\Lib\compileall.py" -f -x "bad_coding|badsyntax|site-packages|py2_|lib2to3\\tests|venv\\scripts" "[TargetDir]\Lib"?>
25            <ExePackage Id="compileall_AllUsers"
26                        SourceFile="py.exe"
27                        Compressed="yes"
28                        DisplayName="!(loc.CompileAllDescription)"
29                        InstallCommand='-[WinVer] $(var.CompileAllCommand)'
30                        RepairCommand='-[WinVer] $(var.CompileAllCommand)'
31                        Permanent="yes"
32                        PerMachine="yes"
33                        Vital="no"
34                        InstallCondition="InstallAllUsers and CompileAll and not LauncherOnly" />
35            <ExePackage Id="compileallO_AllUsers"
36                        SourceFile="py.exe"
37                        Compressed="yes"
38                        DisplayName="!(loc.CompileAllODescription)"
39                        InstallCommand='-[WinVer] -O $(var.CompileAllCommand)'
40                        RepairCommand='-[WinVer] -O $(var.CompileAllCommand)'
41                        Permanent="yes"
42                        PerMachine="yes"
43                        Vital="no"
44                        InstallCondition="InstallAllUsers and CompileAll and not LauncherOnly" />
45            <ExePackage Id="compileallOO_AllUsers"
46                        SourceFile="py.exe"
47                        Compressed="yes"
48                        DisplayName="!(loc.CompileAllOODescription)"
49                        InstallCommand='-[WinVer] -OO $(var.CompileAllCommand)'
50                        RepairCommand='-[WinVer] -OO $(var.CompileAllCommand)'
51                        Permanent="yes"
52                        PerMachine="yes"
53                        Vital="no"
54                        InstallCondition="InstallAllUsers and CompileAll and not LauncherOnly" />
55
56            <ExePackage Id="compileall_JustForMe"
57                        SourceFile="py.exe"
58                        Compressed="yes"
59                        DisplayName="!(loc.CompileAllDescription)"
60                        InstallCommand='-[WinVer] $(var.CompileAllCommand)'
61                        RepairCommand='-[WinVer] $(var.CompileAllCommand)'
62                        Permanent="yes"
63                        PerMachine="no"
64                        Vital="no"
65                        InstallCondition="not InstallAllUsers and CompileAll and not LauncherOnly" />
66            <ExePackage Id="compileallO_JustForMe"
67                        SourceFile="py.exe"
68                        Compressed="yes"
69                        DisplayName="!(loc.CompileAllODescription)"
70                        InstallCommand='-[WinVer] -O $(var.CompileAllCommand)'
71                        RepairCommand='-[WinVer] -O $(var.CompileAllCommand)'
72                        Permanent="yes"
73                        PerMachine="no"
74                        Vital="no"
75                        InstallCondition="not InstallAllUsers and CompileAll and not LauncherOnly" />
76            <ExePackage Id="compileallOO_JustForMe"
77                        SourceFile="py.exe"
78                        Compressed="yes"
79                        DisplayName="!(loc.CompileAllOODescription)"
80                        InstallCommand='-[WinVer] -OO $(var.CompileAllCommand)'
81                        RepairCommand='-[WinVer] -OO $(var.CompileAllCommand)'
82                        Permanent="yes"
83                        PerMachine="no"
84                        Vital="no"
85                        InstallCondition="not InstallAllUsers and CompileAll and not LauncherOnly" />
86        </PackageGroup>
87    </Fragment>
88</Wix>