summaryrefslogtreecommitdiffstats
path: root/Tools/msi/exe/exe.wxs
blob: d8b05e0f584eac85231367f4b2003d1d8bf1dfb7 (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
<?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)">
        <Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
        <MediaTemplate EmbedCab="yes" CompressionLevel="high" />
        
        <PropertyRef Id="UpgradeTable" />
        <PropertyRef Id="REGISTRYKEY" />
        
        <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
            <ComponentGroupRef Id="exe_python" Primary="yes" />
            <ComponentGroupRef Id="exe_txt" />
            <ComponentGroupRef Id="exe_icons" />
        </Feature>
            
        <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
            <ComponentGroupRef Id="exe_python" />
            <Component Id="exe_shortcut" Directory="MenuDir" Guid="*">
                <Shortcut Id="python.exe"
                          Target="[#python.exe]"
                          Name="!(loc.ShortcutName)"
                          Description="!(loc.ShortcutDescription)" />
                <RemoveFolder Id="Remove_MenuDir" Directory="MenuDir" On="uninstall" />
                <RegistryKey Root="HKMU" Key="[REGISTRYKEY]">
                    <RegistryValue Key="InstallPath\InstallGroup" Type="string" Value="!(loc.ProductName)" KeyPath="yes" />
                </RegistryKey>
            </Component>
        </Feature>
    </Product>
</Wix>