Skip to content

Commit 8c862e5

Browse files
authored
bpo-39631: Fix file association MIME type in the Windows installer (GH-20205)
Use text/x-python instead of text/plain to avoid issues with tools assuming that "ShellExecute(script)" is a non-executable operation.
1 parent 29251b7 commit 8c862e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/msi/launcher/launcher_reg.wxs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<RegistryValue KeyPath="yes" Root="HKMU" Key="Software\Python\PyLauncher" Name="AssociateFiles" Value="1" Type="integer" />
77

88
<ProgId Id="Python.File" Description="!(loc.PythonFileDescription)" Advertise="no" Icon="py.exe" IconIndex="1">
9-
<Extension Id="py" ContentType="text/plain">
9+
<Extension Id="py" ContentType="text/x-python">
1010
<Verb Id="open" TargetFile="py.exe" Argument="&quot;%L&quot; %*" />
1111
</Extension>
1212
</ProgId>
1313
<RegistryValue Root="HKCR" Key="Python.File\shellex\DropHandler" Value="{BEA218D2-6950-497B-9434-61683EC065FE}" Type="string" />
1414

1515
<ProgId Id="Python.NoConFile" Description="!(loc.PythonNoConFileDescription)" Advertise="no" Icon="py.exe" IconIndex="1">
16-
<Extension Id="pyw" ContentType="text/plain">
16+
<Extension Id="pyw" ContentType="text/x-python">
1717
<Verb Id="open" TargetFile="pyw.exe" Argument="&quot;%L&quot; %*" />
1818
</Extension>
1919
</ProgId>

0 commit comments

Comments
 (0)