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="UpgradeTable" /> 8 <PropertyRef Id="REGISTRYKEY" /> 9 10 <Property Id="HHExe" Value="C:\Windows\hh.exe" /> 11 <CustomAction Id="SetHHExe" Property="HHExe" Value='[WindowsFolder]\hh.exe' Execute="immediate" /> 12 <InstallExecuteSequence> 13 <Custom Action="SetHHExe" Before="CostFinalize">1</Custom> 14 </InstallExecuteSequence> 15 16 <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> 17 <ComponentGroupRef Id="doc" Primary="yes" /> 18 <ComponentRef Id="OptionalFeature" /> 19 </Feature> 20 <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> 21 <ComponentGroupRef Id="doc" /> 22 23 <?ifdef DocFilename ?> 24 <Component Id="doc_shortcut" Directory="MenuDir" Guid="*"> 25 <RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]"> 26 <RegistryValue Name="$(var.OptionalFeatureName)_shortcut" Type="string" Value="$(var.Version)" KeyPath="yes" /> 27 </RegistryKey> 28 <Shortcut Id="python.chm" 29 Target="[HHExe]" 30 Arguments="[#python.chm]" 31 Name="!(loc.ShortcutName)" 32 Description="!(loc.ShortcutDescription)" 33 WorkingDirectory="InstallDirectory" 34 Show="maximized" /> 35 <RemoveFolder Id="Remove_MenuDir" On="uninstall" /> 36 </Component> 37 <?endif ?> 38 39 </Feature> 40 </Product> 41</Wix> 42