summaryrefslogtreecommitdiffstats
path: root/Tools/msi/doc/doc.wxs
blob: 1d7706bb4d50a07af07a75d34d769534f5c44477 (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
<?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="500" Compressed="yes" InstallScope="perUser" />
        <MediaTemplate EmbedCab="yes" CompressionLevel="high" />
        
        <PropertyRef Id="DetectTargetDir" />
        <PropertyRef Id="UpgradeTable" />
        <PropertyRef Id="REGISTRYKEY" />
        
        <Property Id="HHExe" Value="C:\Windows\hh.exe" />
        <CustomAction Id="SetHHExe" Property="HHExe" Value='[WindowsFolder]\hh.exe' Execute="immediate" />
        <InstallExecuteSequence>
            <Custom Action="SetHHExe" Before="CostFinalize">1</Custom>
        </InstallExecuteSequence>
        
        <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
            <ComponentGroupRef Id="doc" Primary="yes" />
            <ComponentRef Id="OptionalFeature" />
        </Feature>
        <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
            <ComponentGroupRef Id="doc" />
            
            <?ifdef DocFilename ?>
            <Component Id="doc_shortcut" Directory="MenuDir" Guid="*">
                <RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]">
                    <RegistryValue Name="$(var.OptionalFeatureName)_shortcut" Type="string" Value="$(var.Version)" KeyPath="yes" />
                </RegistryKey>
                <Shortcut Id="python.chm"
                          Target="[HHExe]"
                          Arguments="[#python.chm]"
                          Name="!(loc.ShortcutName)"
                          Description="!(loc.ShortcutDescription)"
                          WorkingDirectory="InstallDirectory"
                          Show="maximized" />
                <RemoveFolder Id="Remove_MenuDir" On="uninstall" />
            </Component>
            <?endif ?>

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