Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 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="PYTHON_EXE" Secure="yes"> |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame] | 11 | <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 Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 18 | <FileSearch Name="pythonw.exe" /> |
| 19 | </ComponentSearch> |
| 20 | </Property> |
| 21 | |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame] | 22 | <Condition Message="!(loc.NoPython)">PYTHON_EXE and PYTHONW_EXE</Condition> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 23 | |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 24 | <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 Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame] | 28 | <ComponentGroupRef Id="tkinter_lib" Primary="yes" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 29 | |
Steve Dower | 1d4880d | 2015-05-03 14:54:32 -0700 | [diff] [blame] | 30 | <Component Id="idle_reg" Directory="InstallDirectory"> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 31 | <RegistryValue KeyPath="yes" Root="HKMU" Key="[REGISTRYKEY]\Idle" Type="string" Value="[#Lib_idlelib_idle.pyw]" /> |
Steve Dower | 1d4880d | 2015-05-03 14:54:32 -0700 | [diff] [blame] | 32 | </Component> |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame^] | 33 | <ComponentRef Id="OptionalFeature" /> |
Steve Dower | 1d4880d | 2015-05-03 14:54:32 -0700 | [diff] [blame] | 34 | </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 Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 44 | <RemoveFolder Id="Remove_MenuDir" On="uninstall" /> |
| 45 | |
| 46 | <Shortcut Id="IDLE" |
| 47 | Directory="MenuDir" |
| 48 | Name="!(loc.ShortcutName)" |
| 49 | Description="!(loc.ShortcutDescription)" |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame] | 50 | Target="[PYTHONW_EXE]" |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 51 | Arguments='"[#Lib_idlelib_idle.pyw]"' |
| 52 | Icon="idle.exe"> |
| 53 | <Icon Id="idle.exe" SourceFile="!(bindpath.src)Lib\idlelib\Icons\idle.ico" /> |
| 54 | </Shortcut> |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame] | 55 | <Shortcut Id="pydoc.py" |
| 56 | Target="[PYTHON_EXE]" |
| 57 | Arguments='-m pydoc -b' |
| 58 | Name="!(loc.PyDocShortcutName)" |
| 59 | Description="!(loc.PyDocShortcutDescription)" |
| 60 | Icon="idle.exe" /> |
| 61 | </Component> |
| 62 | </Feature> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 63 | </Product> |
| 64 | </Wix> |