summaryrefslogtreecommitdiffstats
path: root/Tools/msi/bundle/packagegroups/crt.wxs
blob: b0797009f63ec6f29297d8bcc1b591c35a1d66e0 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>
        <PackageGroup Id="crt">
            <PackageGroupRef Id="crt_14.0_v6.0" />
            <PackageGroupRef Id="crt_14.0_v6.1" />
            <PackageGroupRef Id="crt_14.0_v6.2" />
            <PackageGroupRef Id="crt_14.0_v6.3" />

            <MsiPackage Id="crt_AllUsers"
                        SourceFile="crt.msi"
                        Compressed="$(var.CompressMSI)"
                        DownloadUrl="$(var.DownloadUrl)"
                        ForcePerMachine="yes"
                        InstallCondition="InstallAllUsers and (Include_core or Include_exe or Include_launcher or Include_pip)">
                <!-- TARGETDIR will be ignored, but must still be provided -->
                <MsiProperty Name="TARGETDIR" Value="[TargetDir]" />
            </MsiPackage>
            
            <MsiPackage Id="crt_JustForMe"
                        SourceFile="crt.msi"
                        Compressed="$(var.CompressMSI)"
                        DownloadUrl="$(var.DownloadUrl)"
                        ForcePerMachine="no"
                        InstallCondition="not InstallAllUsers and (Include_core or Include_exe or Include_launcher or Include_pip)">
                <MsiProperty Name="TARGETDIR" Value="[TargetDir]" />
            </MsiPackage>
        </PackageGroup>
    </Fragment>

    <?foreach ver in v6.0;v6.1;v6.2;v6.3 ?>
    <?if "$(var.ver)" = "v6.0" ?>
    <?define msuver=6.0 ?>
    <?elseif "$(var.ver)" = "v6.1" ?>
    <?define msuver=6.1 ?>
    <?elseif "$(var.ver)" = "v6.2" ?>
    <?define msuver=8-RT ?>
    <?elseif "$(var.ver)" = "v6.3" ?>
    <?define msuver=8.1 ?>
    <?else ?>
    <?error unknown version $(var.ver) ?>
    <?endif ?>

    <Fragment>
        <PackageGroup Id="crt_14.0_$(var.ver)">
            <MsuPackage Id="crt_14.0_$(var.ver)_x86"
                        KB="2999226"
                        SourceFile="!(bindpath.redist)\Windows$(var.msuver)-KB2999226-x86.msu"
                        DisplayName="!(loc.CRTDescription)"
                        Description="!(loc.CRTDescription)"
                        Compressed="$(var.CompressMSI)"
                        DownloadUrl="$(var.DownloadUrl)"
                        InstallCondition="not CRTInstalled and VersionNT = $(var.ver) and not VersionNT64 and (Include_core or Include_exe or Include_launcher or Include_pip)" />

            <MsuPackage Id="crt_14.0_$(var.ver)_x64"
                        KB="2999226"
                        SourceFile="!(bindpath.redist)\Windows$(var.msuver)-KB2999226-x64.msu"
                        DisplayName="!(loc.CRTDescription)"
                        Description="!(loc.CRTDescription)"
                        Compressed="$(var.CompressMSI)"
                        DownloadUrl="$(var.DownloadUrl)"
                        InstallCondition="not CRTInstalled and VersionNT64 = $(var.ver) and (Include_core or Include_exe or Include_launcher or Include_pip)" />
        </PackageGroup>
    </Fragment>

    <?undef msuver ?>
    <?endforeach ?>
</Wix>