diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-05-03 21:54:32 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-05-03 21:54:32 (GMT) |
commit | 1d4880db3d48bbb52226a7ea1bfeb6f6c8c81f64 (patch) | |
tree | 44179b714c767c59c9408b1b6808649c8cba7ec2 /Tools/msi/tcltk | |
parent | 2d0a69a456831f483a612fa97c7ed1b178b1bdd2 (diff) | |
download | cpython-1d4880db3d48bbb52226a7ea1bfeb6f6c8c81f64.zip cpython-1d4880db3d48bbb52226a7ea1bfeb6f6c8c81f64.tar.gz cpython-1d4880db3d48bbb52226a7ea1bfeb6f6c8c81f64.tar.bz2 |
Enables shortcuts to be deselected when installing on Windows.
Diffstat (limited to 'Tools/msi/tcltk')
-rw-r--r-- | Tools/msi/tcltk/tcltk.wixproj | 1 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk.wxs | 58 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk_reg.wxs | 48 |
3 files changed, 61 insertions, 46 deletions
diff --git a/Tools/msi/tcltk/tcltk.wixproj b/Tools/msi/tcltk/tcltk.wixproj index 4d1d74c..f66fc14 100644 --- a/Tools/msi/tcltk/tcltk.wixproj +++ b/Tools/msi/tcltk/tcltk.wixproj @@ -14,6 +14,7 @@ <ItemGroup> <Compile Include="tcltk.wxs" /> <Compile Include="tcltk_files.wxs" /> + <Compile Include="tcltk_reg.wxs" /> </ItemGroup> <ItemGroup> <WxlTemplate Include="*.wxl_template" /> diff --git a/Tools/msi/tcltk/tcltk.wxs b/Tools/msi/tcltk/tcltk.wxs index 4a0d80f..5def5ed 100644 --- a/Tools/msi/tcltk/tcltk.wxs +++ b/Tools/msi/tcltk/tcltk.wxs @@ -27,8 +27,19 @@ <ComponentGroupRef Id="tcltk_lib" /> <ComponentGroupRef Id="tkinter_lib" Primary="yes" /> - <Component Id="idle_shortcut" Directory="MenuDir"> + <Component Id="idle_reg" Directory="InstallDirectory"> <RegistryValue KeyPath="yes" Root="HKMU" Key="[REGISTRYKEY]\Idle" Type="string" Value="[#Lib_idlelib_idle.pyw]" /> + </Component> + </Feature> + <Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> + <ComponentGroupRef Id="tkinter_lib" /> + <ComponentGroupRef Id="idle_reg" /> + </Feature> + <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> + <ComponentGroupRef Id="tkinter_lib" /> + + <Component Id="idle_shortcut" Directory="MenuDir"> + <RegistryValue Root="HKMU" Key="[REGISTRYKEY]\IdleShortcuts" Type="integer" Value="1" KeyPath="yes" /> <RemoveFolder Id="Remove_MenuDir" On="uninstall" /> <Shortcut Id="IDLE" @@ -48,50 +59,5 @@ Icon="idle.exe" /> </Component> </Feature> - <Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> - <ComponentGroupRef Id="tkinter_lib" /> - - <!-- We fix the guid of the Subcommands key so that it is correctly reference counted --> - <Component Id="assoc_subcommands" Directory="InstallDirectory" Guid="{57D47B4C-96E6-40A0-A958-57083D74423F}"> - <Condition>VersionNT > 600</Condition> - <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> - <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle" Name="Subcommands" Value="" Type="string" KeyPath="no" /> - </Component> - <Component Id="assoc_subcommands_nocon" Directory="InstallDirectory" Guid="{07061D85-9151-4FC4-BB78-13628020D026}"> - <Condition>VersionNT > 600</Condition> - <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> - <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle" Name="Subcommands" Value="" Type="string" KeyPath="no" /> - </Component> - - <Component Id="assoc_editwithidle" Directory="InstallDirectory"> - <Condition>VersionNT > 600</Condition> - <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> - <RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> - <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> - </RegistryKey> - </Component> - <Component Id="assoc_editwithidle_nocon" Directory="InstallDirectory"> - <Condition>VersionNT > 600</Condition> - <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> - <RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> - <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> - </RegistryKey> - </Component> - - <Component Id="assoc_editwithidle_vista" Directory="InstallDirectory"> - <Condition>VersionNT = 600</Condition> - <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> - <RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> - <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> - </RegistryKey> - </Component> - <Component Id="assoc_editwithidle_nocon_vista" Directory="InstallDirectory"> - <Condition>VersionNT = 600</Condition> - <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> - <RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> - <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> - </RegistryKey> - </Component> - </Feature> </Product> </Wix> diff --git a/Tools/msi/tcltk/tcltk_reg.wxs b/Tools/msi/tcltk/tcltk_reg.wxs new file mode 100644 index 0000000..e098927 --- /dev/null +++ b/Tools/msi/tcltk/tcltk_reg.wxs @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Fragment> + <ComponentGroup Id="idle_reg"> + <!-- We fix the guid of the Subcommands key so that it is correctly reference counted --> + <Component Id="assoc_subcommands" Directory="InstallDirectory" Guid="{57D47B4C-96E6-40A0-A958-57083D74423F}"> + <Condition>VersionNT > 600</Condition> + <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> + <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle" Name="Subcommands" Value="" Type="string" KeyPath="no" /> + </Component> + <Component Id="assoc_subcommands_nocon" Directory="InstallDirectory" Guid="{07061D85-9151-4FC4-BB78-13628020D026}"> + <Condition>VersionNT > 600</Condition> + <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle" Name="MUIVerb" Value="!(loc.EditMenu)" Type="string" KeyPath="yes" /> + <RegistryValue Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle" Name="Subcommands" Value="" Type="string" KeyPath="no" /> + </Component> + + <Component Id="assoc_editwithidle" Directory="InstallDirectory"> + <Condition>VersionNT > 600</Condition> + <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> + <RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> + <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> + </RegistryKey> + </Component> + <Component Id="assoc_editwithidle_nocon" Directory="InstallDirectory"> + <Condition>VersionNT > 600</Condition> + <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle\shell\edit$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> + <RegistryValue Name="MUIVerb" Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> + <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> + </RegistryKey> + </Component> + + <Component Id="assoc_editwithidle_vista" Directory="InstallDirectory"> + <Condition>VersionNT = 600</Condition> + <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.File\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> + <RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> + <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> + </RegistryKey> + </Component> + <Component Id="assoc_editwithidle_nocon_vista" Directory="InstallDirectory"> + <Condition>VersionNT = 600</Condition> + <RegistryKey Root="HKCR" Key="$(var.TestPrefix)Python.NoConFile\Shell\editwithidle$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)"> + <RegistryValue Value="!(loc.EditSubMenu)" Type="string" KeyPath="yes" /> + <RegistryValue Key="command" Value='"[PYTHONW_EXE]" -m idlelib "%L" %*' Type="string" /> + </RegistryKey> + </Component> + </ComponentGroup> + </Fragment> +</Wix> |