PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Cannot upgrade and cannot uninstall

Open Alfacharlie1973 opened this issue 9 months ago • 12 comments

Microsoft PowerToys version

0.78.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

Installer

Steps to reproduce

Powertoys shows that a new version is available (0.80.1), when I try to install from the General Tab, I get the following error "An error occurred trying to install this update". if I click on try again to download and install, the application closes down and nothing happens.

I have then tried to install by downloading from Github. I tried both the Machine wide and per user installations. Both of them lead to the same error "PowerToys is already installed on this system for current user. We recommend first uninstalling that version before installing this one."

I then went to Settings in Win 11 to uninstall the current version. Surprisingly it appears twice (both of them having been installed on the same date). When I try to uninstall I get exactly the same error as above.

Attached are the logs from both processes. I just changed the name of the user folder for confidentiality reasons (but the structure of the name is consistent).

powertoys-bootstrapper-msi-0.78.0_20240428171545 - Uninstall failed.txt

powertoys-bootstrapper-msi-0.80.1_20240428171947 - Install failed.txt

✔️ Expected Behavior

Successful uninstall / install

❌ Actual Behavior

Detailed already in steps above. "PowerToys is already installed on this system for current user. We recommend first uninstalling that version before installing this one."

Other Software

No response

Alfacharlie1973 avatar Apr 28 '24 21:04 Alfacharlie1973

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Apr 28 '24 21:04 github-actions[bot]

I'm having the same issue.

mikex99 avatar May 03 '24 20:05 mikex99

Looking into the logs the issue seems to related to the installation variable MinimumVersion

At the beginning of the installation it is set to 0: Initializing version variable 'MinimumVersion' to value '0.0.0.0' It then detects that version 0.78 is present (even if I have tried to delete manually every trace of PowerToys in my computer) Setting version variable 'DetectedPowerToysUserVersion' to value '0.78.0.0' And then it fails because the detected version is higher than the minimum one Condition 'MinimumVersion >= DetectedPowerToysVersion' evaluates to false. PowerToys is already installed on this system for all users. We recommend first uninstalling that version before installing this one. Bundle condition evaluated to false: MinimumVersion >= DetectedPowerToysVersion

Alfacharlie1973 avatar May 13 '24 05:05 Alfacharlie1973

On Sunday, I decided to manually delete all traces of PowerToys in my computer. Deleted folders, entries in the registry and a number of other odd locations where data/files were being stored. I was still unable to install the new version so I just left it there. I rebooted my computer today as part of other updates being installed and, somehow, the 0.78 version has reinstalled. What triggered it, I cannot explain. Trying to install 0.80.1 still fails.

Alfacharlie1973 avatar May 14 '24 12:05 Alfacharlie1973

Can you try downloading the installer (https://github.com/microsoft/PowerToys/releases) for your version (Try using PowerToysUserSetup and if this doesn't work PowerToysSetup). This should give you an option to uninstall. Please tell me if it works. /needinfo

Aaron-Junker avatar Jun 15 '24 20:06 Aaron-Junker

I just tried with both the Machine-wide and user versions (v81.1) and I got the exact same error.

I spent an hour with the support team in my company trying to remove all traces of PowerToys, however, the logs show that 0.78 seems to be installed.

I also do not yet understand why the logs close with an error about Minimum Version (0.0.0) not being higher than Detected Version (0.78.0)

Alfacharlie1973 avatar Jun 15 '24 22:06 Alfacharlie1973

I just tried with both the Machine-wide and user versions (v81.1) and I got the exact same error.

I spent an hour with the support team in my company trying to remove all traces of PowerToys, however, the logs show that 0.78 seems to be installed.

I also do not yet understand why the logs close with an error about Minimum Version (0.0.0) not being higher than Detected Version (0.78.0)

Can you try it with the 0.78 installer specifically?

/needinfo

Aaron-Junker avatar Jun 15 '24 22:06 Aaron-Junker

I tried again with the 0.78 installer and got the very same 'unsuccessful' outcome

powertoys-bootstrapper-msi-0.78.0_20240616023928.log

Alfacharlie1973 avatar Jun 16 '24 00:06 Alfacharlie1973

I just did an old fashioned registry and file system purge of powertoys and I was able to upgrade no problem.

mikex99 avatar Jun 16 '24 00:06 mikex99

Open to any suggestions on how to do a better registry and file system purge. There are traces everywhere.

Even better what is the registry entry that the installation process is checking to determine the installed version?

Regards, Alfredo


Alfacharlie1973 avatar Jun 16 '24 15:06 Alfacharlie1973

I had the same problem with v0.70. Neither of two installed instances (per user and global?) could be deleted using suggested methods including running the PowerShell cleanup script. The same error (Error 0x81f40001: Bundle condition evaluated to false: MinimumVersion >= DetectedPowerToysVersion) was reported. Fortunately, after running Program Install and Uninstall troubleshooter (and restarting my laptop because the explorer crashed during this process) I was able to uninstall both instances of PowerToys and install the newest one without any problem.

arturek avatar Aug 17 '24 11:08 arturek

I had the same problem with v0.70. Neither of two installed instances (per user and global?) could be deleted using suggested methods including running the PowerShell cleanup script. The same error (Error 0x81f40001: Bundle condition evaluated to false: MinimumVersion >= DetectedPowerToysVersion) was reported. Fortunately, after running Program Install and Uninstall troubleshooter (and restarting my laptop because the explorer crashed during this process) I was able to uninstall both instances of PowerToys and install the newest one without any problem.

OMG It's work. Thanks a lot 🥹

nataondev avatar Sep 06 '24 06:09 nataondev