summaryrefslogtreecommitdiffstats
path: root/Tools/msi/launcher
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-05-19 12:20:39 (GMT)
committerGitHub <noreply@github.com>2020-05-19 12:20:39 (GMT)
commit8c862e51248c5ebfec787badec88eb58c9267e1e (patch)
tree540743af37894df48fcdf8f37a9c99015ca0a401 /Tools/msi/launcher
parent29251b787be93d47d06f58a9da65dd29f97fa632 (diff)
downloadcpython-8c862e51248c5ebfec787badec88eb58c9267e1e.zip
cpython-8c862e51248c5ebfec787badec88eb58c9267e1e.tar.gz
cpython-8c862e51248c5ebfec787badec88eb58c9267e1e.tar.bz2
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.
Diffstat (limited to 'Tools/msi/launcher')
-rw-r--r--Tools/msi/launcher/launcher_reg.wxs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/msi/launcher/launcher_reg.wxs b/Tools/msi/launcher/launcher_reg.wxs
index dace97e..e8d9d24 100644
--- a/Tools/msi/launcher/launcher_reg.wxs
+++ b/Tools/msi/launcher/launcher_reg.wxs
@@ -6,14 +6,14 @@
<RegistryValue KeyPath="yes" Root="HKMU" Key="Software\Python\PyLauncher" Name="AssociateFiles" Value="1" Type="integer" />
<ProgId Id="Python.File" Description="!(loc.PythonFileDescription)" Advertise="no" Icon="py.exe" IconIndex="1">
- <Extension Id="py" ContentType="text/plain">
+ <Extension Id="py" ContentType="text/x-python">
<Verb Id="open" TargetFile="py.exe" Argument="&quot;%L&quot; %*" />
</Extension>
</ProgId>
<RegistryValue Root="HKCR" Key="Python.File\shellex\DropHandler" Value="{BEA218D2-6950-497B-9434-61683EC065FE}" Type="string" />
<ProgId Id="Python.NoConFile" Description="!(loc.PythonNoConFileDescription)" Advertise="no" Icon="py.exe" IconIndex="1">
- <Extension Id="pyw" ContentType="text/plain">
+ <Extension Id="pyw" ContentType="text/x-python">
<Verb Id="open" TargetFile="pyw.exe" Argument="&quot;%L&quot; %*" />
</Extension>
</ProgId>