Skip to content

Commit 15ed1f8

Browse files
Update launcher_reg.wxs
1 parent 17718b0 commit 15ed1f8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Tools/msi/launcher/launcher_reg.wxs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,30 @@
4545
</ProgId>
4646
<RegistryValue Root="HKCR" Key="Python.NoConArchiveFile\shellex\DropHandler" Value="{BEA218D2-6950-497B-9434-61683EC065FE}" Type="string" />
4747
</Component>
48+
49+
<Component Id="NewPythonFileContext"
50+
Directory="LauncherInstallDirectory"
51+
Guid="{A6E928C2-5534-41B1-B5FA-2D661FDFCA9B}">
52+
<!-- Associate .py with our ProgId if not already done -->
53+
<RegistryValue Root="HKCR"
54+
Key=".py"
55+
Name=""
56+
Type="string"
57+
Value="Python.File"
58+
KeyPath="yes" />
59+
<!-- The ShellNew hook for “New > Python File” -->
60+
<RegistryValue Root="HKCR"
61+
Key=".py\ShellNew"
62+
Name="NullFile"
63+
Type="string"
64+
Value="" />
65+
<!-- Ensure the Python.File description is set -->
66+
<RegistryValue Root="HKCR"
67+
Key="Python.File"
68+
Name=""
69+
Type="string"
70+
Value="Python Script" />
71+
</Component>
4872
</ComponentGroup>
4973
</Fragment>
5074
</Wix>

0 commit comments

Comments
 (0)