Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: When deploying trough Intune MSI its not detected with MSI code mostly #770

Open
tylichmartin opened this issue Nov 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tylichmartin
Copy link

The problem

We are installing on all our computers winget autoupdate by the MSI but for more than half devices we have it with status failed. Wea re deploying also on fresh computers with Autopilot. I would like to ask you how your MSI is working its checking online the version and if its new version for example I downloaded and deploying MSI which I downloaded when version 2.0.0 was latest but today is 2.1.0 so it will automatically install the new one?

do you change MSI codes each new version?

What version of WAU has the issue?

not sure 2.0.0/2.1.0

What version of Windows are you using (ex. Windows 11 22H2)?

mix of versions

What version of winget are you using?

N/A

Log information

No response

Additional information

No response

@tylichmartin tylichmartin added the bug Something isn't working label Nov 20, 2024
@FaserF
Copy link
Contributor

FaserF commented Nov 24, 2024

What GUID are you using to detect WAU? As it auto updates (which changes the GUID), I would not recommend using the GUID as detection rule.
This is the GUID of V2.1.0: {0C581545-049B-40B8-A10C-318A9361AB74}
Try using file detection instead:
C:\Program Files\Winget-AutoUpdate\ServiceUI.exe

If you need to check the version, use registry:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\545185C0B9408B041AC013A83916BA47
-> Version

@KnifMelti
Copy link
Contributor

KnifMelti commented Nov 24, 2024

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\545185C0B9408B041AC013A83916BA47

That key is also changed when a MSI updates (based on the Product GUID)

@AndrewDemski-ad-gmail-com
Copy link
Contributor

AndrewDemski-ad-gmail-com commented Nov 24, 2024

That is right only the UpgradeCode is static.

<Package Language="1033" Name="Winget-AutoUpdate" Version="$(var.Version)" Manufacturer="Romanitho" UpgradeCode="BDDEA607-F4AF-4229-8610-16E3B6455FDC" InstallerVersion="200">

If you want to keep using the registry, then the path you must look for is in a different castle ;)
Upgrade codes are transcoded during installation and stored in HKCR
The place you are looking for is there:

HKEY_CLASSES_ROOT\Installer\UpgradeCodes\706AEDDBFA4F92246801613E6B54F5CD

Good luck guys.
AD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants