blob: 5def5ed4db7859e1716a5f013f82a8c3a8d38c34 [file] [log] [blame]
Steve Dowerbb240872015-02-05 22:08:48 -08001<?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="PYTHON_EXE" Secure="yes">
Steve Dower102f72c2015-03-24 21:25:16 -070011 <ComponentSearch Id="PythonExe" Guid="$(var.PythonExeComponentGuid)">
12 <FileSearch Name="python.exe" />
13 </ComponentSearch>
14 </Property>
15
16 <Property Id="PYTHONW_EXE" Secure="yes">
17 <ComponentSearch Id="PythonwExe" Guid="$(var.PythonwExeComponentGuid)">
Steve Dowerbb240872015-02-05 22:08:48 -080018 <FileSearch Name="pythonw.exe" />
19 </ComponentSearch>
20 </Property>
21
Steve Dower102f72c2015-03-24 21:25:16 -070022 <Condition Message="!(loc.NoPython)">PYTHON_EXE and PYTHONW_EXE</Condition>
Steve Dowerbb240872015-02-05 22:08:48 -080023
Steve Dowerbb240872015-02-05 22:08:48 -080024 <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
25 <ComponentGroupRef Id="tkinter_extension" />
26 <ComponentGroupRef Id="tcltk_dlls" />
27 <ComponentGroupRef Id="tcltk_lib" />
Steve Dower102f72c2015-03-24 21:25:16 -070028 <ComponentGroupRef Id="tkinter_lib" Primary="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080029
Steve Dower1d4880d2015-05-03 14:54:32 -070030 <Component Id="idle_reg" Directory="InstallDirectory">
Steve Dowerbb240872015-02-05 22:08:48 -080031 <RegistryValue KeyPath="yes" Root="HKMU" Key="[REGISTRYKEY]\Idle" Type="string" Value="[#Lib_idlelib_idle.pyw]" />
Steve Dower1d4880d2015-05-03 14:54:32 -070032 </Component>
33 </Feature>
34 <Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
35 <ComponentGroupRef Id="tkinter_lib" />
36 <ComponentGroupRef Id="idle_reg" />
37 </Feature>
38 <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
39 <ComponentGroupRef Id="tkinter_lib" />
40
41 <Component Id="idle_shortcut" Directory="MenuDir">
42 <RegistryValue Root="HKMU" Key="[REGISTRYKEY]\IdleShortcuts" Type="integer" Value="1" KeyPath="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080043 <RemoveFolder Id="Remove_MenuDir" On="uninstall" />
44
45 <Shortcut Id="IDLE"
46 Directory="MenuDir"
47 Name="!(loc.ShortcutName)"
48 Description="!(loc.ShortcutDescription)"
Steve Dower102f72c2015-03-24 21:25:16 -070049 Target="[PYTHONW_EXE]"
Steve Dowerbb240872015-02-05 22:08:48 -080050 Arguments='"[#Lib_idlelib_idle.pyw]"'
51 Icon="idle.exe">
52 <Icon Id="idle.exe" SourceFile="!(bindpath.src)Lib\idlelib\Icons\idle.ico" />
53 </Shortcut>
Steve Dower102f72c2015-03-24 21:25:16 -070054 <Shortcut Id="pydoc.py"
55 Target="[PYTHON_EXE]"
56 Arguments='-m pydoc -b'
57 Name="!(loc.PyDocShortcutName)"
58 Description="!(loc.PyDocShortcutDescription)"
59 Icon="idle.exe" />
60 </Component>
61 </Feature>
Steve Dowerbb240872015-02-05 22:08:48 -080062 </Product>
63</Wix>