blob: eeae8e8b0dfa5fd9927e4dbf7b222e5e18161331 [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>
Steve Dower49437492015-07-08 20:18:44 -070033 <ComponentRef Id="OptionalFeature" />
Steve Dower1d4880d2015-05-03 14:54:32 -070034 </Feature>
35 <Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
36 <ComponentGroupRef Id="tkinter_lib" />
37 <ComponentGroupRef Id="idle_reg" />
38 </Feature>
39 <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
40 <ComponentGroupRef Id="tkinter_lib" />
41
42 <Component Id="idle_shortcut" Directory="MenuDir">
43 <RegistryValue Root="HKMU" Key="[REGISTRYKEY]\IdleShortcuts" Type="integer" Value="1" KeyPath="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080044 <RemoveFolder Id="Remove_MenuDir" On="uninstall" />
45
46 <Shortcut Id="IDLE"
47 Directory="MenuDir"
48 Name="!(loc.ShortcutName)"
49 Description="!(loc.ShortcutDescription)"
Steve Dower102f72c2015-03-24 21:25:16 -070050 Target="[PYTHONW_EXE]"
Steve Dowerbb240872015-02-05 22:08:48 -080051 Arguments='"[#Lib_idlelib_idle.pyw]"'
Steve Dower04a43162015-10-31 12:41:46 -070052 Icon="idle.exe"
53 WorkingDirectory="InstallDirectory">
Steve Dowerbb240872015-02-05 22:08:48 -080054 <Icon Id="idle.exe" SourceFile="!(bindpath.src)Lib\idlelib\Icons\idle.ico" />
55 </Shortcut>
Steve Dower102f72c2015-03-24 21:25:16 -070056 <Shortcut Id="pydoc.py"
57 Target="[PYTHON_EXE]"
58 Arguments='-m pydoc -b'
59 Name="!(loc.PyDocShortcutName)"
60 Description="!(loc.PyDocShortcutDescription)"
Steve Dower04a43162015-10-31 12:41:46 -070061 Icon="idle.exe"
62 WorkingDirectory="InstallDirectory" />
Steve Dower102f72c2015-03-24 21:25:16 -070063 </Component>
64 </Feature>
Steve Dowerbb240872015-02-05 22:08:48 -080065 </Product>
66</Wix>