Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python installer: "0x80070642 - User cancelled installation"

Whenever I try to install Python 3.6.3 (32-bit) to my Windows 7 laptop at work, the installer fails with the following error.

0x80070642 - User cancelled installation

This error consistently occurs half-way through the installation while installing "Python 3.6.3 Standard Library (32-bit)", as indicated by Python's progress bar turning red in the taskbar icon.

Looking at the installer log, I noticed a few entries which report Failed to secure cache path:, but searching these errors hasn't provided any additional details.

Error 0x80070005: Failed to secure cache path: C:\ProgramData\Package Cache\
Error 0x80070005: Failed to secure cache directory: C:\ProgramData\Package Cache\
Error 0x80070005: Failed to get cached path for package with cache id: {C093353B-F9EE-4A06-923D-C1B340B82886}v3.6.6119.0
Error 0x80070005: Failed to cache payload: launcher_AllUsers
Failed to cache payload: launcher_AllUsers from working path: C:\Users\SVASCE~1\AppData\Local\Temp\{973D88A7-E2AD-4A3C-AA24-79C5637B217A}\launcher_AllUsers, error: 0x80070005.
like image 916
Stevoisiak Avatar asked Oct 23 '17 16:10

Stevoisiak


People also ask

How do I fix error 0x80070642?

Check the settings of any third-party antivirus software or Firewall on your PC that could be blocking the installation. If the above has not fixed the problem, run the attached REG file to enable UAC (User Access Control) on your PC. Confirm all prompts. Restart Loupedeck software.

Why is my Python not installing?

The Python setup may fail if you don't have Windows Service Pack 1 (SP1) installed on your computer. It is a requirement for installing Python. Download Windows Service Pack 1. If it states an unspecified error, try downloading KB2999226.


1 Answers

I was able to resolve the error by unchecking 'Install launcher for all users'. Once unchecked, the installer worked as expected without any issue.

Installer with "install launcher for all users" unchecked

Presumably there was an issue with folder permissions, since this was on a managed work machine.

like image 92
Stevoisiak Avatar answered Oct 02 '22 04:10

Stevoisiak