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.

classification
Title: Unable to install Python 3.9.5 - Windows Server
Type: behavior Stage:
Components: Installation, Windows Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: RFuentes, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2021-05-26 08:53 by RFuentes, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
Python 3.9.5 (64-bit)_20210526084254.txt RFuentes, 2021-05-26 08:53 log
archive (1).zip RFuentes, 2021-06-02 08:23
Messages (4)
msg394421 - (view) Author: Ricardo Daniel Fuentes (RFuentes) Date: 2021-05-26 08:53
Hi,

I am Admin of a Windows Server 2012 R2, I have installed successfully Python 3.9.5 (64-bit) however I cannot uninstall it, I get the error: "0x80070659 - The installation is forbidden by system policy. Contact your system administrator"

I don't have any software system policies defined on this server so this could be a Python bug.

attached the log.

Regards,
Ricardo
msg394868 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-06-01 20:19
Unfortunately, I've got no idea whether it's failing to uninstall the MSI or if it's specific to removing the PATH environment variable. If you've still got the rest (no more than 2-3 I'd expect) of the uninstall log files in your %TEMP% directory that may show something.

Have you successfully installed/uninstalled other versions of Python before on this machine/OS?
msg394897 - (view) Author: Ricardo Daniel Fuentes (RFuentes) Date: 2021-06-02 08:23
Hi Steve,

I am attaching the latest log files I see on temp.

This is the first version of python I have installed on this server, we do
install and uninstall SW on this machine all the time. As we run the
operations and need to update sw there often.

Thanks,

Regards,
Ricardo

On Tue, Jun 1, 2021 at 10:19 PM Steve Dower <report@bugs.python.org> wrote:

>
> Steve Dower <steve.dower@python.org> added the comment:
>
> Unfortunately, I've got no idea whether it's failing to uninstall the MSI
> or if it's specific to removing the PATH environment variable. If you've
> still got the rest (no more than 2-3 I'd expect) of the uninstall log files
> in your %TEMP% directory that may show something.
>
> Have you successfully installed/uninstalled other versions of Python
> before on this machine/OS?
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue44238>
> _______________________________________
>
msg395022 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-06-03 17:03
I see this line in your log:

Rejecting product '{6504EEE5-2172-4D34-A76D-0372356396B4}': Non-assigned apps are disabled for non-admin users.

I'm not entirely sure what it means, or how you managed to install it under this apparent restriction, but it looks like the issue.

I'll have to take some time to research it, but someone else may figure it out first, so wanted to post this much.
History
Date User Action Args
2022-04-11 14:59:46adminsetgithub: 88404
2021-06-03 17:03:03steve.dowersetmessages: + msg395022
2021-06-02 08:23:39RFuentessetfiles: + archive (1).zip

messages: + msg394897
2021-06-01 20:19:34steve.dowersetmessages: + msg394868
2021-05-26 10:30:23christian.heimessetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows
2021-05-26 08:53:24RFuentessettype: behavior
2021-05-26 08:53:03RFuentescreate