This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Windows Store app install registry keys have incorrect paths
Type: behavior Stage: resolved
Components: Installation, Windows Versions: Python 3.9, Python 3.8, Python 3.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: Hugues Valois, miss-islington, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2019-04-17 18:30 by Hugues Valois, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12865 merged steve.dower, 2019-04-17 18:52
PR 12867 merged miss-islington, 2019-04-17 21:32
Messages (6)
msg340426 - (view) Author: Hugues Valois (Hugues Valois) Date: 2019-04-17 18:30
When reading registry values under HKCU\SOFTWARE\Python\PythonCore\3.7 that were written by the Windows Store app install, all file and folder paths are incorrect.

Notice the extra [ ] as well as the missing backslash before python.exe and pythonw.exe

Paths read from registry are:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0[                    ]

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0python.exe[                    ]

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0pythonw.exe[                    ]


Paths on disk are:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0\python.exe

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0\pythonw.exe
msg340427 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-04-17 18:37
Can you get me the *exact* Windows version number you're using?

I added those to work around a bug where keys were being incorrectly trimmed, and that format seemed to evaluate to nothing correctly, but perhaps that bug has been fixed in the OS?
msg340435 - (view) Author: Hugues Valois (Hugues Valois) Date: 2019-04-17 18:55

Microsoft Windows [Version 10.0.17763.437]
msg340441 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-04-17 19:45
Great, thanks.

I have a fix in PR, but I'm going to do a "real" build to check. My machine is running a beta build, unfortunately, so I can't validate it against the older version. Might ping you for some help with that.
msg340449 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-04-17 21:31
New changeset 4c3efd9cd07194b5db2a60ae5951134cda8b69db by Steve Dower in branch 'master':
bpo-36649: Remove trailing spaces for registry keys when installed via the Store (GH-12865)
msg340450 - (view) Author: miss-islington (miss-islington) Date: 2019-04-17 21:52
New changeset 0d4f16d283fe3b8a183775ac7ac193988d971ad5 by Miss Islington (bot) in branch '3.7':
bpo-36649: Remove trailing spaces for registry keys when installed via the Store (GH-12865)
Date User Action Args
2022-04-11 14:59:14adminsetgithub: 80830
2019-04-18 15:39:11steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-04-17 21:52:18miss-islingtonsetnosy: + miss-islington
messages: + msg340450
2019-04-17 21:32:59miss-islingtonsetpull_requests: + pull_request12794
2019-04-17 21:31:38steve.dowersetmessages: + msg340449
2019-04-17 19:45:34steve.dowersetmessages: + msg340441
versions: + Python 3.8, Python 3.9
2019-04-17 18:55:13Hugues Valoissetmessages: + msg340435
versions: - Python 3.8, Python 3.9
2019-04-17 18:52:55steve.dowersetkeywords: + patch
stage: patch review
pull_requests: + pull_request12792
2019-04-17 18:37:59steve.dowersetassignee: steve.dower
messages: + msg340427
versions: + Python 3.8, Python 3.9
2019-04-17 18:30:48Hugues Valoiscreate