Repository: PowerToys
Issue: upgrade failed from 0.78 to 0.79,  both version shown and neither can 0.79 run or unstaill any of them
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.79.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

Installer

### Steps to reproduce

auto-upgrade on 0.78.0 to 0.79.0
It doesn't show any uninstall just try to install 0.79 and in the control panel it really shown 2 version.

Now it still running 0.78.0 and shown 0.79 upgrade avaiable.
But if I tried to uninstall any of them, neither can work, log as below:

0.79
[4780:5648][2024-03-11T08:16:49]i001: Burn v3.14.0.8606, Windows v10.0 (Build 22631: Service Pack 0), path: C:\ProgramData\Package Cache\{59e46a63-dd66-40fd-aac3-82fae310e988}\PowerToysSetup-0.79.0-x64.exe
[4780:5648][2024-03-11T08:16:49]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles64Folder]PowerToys'
[4780:5648][2024-03-11T08:16:49]i000: Initializing string variable 'MsiLogFolder' to value '[LocalAppDataFolder]\Microsoft\PowerToys\'
[4780:5648][2024-03-11T08:16:49]i000: Initializing version variable 'MinimumVersion' to value '0.0.0.0'
[4780:5648][2024-03-11T08:16:49]i000: Initializing version variable 'TargetPowerToysVersion' to value '0.79.0'
[4780:5648][2024-03-11T08:16:49]i000: Initializing version variable 'DetectedPowerToysVersion' to value '0.0.0.0'
[4780:5648][2024-03-11T08:16:49]i000: Initializing version variable 'DetectedPowerToysUserVersion' to value '0.0.0.0'
[4780:5648][2024-03-11T08:16:49]i000: Initializing version variable 'DetectedWindowsBuildNumber' to value '0'
[4780:5648][2024-03-11T08:16:49]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{59e46a63-dd66-40fd-aac3-82fae310e988}\PowerToysSetup-0.79.0-x64.exe" -burn.filehandle.attached=552 -burn.filehandle.self=560 /uninstall'
[4780:5648][2024-03-11T08:16:49]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\U326876\AppData\Local\Temp\powertoys-bootstrapper-msi-0.79.0_20240311081649.log'
[4780:5648][2024-03-11T08:16:49]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[4780:4CB8][2024-03-11T08:16:49]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[4780:4CB8][2024-03-11T08:16:49]i000: Setting version variable 'WixBundleFileVersion' to value '0.79.0.0'
[4780:5648][2024-03-11T08:16:49]i100: Detect begin, 3 packages
[4780:5648][2024-03-11T08:16:49]i000: Setting version variable 'DetectedPowerToysUserVersion' to value '0.78.0.0'
[4780:5648][2024-03-11T08:16:49]i000: Setting version variable 'DetectedPowerToysVersion' to value '0.79.0.0'
[4780:5648][2024-03-11T08:16:49]i000: Setting string variable 'DetectedWindowsBuildNumber' to value '22631'
[4780:5648][2024-03-11T08:16:49]i000: Registry key not found. Key = 'Software\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
[4780:5648][2024-03-11T08:16:49]i000: Setting numeric variable 'HasWebView2PerUser' to value 0
[4780:5648][2024-03-11T08:16:49]i000: Setting numeric variable 'HasWebView2PerMachine' to value 1
[4780:5648][2024-03-11T08:16:49]i102: Detected related bundle: {2229436b-e304-42ae-befd-275c080f99dd}, type: Upgrade, scope: PerUser, version: 0.78.0.0, operation: None
[4780:5648][2024-03-11T08:16:49]i052: Condition 'HasWebView2PerMachine OR HasWebView2PerUser' evaluates to true.
[4780:5648][2024-03-11T08:16:49]i101: Detected package: TerminatePowerToys, state: Absent, cached: None
[4780:5648][2024-03-11T08:16:49]i101: Detected package: WebView2, state: Present, cached: None
[4780:5648][2024-03-11T08:16:49]i101: Detected package: PowerToysSetup_0.79.0_x64.msi, state: Present, cached: Complete
[4780:5648][2024-03-11T08:16:49]i052: Condition 'MinimumVersion >= DetectedPowerToysUserVersion' evaluates to false.
[4780:5648][2024-03-11T08:16:49]e000: PowerToys is already installed on this system for current user. We recommend first uninstalling that version before installing this one.
[4780:5648][2024-03-11T08:16:49]e000: Error 0x81f40001: Bundle condition evaluated to false: MinimumVersion >= DetectedPowerToysUserVersion
[4780:5648][2024-03-11T08:16:49]i199: Detect complete, result: 0x0



