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: Add\Remove Programs entry is not created.
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.6
Status: closed Resolution: duplicate
Dependencies: Superseder: Windows All Users installation places uninstaller in user profile
View: 25166
Assigned To: Nosy List: WilliamM, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2018-02-08 03:25 by WilliamM, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg311814 - (view) Author: WilliamM (WilliamM) Date: 2018-02-08 03:25
I've been writing a script for the Python 3.X install package and encountering some issues due to that.

I'm using the installation property InstallAllUsers=1 but find that Python is still placing it's Add/Remove programs entry in user context.

Applications usually write system level installs to HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall or HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

What I'm encountering with Python is that it's writing them to HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall

This is causing some difficulty as it prevents software such as SCCM, KACE, Altiris from being able to detect the main program install or a user with elevated privileges from being able to remove it.

Deploying the software will end up with the entry located the System Account's registry within HKU\S-5-1-18\Software\Microsoft\WIndows\CurrentVersion\Uninstall\{Prodct GUID}

To add a bit more info, only the dependencies show up in HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

Python 3.6.4 TCL/TK support (32-Bit)
Python 3.6.4 Development Libraries (32-Bit)
Python 3.6.5 Documentation (32-Bit)
Python 3.6.4 Utility Scripts (32-Bit)
Python 3.6.4 Executables (32-Bit)
Python launcher (32-Bit)
Python 3.6.4 Test Suite (32-Bit)
Python 3.6.4 Core Interpreter  (32-Bit)
Python 3.6.4 Standard Library (32-Bit)

However the "Python 3.6.4 (32-Bit)" Install that has the installation and bundled uninstall package is located in HKU\S-1-5-18\Software\Microsoft\WIndows\CurrentVersion\Uninstall\{9218130b-5ad0-4cf7-82be-6993cfd6cb84}

Is there a known workaround/solution for this or something that can be resolved in a later build?
msg311846 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2018-02-08 19:34
This is the same as issue25166

It can't be fixed easily (Wix doesn't actually support this), but I have some ideas that have been looking okayish. Still hoping to get it to work fully for 3.7, but as it affects the installer we may not have enough time for testing to get it into this release.
Date User Action Args
2022-04-11 14:58:57adminsetgithub: 76972
2018-02-08 19:34:02steve.dowersetstatus: open -> closed
superseder: Windows All Users installation places uninstaller in user profile
messages: + msg311846

resolution: duplicate
stage: resolved
2018-02-08 03:25:27WilliamMcreate