PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Unable to update or uninstall

Open StewartRyanSony opened this issue 1 year ago • 7 comments

Microsoft PowerToys version

0.86.0.0

Installation method

Microsoft Store

Running as admin

No

Area(s) with issue?

General

Steps to reproduce

In the General Settings of PowerToys, click the Update button

&

Click Uninstall from Windows Apps & Features

✔️ Expected Behavior

I was expecting PowerToys to update after clicking update

I was expecting PowerToys to uninstall after clicking Uninstall

❌ Actual Behavior

When I click the update now button nothing happens. Watching resource I see that is is launching a file "powertoyssetup-0.88.0-x64.exe". If I launch that file manually I receive an error window (see attachment) informing me that Setup failed, with a link to a log file. The contents of the log file are as follows.

[1638:2B00][2025-02-05T07:21:03]i001: Burn v3.14.1.8722, Windows v10.0 (Build 19045: Service Pack 0), path: C:\Users\rstewart\AppData\Local\Temp{BE92B66E-4F8D-43FA-901B-180D9E2E3202}.cr\powertoyssetup-0.88.0-x64.exe [1638:2B00][2025-02-05T07:21:03]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles64Folder]PowerToys' [1638:2B00][2025-02-05T07:21:03]i000: Initializing string variable 'MsiLogFolder' to value '[LocalAppDataFolder]\Microsoft\PowerToys' [1638:2B00][2025-02-05T07:21:03]i000: Initializing version variable 'MinimumVersion' to value '0.0.0.0' [1638:2B00][2025-02-05T07:21:03]i000: Initializing version variable 'TargetPowerToysVersion' to value '0.88.0' [1638:2B00][2025-02-05T07:21:03]i000: Initializing version variable 'DetectedPowerToysVersion' to value '0.0.0.0' [1638:2B00][2025-02-05T07:21:03]i000: Initializing version variable 'DetectedPowerToysUserVersion' to value '0.0.0.0' [1638:2B00][2025-02-05T07:21:03]i000: Initializing version variable 'DetectedWindowsBuildNumber' to value '0' [1638:2B00][2025-02-05T07:21:03]i009: Command Line: '-burn.clean.room=C:\Users\rstewart\AppData\Local\Microsoft\PowerToys\Updates\powertoyssetup-0.88.0-x64.exe -burn.filehandle.attached=720 -burn.filehandle.self=724' [1638:2B00][2025-02-05T07:21:03]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\rstewart\AppData\Local\Microsoft\PowerToys\Updates\powertoyssetup-0.88.0-x64.exe' [1638:2B00][2025-02-05T07:21:03]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\rstewart\AppData\Local\Microsoft\PowerToys\Updates' [1638:2B00][2025-02-05T07:21:03]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\rstewart\AppData\Local\Temp\powertoys-bootstrapper-msi-0.88.0_20250205072103.log' [1638:2B00][2025-02-05T07:21:03]i000: Setting string variable 'WixBundleName' to value 'PowerToys (Preview) x64' [1638:2B00][2025-02-05T07:21:03]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation' [1638:6CD0][2025-02-05T07:21:03]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033 [1638:6CD0][2025-02-05T07:21:03]i000: Setting version variable 'WixBundleFileVersion' to value '0.88.0.0' [1638:2B00][2025-02-05T07:21:03]i100: Detect begin, 3 packages [1638:2B00][2025-02-05T07:21:03]i000: Setting version variable 'DetectedPowerToysUserVersion' to value '0.86.0.0' [1638:2B00][2025-02-05T07:21:03]i000: Setting version variable 'DetectedPowerToysVersion' to value '0.87.1.0' [1638:2B00][2025-02-05T07:21:03]i000: Setting string variable 'DetectedWindowsBuildNumber' to value '19045' [1638:2B00][2025-02-05T07:21:03]i000: Registry key not found. Key = 'Software\Microsoft\EdgeUpdate\Clients{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' [1638:2B00][2025-02-05T07:21:03]i000: Setting numeric variable 'HasWebView2PerUser' to value 0 [1638:2B00][2025-02-05T07:21:03]i000: Setting numeric variable 'HasWebView2PerMachine' to value 1 [1638:2B00][2025-02-05T07:21:04]i102: Detected related bundle: {d0661627-9d4d-4b01-a9f1-e7e22eab222f}, type: Upgrade, scope: PerMachine, version: 0.87.1.0, operation: MajorUpgrade [1638:2B00][2025-02-05T07:21:04]i102: Detected related bundle: {7eb5eb19-d85f-4c0b-94ff-e2947d4cb6fc}, type: Upgrade, scope: PerUser, version: 0.86.0.0, operation: MajorUpgrade [1638:2B00][2025-02-05T07:21:04]i052: Condition 'HasWebView2PerMachine OR HasWebView2PerUser' evaluates to true. [1638:2B00][2025-02-05T07:21:04]i103: Detected related package: {58BC4EC6-1441-4E21-9B22-26E79483F347}, scope: PerMachine, version: 0.87.1.0, language: 0 operation: MajorUpgrade [1638:2B00][2025-02-05T07:21:04]i103: Detected related package: {58BC4EC6-1441-4E21-9B22-26E79483F347}, scope: PerMachine, version: 0.87.1.0, language: 0 operation: MajorUpgrade [1638:2B00][2025-02-05T07:21:04]i101: Detected package: TerminatePowerToys, state: Absent, cached: None [1638:2B00][2025-02-05T07:21:04]i101: Detected package: WebView2, state: Present, cached: None [1638:2B00][2025-02-05T07:21:04]i101: Detected package: PowerToysSetup_0.88.0_x64.msi, state: Absent, cached: None [1638:2B00][2025-02-05T07:21:04]i052: Condition 'MinimumVersion >= DetectedPowerToysUserVersion' evaluates to false. [1638:2B00][2025-02-05T07:21:04]e000: PowerToys is already installed on this system for current user. We recommend first uninstalling that version before installing this one. [1638:2B00][2025-02-05T07:21:04]e000: Error 0x81f40001: Bundle condition evaluated to false: MinimumVersion >= DetectedPowerToysUserVersion [1638:2B00][2025-02-05T07:21:04]i199: Detect complete, result: 0x0

When I try to uninstall PowerToys to reinstall.

Other Software

No response

StewartRyanSony avatar Feb 05 '25 15:02 StewartRyanSony

We've found some similar issues:

  • #31764 , similarity score: 85%
  • #34153 , similarity score: 84%
  • #18110 , similarity score: 84%
  • #31214 , similarity score: 84%
  • #16211 , similarity score: 83%
  • #36638 , similarity score: 81%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

similar-issues-ai[bot] avatar Feb 05 '25 15:02 similar-issues-ai[bot]

Image

StewartRyanSony avatar Feb 05 '25 15:02 StewartRyanSony

Github suggested a similar issue which is very similar to my issue #31764. In this issue it was suggested to extract the MSI from the update package and run it to uninstall PowerToys, which seems to have worked for the reporter. I attempted to follow those instructions and extract the MSI package with the Wix tool however I receive the following error

"dark.exe : error DARK0240 : The file 'Updates' has an unexpected extension. Expected one of the following: '.msi, .msm, .msp, .mst, .exe, .pcp'. bin>

Issue Link: https://github.com/microsoft/PowerToys/issues/31764 Instructions Link: https://learn.microsoft.com/en-us/windows/powertoys/install#extracting-the-msi-from-the-bundle

StewartRyanSony avatar Feb 05 '25 16:02 StewartRyanSony

Update: I managed to extract the .msi file. I ran it and was able to select "Uninstall". The uninstall process ran without error and when I run the MSI again I am only presented with the option to install. However the application does not appear to actually be uninstalled.

The application still appears in the list of Apps & Features, where it still throws an error if I attempt to uninstall it. There are still registry entries for it, and the program files still appear under "C:\Program Files\PowerToys"

StewartRyanSony avatar Feb 05 '25 18:02 StewartRyanSony

@StewartRyanSony - It looks like you somehow have/had a per user install AND a machine wide install on the device, which is confusing the installer. When you uninstalled successfully, I believe it uninstalled the per user version but left the machine wide version (The one in Program Files).

Can you check %LOCALAPPDATA%\PowerToys to see if that directory exists and contains PowerToys executables?

snickler avatar Feb 13 '25 01:02 snickler

Hi @snickler ,

Sorry for the long delay, Yes the %LOCALAPPDATA%\PowerToys directory exists and contains PowerToys executables?

StewartRyanSony avatar Mar 05 '25 18:03 StewartRyanSony

Are you able to update to v0.89? /needinfo

cinnamon-msft avatar Mar 14 '25 17:03 cinnamon-msft

hi @cinnamon-msft,

I am unable to update to v0.89, I still receive the same error.

I'm pretty sure I need to remove one of the installations, probably the machine install, but since selecting Remove from Add or remove programs and running uninstall from the .msi doesn't work I am unsure of how to properly uninstall either of the installations.

StewartRyanSony avatar Mar 14 '25 18:03 StewartRyanSony