summaryrefslogtreecommitdiff
path: root/Tools/msi/doc/doc.wxs
blob: ddab83b5ea5ad400fd2a673e3e0e0a691e58d2b8 (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
<?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="doc" />
            
            <?ifdef DocFilename ?>
            <Component Id="doc_shortcut" Directory="MenuDir" Guid="*">
                <RegistryKey Root="HKMU" Key="[REGISTRYKEY]">
                    <RegistryValue Key="Help\Main Python Documentation" Type="string" Value="[#python.chm]" KeyPath="yes" />
                </RegistryKey>
                <Shortcut Id="python.chm"
                          Target="[#python.chm]"
                          Name="!(loc.ShortcutName)"
                          Description="!(loc.ShortcutDescription)" />
                <RemoveFolder Id="Remove_MenuDir" On="uninstall" />
            </Component>
            <?endif ?>

        </Feature>
    </Product>
</Wix>