0.78
[231C:522C][2024-03-11T08:18:05]i001: Burn v3.14.0.6526, Windows v10.0 (Build 22631: Service Pack 0), path: C:\Users\U326876\AppData\Local\Package Cache\{2229436b-e304-42ae-befd-275c080f99dd}\PowerToysUserSetup-0.78.0-x64.exe
[231C:522C][2024-03-11T08:18:05]i000: Initializing string variable 'InstallFolder' to value '[LocalAppDataFolder]PowerToys'
[231C:522C][2024-03-11T08:18:05]i000: Initializing string variable 'MsiLogFolder' to value '[LocalAppDataFolder]\Microsoft\PowerToys\'
[231C:522C][2024-03-11T08:18:05]i000: Initializing version variable 'MinimumVersion' to value '0.0.0.0'
[231C:522C][2024-03-11T08:18:05]i000: Initializing version variable 'TargetPowerToysVersion' to value '0.78.0'
[231C:522C][2024-03-11T08:18:05]i000: Initializing version variable 'DetectedPowerToysVersion' to value '0.0.0.0'
[231C:522C][2024-03-11T08:18:05]i000: Initializing version variable 'DetectedPowerToysUserVersion' to value '0.0.0.0'
[231C:522C][2024-03-11T08:18:05]i000: Initializing version variable 'DetectedWindowsBuildNumber' to value '0'
[231C:522C][2024-03-11T08:18:05]i009: Command Line: '"-burn.clean.room=C:\Users\U326876\AppData\Local\Package Cache\{2229436b-e304-42ae-befd-275c080f99dd}\PowerToysUserSetup-0.78.0-x64.exe" -burn.filehandle.attached=560 -burn.filehandle.self=576 /uninstall'
[231C:522C][2024-03-11T08:18:05]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\U326876\AppData\Local\Temp\powertoys-bootstrapper-msi-0.78.0_20240311081805.log'
[231C:522C][2024-03-11T08:18:05]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[231C:0EAC][2024-03-11T08:18:05]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[231C:0EAC][2024-03-11T08:18:05]i000: Setting version variable 'WixBundleFileVersion' to value '0.78.0.0'
[231C:522C][2024-03-11T08:18:05]i100: Detect begin, 3 packages
[231C:522C][2024-03-11T08:18:05]i000: Setting version variable 'DetectedPowerToysUserVersion' to value '0.78.0.0'
[231C:522C][2024-03-11T08:18:05]i000: Setting version variable 'DetectedPowerToysVersion' to value '0.79.0.0'
[231C:522C][2024-03-11T08:18:05]i000: Setting string variable 'DetectedWindowsBuildNumber' to value '22631'
[231C:522C][2024-03-11T08:18:05]i000: Registry key not found. Key = 'Software\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
[231C:522C][2024-03-11T08:18:05]i000: Setting numeric variable 'HasWebView2PerUser' to value 0
[231C:522C][2024-03-11T08:18:05]i000: Setting numeric variable 'HasWebView2PerMachine' to value 1
[231C:522C][2024-03-11T08:18:05]i102: Detected related bundle: {59e46a63-dd66-40fd-aac3-82fae310e988}, type: Upgrade, scope: PerMachine, version: 0.79.0.0, operation: None
[231C:522C][2024-03-11T08:18:05]i052: Condition 'HasWebView2PerMachine OR HasWebView2PerUser' evaluates to true.
[231C:522C][2024-03-11T08:18:05]i101: Detected package: TerminatePowerToys, state: Absent, cached: None
[231C:522C][2024-03-11T08:18:05]i101: Detected package: WebView2, state: Present, cached: None
[231C:522C][2024-03-11T08:18:05]i101: Detected package: PowerToysUserSetup_0.78.0_x64.msi, state: Present, cached: Complete
[231C:522C][2024-03-11T08:18:05]i052: Condition 'MinimumVersion >= DetectedPowerToysVersion' evaluates to false.
[231C:522C][2024-03-11T08:18:05]e000: PowerToys is already installed on this system for all users. We recommend first uninstalling that version before installing this one.
[231C:522C][2024-03-11T08:18:05]e000: Error 0x81f40001: Bundle condition evaluated to false: MinimumVersion >= DetectedPowerToysVersion
[231C:522C][2024-03-11T08:18:05]i199: Detect complete, result: 0x0


How can we deal with them?

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_