Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1d4880db
Commit
1d4880db
authored
May 03, 2015
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enables shortcuts to be deselected when installing on Windows.
parent
2d0a69a4
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
100 additions
and
64 deletions
+100
-64
Doc/using/windows.rst
Doc/using/windows.rst
+3
-0
Tools/msi/bundle/Default.thm
Tools/msi/bundle/Default.thm
+10
-9
Tools/msi/bundle/Default.wxl
Tools/msi/bundle/Default.wxl
+3
-1
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
+2
-2
Tools/msi/bundle/bundle.wxs
Tools/msi/bundle/bundle.wxs
+1
-0
Tools/msi/bundle/packagegroups/doc.wxs
Tools/msi/bundle/packagegroups/doc.wxs
+2
-0
Tools/msi/bundle/packagegroups/exe.wxs
Tools/msi/bundle/packagegroups/exe.wxs
+2
-0
Tools/msi/doc/doc.wxs
Tools/msi/doc/doc.wxs
+4
-3
Tools/msi/doc/doc_files.wxs
Tools/msi/doc/doc_files.wxs
+3
-0
Tools/msi/exe/exe.wxs
Tools/msi/exe/exe.wxs
+5
-3
Tools/msi/exe/exe_files.wxs
Tools/msi/exe/exe_files.wxs
+4
-0
Tools/msi/tcltk/tcltk.wixproj
Tools/msi/tcltk/tcltk.wixproj
+1
-0
Tools/msi/tcltk/tcltk.wxs
Tools/msi/tcltk/tcltk.wxs
+12
-46
Tools/msi/tcltk/tcltk_reg.wxs
Tools/msi/tcltk/tcltk_reg.wxs
+48
-0
No files found.
Doc/using/windows.rst
View file @
1d4880db
...
...
@@ -115,6 +115,9 @@ of available options is shown below.
| | tho :envvar:`PATH` and ``.PY`` to | |
| | :envvar:`PATHEXT` | |
+---------------------------+--------------------------------------+--------------------------+
| Shortcuts | Create shortcuts for the interpreter,| 1 |
| | documentation and IDLE if installed. | |
+---------------------------+--------------------------------------+--------------------------+
| Include_doc | Install Python manual | 1 |
+---------------------------+--------------------------------------+--------------------------+
| Include_debug | Install debug binaries | 0 |
...
...
Tools/msi/bundle/Default.thm
View file @
1d4880db
...
...
@@ -65,15 +65,16 @@
<Checkbox
Name=
"InstallAllUsers"
X=
"185"
Y=
"51"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.InstallAllUsersLabel)
</Checkbox>
<Checkbox
Name=
"AssociateFiles"
X=
"185"
Y=
"76"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.AssociateFilesLabel)
</Checkbox>
<Checkbox
Name=
"PrependPath"
X=
"185"
Y=
"101"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.PrependPathLabel)
</Checkbox>
<Checkbox
Name=
"CompileAll"
X=
"185"
Y=
"126"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.PrecompileLabel)
</Checkbox>
<Checkbox
Name=
"Include_symbols"
X=
"185"
Y=
"151"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.Include_symbolsLabel)
</Checkbox>
<Checkbox
Name=
"Include_debug"
X=
"185"
Y=
"176"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.Include_debugLabel)
</Checkbox>
<Text
X=
"185"
Y=
"221"
Width=
"-11"
Height=
"17"
FontId=
"3"
>
#(loc.CustomLocationLabel)
</Text>
<Editbox
Name=
"TargetDir"
X=
"185"
Y=
"237"
Width=
"-91"
Height=
"21"
TabStop=
"yes"
FontId=
"3"
FileSystemAutoComplete=
"yes"
/>
<Button
Name=
"CustomBrowseButton"
X=
"-11"
Y=
"236"
Width=
"75"
Height=
"23"
TabStop=
"yes"
FontId=
"3"
>
#(loc.CustomBrowseButton)
</Button>
<Text
Name=
"CustomBrowseButtonLabel"
X=
"185"
Y=
"261"
Width=
"-91"
Height=
"35"
FontId=
"5"
Visible=
"no"
>
#(loc.CustomLocationHelpLabel)
</Text>
<Checkbox
Name=
"Shortcuts"
X=
"185"
Y=
"101"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.ShortcutsLabel)
</Checkbox>
<Checkbox
Name=
"PrependPath"
X=
"185"
Y=
"126"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.PrependPathLabel)
</Checkbox>
<Checkbox
Name=
"CompileAll"
X=
"185"
Y=
"151"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.PrecompileLabel)
</Checkbox>
<Checkbox
Name=
"Include_symbols"
X=
"185"
Y=
"176"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.Include_symbolsLabel)
</Checkbox>
<Checkbox
Name=
"Include_debug"
X=
"185"
Y=
"201"
Width=
"-11"
Height=
"20"
TabStop=
"yes"
FontId=
"3"
HideWhenDisabled=
"no"
>
#(loc.Include_debugLabel)
</Checkbox>
<Text
X=
"185"
Y=
"241"
Width=
"-11"
Height=
"17"
FontId=
"3"
>
#(loc.CustomLocationLabel)
</Text>
<Editbox
Name=
"TargetDir"
X=
"185"
Y=
"257"
Width=
"-91"
Height=
"21"
TabStop=
"yes"
FontId=
"3"
FileSystemAutoComplete=
"yes"
/>
<Button
Name=
"CustomBrowseButton"
X=
"-11"
Y=
"256"
Width=
"75"
Height=
"23"
TabStop=
"yes"
FontId=
"3"
>
#(loc.CustomBrowseButton)
</Button>
<Text
Name=
"CustomBrowseButtonLabel"
X=
"185"
Y=
"281"
Width=
"-91"
Height=
"35"
FontId=
"5"
Visible=
"no"
>
#(loc.CustomLocationHelpLabel)
</Text>
<Button
Name=
"Custom2BackButton"
X=
"185"
Y=
"-11"
Width=
"75"
Height=
"23"
TabStop=
"yes"
FontId=
"0"
>
#(loc.CustomBackButton)
</Button>
<Button
Name=
"CustomInstallButton"
X=
"-91"
Y=
"-11"
Width=
"95"
Height=
"23"
TabStop=
"yes"
FontId=
"0"
>
#(loc.CustomInstallButton)
</Button>
...
...
Tools/msi/bundle/Default.wxl
View file @
1d4880db
...
...
@@ -42,7 +42,8 @@ Continue?</String>
<String
Id=
"InstallAcceptCheckbox"
>
I
&
agree to the license terms and conditions
</String>
<String
Id=
"InstallJustForMeButton"
>
&
Install Now
</String>
<String
Id=
"InstallJustForMeButtonNote"
>
[DefaultJustForMeTargetDir]
Includes IDLE and pip
Includes IDLE, pip and documentation
Creates shortcuts and file associations
</String>
<String
Id=
"InstallCustomButton"
>
C
&
ustomize installation
</String>
<String
Id=
"InstallCustomButtonNote"
>
Choose location and features
</String>
...
...
@@ -68,6 +69,7 @@ Creates shortcuts and file associations</String>
<String
Id=
"Include_launcherHelpLabel"
>
Installs the global 'py' launcher to make it easier to start Python.
</String>
<String
Id=
"AssociateFilesLabel"
>
Associate
&
files with Python (requires the py launcher)
</String>
<String
Id=
"ShortcutsLabel"
>
Create shortcuts for installed applications
</String>
<String
Id=
"PrependPathLabel"
>
Add Python to
&
environment variables
</String>
<String
Id=
"ShortPrependPathLabel"
>
Add
&
Python [ShortVersion] to PATH
</String>
<String
Id=
"InstallAllUsersLabel"
>
Install as
&
Administrator
</String>
...
...
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
View file @
1d4880db
...
...
@@ -746,8 +746,8 @@ public: // IBootstrapperApplication
)
{
LONGLONG
install
;
if
(
wcscmp
(
wzFeatureId
,
L"AssociateFiles"
)
==
0
)
{
if
(
SUCCEEDED
(
_engine
->
GetVariableNumeric
(
L"AssociateFiles"
,
&
install
))
&&
install
)
{
if
(
wcscmp
(
wzFeatureId
,
L"AssociateFiles"
)
==
0
||
wcscmp
(
wzFeatureId
,
L"Shortcuts"
)
==
0
)
{
if
(
SUCCEEDED
(
_engine
->
GetVariableNumeric
(
wzFeatureId
,
&
install
))
&&
install
)
{
*
pRequestedState
=
BOOTSTRAPPER_FEATURE_STATE_LOCAL
;
}
else
{
*
pRequestedState
=
BOOTSTRAPPER_FEATURE_STATE_ABSENT
;
...
...
Tools/msi/bundle/bundle.wxs
View file @
1d4880db
...
...
@@ -58,6 +58,7 @@
<Variable
Name=
"Include_debug"
Value=
"0"
Persisted=
"yes"
bal:Overridable=
"yes"
/>
<Variable
Name=
"AssociateFiles"
Value=
"1"
Persisted=
"yes"
bal:Overridable=
"yes"
/>
<Variable
Name=
"Shortcuts"
Value=
"1"
Persisted=
"yes"
bal:Overridable=
"yes"
/>
<Variable
Name=
"PrependPath"
Value=
"0"
Persisted=
"yes"
bal:Overridable=
"yes"
/>
<Variable
Name=
"CompileAll"
Value=
"1"
Persisted=
"yes"
bal:Overridable=
"yes"
/>
...
...
Tools/msi/bundle/packagegroups/doc.wxs
View file @
1d4880db
...
...
@@ -6,6 +6,7 @@
SourceFile=
"doc.msi"
Compressed=
"$(var.CompressMSI)"
DownloadUrl=
"$(var.DownloadUrl)"
EnableFeatureSelection=
"yes"
ForcePerMachine=
"yes"
InstallCondition=
"InstallAllUsers and Include_doc"
>
<MsiProperty
Name=
"TARGETDIR"
Value=
"[TargetDir]"
/>
...
...
@@ -15,6 +16,7 @@
SourceFile=
"doc.msi"
Compressed=
"$(var.CompressMSI)"
DownloadUrl=
"$(var.DownloadUrl)"
EnableFeatureSelection=
"yes"
ForcePerMachine=
"no"
InstallCondition=
"not InstallAllUsers and Include_doc"
>
<MsiProperty
Name=
"TARGETDIR"
Value=
"[TargetDir]"
/>
...
...
Tools/msi/bundle/packagegroups/exe.wxs
View file @
1d4880db
...
...
@@ -7,6 +7,7 @@
ForcePerMachine=
"yes"
Compressed=
"$(var.CompressMSI)"
DownloadUrl=
"$(var.DownloadUrl)"
EnableFeatureSelection=
"yes"
InstallCondition=
"InstallAllUsers and (Include_exe or Include_launcher or Include_pip)"
>
<MsiProperty
Name=
"TARGETDIR"
Value=
"[TargetDir]"
/>
</MsiPackage>
...
...
@@ -32,6 +33,7 @@
ForcePerMachine=
"no"
Compressed=
"$(var.CompressMSI)"
DownloadUrl=
"$(var.DownloadUrl)"
EnableFeatureSelection=
"yes"
InstallCondition=
"not InstallAllUsers and (Include_exe or Include_launcher or Include_pip)"
>
<MsiProperty
Name=
"TARGETDIR"
Value=
"[TargetDir]"
/>
</MsiPackage>
...
...
Tools/msi/doc/doc.wxs
View file @
1d4880db
...
...
@@ -8,13 +8,14 @@
<PropertyRef
Id=
"REGISTRYKEY"
/>
<Feature
Id=
"DefaultFeature"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<ComponentGroupRef
Id=
"doc"
Primary=
"yes"
/>
</Feature>
<Feature
Id=
"Shortcuts"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<ComponentGroupRef
Id=
"doc"
/>
<?ifdef DocFilename ?>
<Component
Id=
"doc_shortcut"
Directory=
"MenuDir"
Guid=
"*"
>
<RegistryKey
Root=
"HKMU"
Key=
"[REGISTRYKEY]"
>
<RegistryValue
Key=
"Help\Main Python Documentation"
Type=
"string"
Value=
"[#python.chm]"
KeyPath=
"yes"
/>
</RegistryKey>
<RegistryValue
Root=
"HKMU"
Key=
"[REGISTRYKEY]\DocShortcuts"
Type=
"integer"
Value=
"1"
KeyPath=
"yes"
/>
<Shortcut
Id=
"python.chm"
Target=
"[#python.chm]"
Name=
"!(loc.ShortcutName)"
...
...
Tools/msi/doc/doc_files.wxs
View file @
1d4880db
...
...
@@ -6,6 +6,9 @@
<ComponentGroup
Id=
"doc"
>
<Component
Id=
"python.chm"
Directory=
"Doc"
Guid=
"*"
>
<File
Id=
"python.chm"
Name=
"$(var.DocFilename)"
KeyPath=
"yes"
/>
<RegistryKey
Root=
"HKMU"
Key=
"[REGISTRYKEY]"
>
<RegistryValue
Key=
"Help\Main Python Documentation"
Type=
"string"
Value=
"[#python.chm]"
/>
</RegistryKey>
</Component>
</ComponentGroup>
</Fragment>
...
...
Tools/msi/exe/exe.wxs
View file @
1d4880db
...
...
@@ -8,10 +8,13 @@
<PropertyRef
Id=
"REGISTRYKEY"
/>
<Feature
Id=
"DefaultFeature"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<ComponentGroupRef
Id=
"exe_python"
/>
<ComponentGroupRef
Id=
"exe_python"
Primary=
"yes"
/>
<ComponentGroupRef
Id=
"exe_txt"
/>
<ComponentGroupRef
Id=
"exe_icons"
/>
</Feature>
<Feature
Id=
"Shortcuts"
AllowAdvertise=
"no"
Title=
"!(loc.Title)"
Description=
"!(loc.Description)"
>
<ComponentGroupRef
Id=
"exe_python"
/>
<Component
Id=
"exe_shortcut"
Directory=
"MenuDir"
Guid=
"*"
>
<Shortcut
Id=
"python.exe"
Target=
"[#python.exe]"
...
...
@@ -19,8 +22,7 @@
Description=
"!(loc.ShortcutDescription)"
/>
<RemoveFolder
Id=
"Remove_MenuDir"
Directory=
"MenuDir"
On=
"uninstall"
/>
<RegistryKey
Root=
"HKMU"
Key=
"[REGISTRYKEY]"
>
<RegistryValue
Key=
"InstallPath"
Type=
"string"
Value=
"[InstallDirectory]"
KeyPath=
"yes"
/>
<RegistryValue
Key=
"InstallPath\InstallGroup"
Type=
"string"
Value=
"Python $(var.ShortVersion)"
/>
<RegistryValue
Key=
"InstallPath\InstallGroup"
Type=
"string"
Value=
"!(loc.ProductName)"
KeyPath=
"yes"
/>
</RegistryKey>
</Component>
</Feature>
...
...
Tools/msi/exe/exe_files.wxs
View file @
1d4880db
...
...
@@ -20,6 +20,10 @@
<ComponentGroup
Id=
"exe_python"
>
<Component
Id=
"python.exe"
Directory=
"InstallDirectory"
Guid=
"$(var.PythonExeComponentGuid)"
>
<File
Name=
"python.exe"
KeyPath=
"yes"
/>
<RegistryKey
Root=
"HKMU"
Key=
"[REGISTRYKEY]"
>
<RegistryValue
Key=
"InstallPath"
Type=
"string"
Value=
"[InstallDirectory]"
KeyPath=
"no"
/>
</RegistryKey>
</Component>
<Component
Id=
"pythonw.exe"
Directory=
"InstallDirectory"
Guid=
"$(var.PythonwExeComponentGuid)"
>
<File
Name=
"pythonw.exe"
KeyPath=
"yes"
/>
...
...
Tools/msi/tcltk/tcltk.wixproj
View file @
1d4880db
...
...
@@ -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"
/>
...
...
Tools/msi/tcltk/tcltk.wxs
View file @
1d4880db
...
...
@@ -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>
Tools/msi/tcltk/tcltk_reg.wxs
0 → 100644
View file @
1d4880db
<?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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment