45

I'm trying to install python3.6 on windows server 2016. I have downloaded python-3.6.6rc1-amd64-webinstall.Followed the default setting to install it. But during installation step I got the error message as 0x80070659-This installation is forbidden by system policy. Contact your system administrator. I have talked with system administrator but he is not aware of this policy. Can you please guide me to resolve this error?

TechSavy
1,4303 gold badges23 silver badges50 bronze badges
asked Nov 15, 2018 at 12:21
2
  • 2
    you don't have permission to install it, you need administrator account Commented Nov 15, 2018 at 12:23
  • 4
    Left click and run as administrator? Commented Nov 15, 2018 at 12:23

4 Answers 4

100

I experienced this very same problem, and right-clicking the setup file, then Run As Administrator solved it. (Credit to @Igwilliams, who suggested this in the comments).

This was actually very frustrating for me, because I was logged in as an administrator, but apparently that still wasn't enough, I had to do the Run as Administrator thing as well.

answered Sep 5, 2019 at 14:35
Sign up to request clarification or add additional context in comments.

8 Comments

How might I uninstall the previous version, which requires elevation too?
My answer assumes you already have adminstrator privileges, are you saying you're being prevented from uninstalling python while being an administrator?
Exactly so. In the end I deleted the directory and removed python from my PATH and then installed from scratch. Not ideal though
This solved it for me. The installer asked me for admin privileges, and I granted them, but it was not enough. It only worked when I used right-klick and run as admin. (Python 3.7.9-64 on Windows Server 2016)
As for uninstallation, I ran into same issue. When it fails, click the link taking you to the logfile. At the top, look for the binary that was executed, in my case "C:\users\primary\AppData\Local\Package Cache\{1babc3bc-6a32-44f7-bf4d-60eec36c9ad1}\python-3.6.1.exe". Navigate to this path, and you can right-click and launch this binary as Administrator. This time, uninstall will be successful.
|
1

Login to the system using admin credentials and try installing it. Or when installing provide admin credentials to install it.

answered Nov 15, 2018 at 13:17

Comments

0
  • Run regedit
  • Browse the registry to HKLM\Software\Policies\Microsoft\Windows\Installer
  • Create DisableMSI, type: REG_DWORD, value = 0 (0 should allow you to install, it was originally 1)
Maximouse
4,4031 gold badge17 silver badges30 bronze badges
answered Aug 1, 2020 at 13:02

3 Comments

As I understand it this disables the msi installer: Turn off Windows Installer
@DABL03 "-- The "Never" option (value 0) indicates Windows Installer is fully enabled." Windows Server is value 1 by default, so regular users can't install unmanaged (non-dotnet) applications.
This works for me The python installer (*.exe) extract some MSI files, when try to install them, it's the error after install as normal user, I changed the value to 1 for safety reasons
0

As @Cashiuus mentioned in the comments on the answer by @Liudvikas, open the logfile and navigate to the binary mentioned at the top-

The path should look like this:

C:\Users\ABC\AppData\Local\Package Cache\{5d57524f-af24-49a7-b90b-92138880481e}

Run the binary as administrator. It should uninstall properly now.

answered Jan 6, 2025 at 11:37

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.