| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 3 |
<Fragment> |
| 4 |
<ComponentGroup Id="idle_reg"> |
| 5 |
<!-- We fix the guid of the Subcommands key so that it is correctly reference counted --> |
| 6 |
<Component Id="assoc_subcommands" Directory="InstallDirectory" Guid="{57D47B4C-96E6-40A0-A958-57083D74423F}"> |
| 7 |
<Condition>VersionNT > 600</Condition> |
| 8 |
<RegistryValue Root="HKCR" Key="Python.File\Shell\editwithidle$(var.PyTestExt)" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> |
| 9 |
<RegistryValue Root="HKCR" Key="Python.File\Shell\editwithidle$(var.PyTestExt)" Name="Subcommands" Value="" Type="string" KeyPath="no" /> |
| 10 |
</Component> |
| 11 |
<Component Id="assoc_subcommands_nocon" Directory="InstallDirectory" Guid="{07061D85-9151-4FC4-BB78-13628020D026}"> |
| 12 |
<Condition>VersionNT > 600</Condition> |
| 13 |
<RegistryValue Root="HKCR" Key="Python.NoConFile\Shell\editwithidle$(var.PyTestExt)" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> |
| 14 |
<RegistryValue Root="HKCR" Key="Python.NoConFile\Shell\editwithidle$(var.PyTestExt)" Name="Subcommands" Value="" Type="string" KeyPath="no" /> |
| 15 |
</Component> |
| 16 |
|
| 17 |
<Component Id="assoc_editwithidle" Directory="InstallDirectory"> |
| 18 |
<Condition>VersionNT > 600</Condition> |
| 19 |
<RegistryKey Root="HKCR" Key="Python.File\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)"> |
| 20 |
<RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 21 |
<RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 22 |
</RegistryKey> |
| 23 |
</Component> |
| 24 |
<Component Id="assoc_editwithidle_nocon" Directory="InstallDirectory"> |
| 25 |
<Condition>VersionNT > 600</Condition> |
| 26 |
<RegistryKey Root="HKCR" Key="Python.NoConFile\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)"> |
| 27 |
<RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 28 |
<RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 29 |
</RegistryKey> |
| 30 |
</Component> |
| 31 |
|
| 32 |
<Component Id="assoc_editwithidle_vista" Directory="InstallDirectory"> |
| 33 |
<Condition>VersionNT = 600</Condition> |
| 34 |
<RegistryKey Root="HKCR" Key="Python.File\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)"> |
| 35 |
<RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 36 |
<RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 37 |
</RegistryKey> |
| 38 |
</Component> |
| 39 |
<Component Id="assoc_editwithidle_nocon_vista" Directory="InstallDirectory"> |
| 40 |
<Condition>VersionNT = 600</Condition> |
| 41 |
<RegistryKey Root="HKCR" Key="Python.NoConFile\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)"> |
| 42 |
<RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> |
| 43 |
<RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> |
| 44 |
</RegistryKey> |
| 45 |
</Component> |
| 46 |
</ComponentGroup> |
| 47 |
</Fragment> |
| 48 |
</Wix> |