[Package Issue]: Microsoft.UpdateHealthTools version 5.69
Please confirm these before moving forward
- [x] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- [x] I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
Since last week (when @DandelionSprout's pull request #413747 was published), winget upgrade shows Microsoft.UpdateHealthTools as an available upgrade. When employees from my organisation try to install the updated version on their Windows 11 machines, the install fails.
Afterwards winget continues to show version 5.69 as an available update.
This is possibly related to #416884, but there is some confusion over whether that issue concerns behaviour on Windows 10 only.
Steps to reproduce
winget upgrade Microsoft.UpdateHealthTools
Actual behavior
Found Microsoft Update Health Tools [Microsoft.UpdateHealthTools] Version 5.69
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Installer failed with exit code: 1603
The log file shows
... (cut) ...
Started SavePackageInformation
Failed to create base registry key SOFTWARE\Microsoft\Windows\CurrentVersion\UpdateHealthTools
Error: -2147024891
CustomAction SavePackageInformation returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 14:08:53: SavePackageInformation. Return value 3.
Action ended 14:08:53: INSTALL. Return value 3.
... (cut) ...
MSI (s) (A8:10) [14:08:53:617]: Product: Microsoft Update Health Tools -- Installation failed.
MSI (s) (A8:10) [14:08:53:617]: Windows Installer installed the product. Product Name: Microsoft Update Health Tools. Product Version: 5.69.0.0. Product Language: 0. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
Expected behavior
Microsoft.UpdateHealthTools Version 5.69 installs without error.
Environment
Windows Package Manager v1.29.280
Windows: Windows.Desktop v10.0.26200.9168
Package: Microsoft.DesktopAppInstaller v1.29.280.0
Screenshots and Logs
No response
For reasons unclear to everyone (Me included), Microsoft's public MSI distribution of Microsoft Update Health Tools involved 1 ZIP file with 3 MSI files inside, with each of the 3 having different designated OS requirements in their filenames: One for W10, 1 for W11 21H2, and 1 for W11 ≥22H2.
I also know from personal experience that when Microsoft distributed it through Windows Update as well, a lot of users ended up with MUHT versions for older OS versions than intended. As such, many probably still have the W10 or 21H1 versions still installed. Microsoft giving all 3 MSI-s the same post-installation name managed to make things even more confusing.
If your (or others') organisation allows employees to uninstall existing apps, could you/them try to first run winget rm Microsoft.UpdateHealthTools --force, then (if that succeeds) run winget install Microsoft.UpdateHealthTools, and see if that goes well or not?
Thank you for looking into this @DandelionSprout.
If your (or others') organisation allows employees to uninstall existing apps, could you/them try to first run
winget rm Microsoft.UpdateHealthTools --force, then (if that succeeds) runwinget install Microsoft.UpdateHealthTools, and see if that goes well or not?
So, I tried winget rm Microsoft.UpdateHealthTools (without --force), and was prompted to elevate. Admin credentials were provided and it uninstalled without issue. I can confirm from "Settings > Apps > Installed apps" that it has gone.
When I subsequently try winget install Microsoft.UpdateHealthTools, I receive exactly the same error output and error numbers on the command line and in the log file as described in my original post, and the application is not installed.
So perhaps the problem resides with the update it was trying to install, and not the previous version it was removing to update.
The thing about error 1603, is that it's a very generic and common error for MSI installers. It has a million possible causes, and often boils down to "The computer says no".
Chances are you'd have to look into the MSI installer's logs as well, as opposed to Winget's logs.
Indeed, winget error 1603 simply returns
0x00000643 Fatal error during installation.
I've looked in the system event viewer. When I attempt to install, "Information" entries originating from MsiInstaller are produced that say
Product: Microsoft Update Health Tools -- Installation failed.
and
Windows Installer installed the product. Product Name: Microsoft Update Health Tools. Product Version: 5.69.0.0. Product Language: 0. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
(I think the second message is misleading. It means it tried but failed to install the product.)
I've checked my "LocalSettings > Temp" folder for log files too. Attempting to install it using winget produces a mat-debug-#####.log file, but sadly, that file remains empty.
So, the install process doesn't appear to be providing any other useful information that would help diagnose why the install is failing. The only clue provided seems to be
Failed to create base registry key SOFTWARE\Microsoft\Windows\CurrentVersion\UpdateHealthTools
from the winget log. Since the installer displayed a prompt requesting elevation to admin, it should have permission to do this. I don't know why this would fail.
Running tests on my PC a few minutes ago, installation fails when running Winget/PowerShell/Terminal as non-admin, but succeeded on my end when running Winget as admin.
I've submitted a PR to modify the Microsoft.UpdateHealthTools package now, so that it at least shows an "Expect a prompt." notice when trying to install it as non-admin. It's unlikely to be a full fix, however.
Here Microsoft says that these "Update Health Tools" are only needed on Windows versions earlier than 24H2 to support expedited updates. For Windows 11, versions 24H2 and later, don't install the Update Health Tools on devices to support expedited updates.
https://learn.microsoft.com/en-us/intune/device-updates/windows/configure-expedite-policy?tabs=summary#update-health-tools
I'm currently running 25H2 (26200.9168) so no idea why it's installed on my PC. Can we maybe exclude it from 24H2 and later?
Easier said than done. Most likely it ended up on your PC while it was still running 23H2, as Microsoft never came up with a way to automatically uninstall the app when updating to 24H2, despite being the ones who automatically installed it in the first place.
You can safely uninstall it with winget rm Microsoft.UpdateHealthTools, which I feel very confident will not have Windows automatically reinstall it again.
With all 3 known sub-apps of Update Health Tools now added to Winget, I presume this issue report has been solved unless there's something important I'm unaware of.
Well, I suggested to my colleagues to remove it with winget rm Microsoft.UpdateHealthTools, and they reported back that it had since somehow disappeared from their machines. So, maybe a Windows 11 Update tidied it up. I'm not sure. Either way, this issue is resolved for us, so I'll close this.