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 | |
| 30 | <Component Id="idle_shortcut" Directory="MenuDir"> |
| 31 | <RegistryValue KeyPath="yes" Root="HKMU" Key="[REGISTRYKEY]\Idle" Type="string" Value="[#Lib_idlelib_idle.pyw]" /> |
| 32 | <RemoveFolder Id="Remove_MenuDir" On="uninstall" /> |
| 33 | |
| 34 | <Shortcut Id="IDLE" |
| 35 | Directory="MenuDir" |
| 36 | Name="!(loc.ShortcutName)" |
| 37 | Description="!(loc.ShortcutDescription)" |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame^] | 38 | Target="[PYTHONW_EXE]" |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 39 | Arguments='"[#Lib_idlelib_idle.pyw]"' |
| 40 | Icon="idle.exe"> |
| 41 | <Icon Id="idle.exe" SourceFile="!(bindpath.src)Lib\idlelib\Icons\idle.ico" /> |
| 42 | </Shortcut> |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame^] | 43 | <Shortcut Id="pydoc.py" |
| 44 | Target="[PYTHON_EXE]" |
| 45 | Arguments='-m pydoc -b' |
| 46 | Name="!(loc.PyDocShortcutName)" |
| 47 | Description="!(loc.PyDocShortcutDescription)" |
| 48 | Icon="idle.exe" /> |
| 49 | </Component> |
| 50 | </Feature> |
| 51 | <Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> |
| 52 | <ComponentGroupRef Id="tkinter_lib" /> |
| 53 | |
| 54 | <!-- We fix the guid of the Subcommands key so that it is correctly reference counted --> |
| 55 | <Component Id="assoc_subcommands" Directory="InstallDirectory" Guid="{57D47B4C-96E6-40A0-A958-57083D74423F}"> |
| 56 | <Condition>VersionNT > 600</Condition> |
| 57 | <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> |
| 58 | <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle" Name="Subcommands" Value="" Type="string" KeyPath="no" /> |
| 59 | </Component> |
| 60 | <Component Id="assoc_subcommands_nocon" Directory="InstallDirectory" Guid="{07061D85-9151-4FC4-BB78-13628020D026}"> |
| 61 | <Condition>VersionNT > 600</Condition> |
| 62 | <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> |
| 63 | <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle" Name="Subcommands" Value="" Type="string" KeyPath="no" /> |
| 64 | </Component> |
| 65 | |
| 66 | <Component Id="assoc_editwithidle" Directory="InstallDirectory"> |
| 67 | <Condition>VersionNT > 600</Condition> |
| 68 | <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> |
| 69 | <RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 70 | <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 71 | </RegistryKey> |
| 72 | </Component> |
| 73 | <Component Id="assoc_editwithidle_nocon" Directory="InstallDirectory"> |
| 74 | <Condition>VersionNT > 600</Condition> |
| 75 | <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> |
| 76 | <RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 77 | <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 78 | </RegistryKey> |
| 79 | </Component> |
| 80 | |
| 81 | <Component Id="assoc_editwithidle_vista" Directory="InstallDirectory"> |
| 82 | <Condition>VersionNT = 600</Condition> |
| 83 | <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> |
| 84 | <RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 85 | <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 86 | </RegistryKey> |
| 87 | </Component> |
| 88 | <Component Id="assoc_editwithidle_nocon_vista" Directory="InstallDirectory"> |
| 89 | <Condition>VersionNT = 600</Condition> |
| 90 | <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> |
| 91 | <RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 92 | <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 93 | </RegistryKey> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 94 | </Component> |
| 95 | </Feature> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 96 | </Product> |
| 97 | </Wix> |