1<?xml version="1.0" encoding="UTF-8"?> 2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 3 <Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> 4 <Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" /> 5 <MediaTemplate EmbedCab="yes" CompressionLevel="high" /> 6 7 <PropertyRef Id="DetectTargetDir" /> 8 <PropertyRef Id="UpgradeTable" /> 9 <PropertyRef Id="REGISTRYKEY" /> 10 11 <Property Id="HHExe" Value="C:\Windows\hh.exe" /> 12 <CustomAction Id="SetHHExe" Property="HHExe" Value='[WindowsFolder]\hh.exe' Execute="immediate" /> 13 <InstallExecuteSequence> 14 <Custom Action="SetHHExe" Before="CostFinalize">1</Custom> 15 </InstallExecuteSequence> 16 17 <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> 18 <ComponentGroupRef Id="doc" Primary="yes" /> 19 <ComponentRef Id="OptionalFeature" /> 20 </Feature> 21 <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> 22 <ComponentGroupRef Id="doc" /> 23 24 <?ifdef DocFilename ?> 25 <Component Id="doc_shortcut" Directory="MenuDir" Guid="*"> 26 <RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]"> 27 <RegistryValue Name="$(var.OptionalFeatureName)_shortcut" Type="string" Value="$(var.Version)" KeyPath="yes" /> 28 </RegistryKey> 29 <Shortcut Id="python.chm" 30 Target="[HHExe]" 31 Arguments="[#python.chm]" 32 Name="!(loc.ShortcutName)" 33 Description="!(loc.ShortcutDescription)" 34 WorkingDirectory="InstallDirectory" 35 Show="maximized" /> 36 <RemoveFolder Id="Remove_MenuDir" On="uninstall" /> 37 </Component> 38 <?endif ?> 39 40 </Feature> 41 </Product> 42</Wix> 43