ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

updating via winget is failing

I use AI 19.9 corporate to create an exe with msi insinde (with multiple languages)
This can be installed with
winget install <prodcut id>

But updating to the latest version fails:
1.
winget upgrade --all
dose list my product with newer version available, but it does not download nor install the new version

2.
winget upgrade <product id>
downloads the installation but then stops with
"A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version."

Nothing has changed Ion the installatin of the newer version except some newer files in the program folder, the version number, and the product code.

Same occurs with another installation.

What could be thge problem/how to fix that.

Thank you
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: updating via winget is failing

Hello Chris,

Not entirely sure this is a problem of Advanced Installer, but let's give this a quick test and see.

Would you be able to provide the following:

- a copy of the AIP file

- a test-case that I can follow in order to reproduce this on my end (e.g. how to install v1, how to install v2, etc.)

by e-mail at support at advancedinstaller dot com so I can further test and investigate this?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: updating via winget is failing

Hello Chris,

First of all, thank you very much for providing the files.

I have tested this and can confirm the behavior you encountered.

I will also post about this here so that this will be public for future users facing a similar scenario.

First of all, please note that this is not an issue with your installation package, but rather winget's upgrade-compatibility guard tripping.

I have tried to create a verbose log of the winget upgrade process and in the log, I found the following:
2026-08-27 16:18:25.065 <V> [CLI ] Installer [X86,exe,Machine,] not applicable: Installed package type 'msi' is not compatible with installer type exe
Note: to create the log file, run the upgrade process with the --verbose-logs option, e.g.:

Code: Select all

winget upgrade --id JumpingBytes.ClipboardMaster --verbose-logs
then you can find the log here:

Code: Select all

%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
As we can see, winget is tripping and sees your installed package type as an MSI.

My guess would be that winget gets the info from here:
Screenshot_180.png
Screenshot_180.png (177.2 KiB) Viewed 16732 times

As you might be aware, Advanced Installer is a Windows Installer authoring tool, which means we utilize this technology for the packages that we create. Even if you create an EXE package, behind the scenes that's still an MSI that we create a wrapper over.

As per my understanding so far, to work around this issue, we need to set the AppsAndFeaturesEntries entry in our winget manifest. In that entry, we need to declare the following: ProductCode/UpgradeCode/DisplayVersion.

This should theoretically make winget able to correlate the EXE manifest to the MSI-based ARP entry without relying on the generic installer-type match.

Could you please try this and let me know if it helps?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Re: updating via winget is failing

that solved the issue, thanks a lot
ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Re: updating via winget is failing

ah no, still not fixed!

I have these settings in the installer.yaml:
InstallerType: exe
Scope: machine
...
ElevationRequirement: elevationRequired

InstallationMetadata:
DefaultInstallLocation: '%ProgramFiles(x86)%\Jumping Bytes\Clipboard Master'

Installers:
- Architecture: x86
InstallerUrl: https://www.jumpingbytes.com/down/Clipb ... erInst.exe
InstallerSha256: 0769fb9ca1ce7abfd684c7d9ccbf3504bbe1ce473633fbf8fdea5ee02acc77e7

AppsAndFeaturesEntries:
- DisplayName: Clipboard Master
Publisher: Jumping Bytes
InstallerType: msi
ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Re: updating via winget is failing

ah ok,
with the local manifest files this works fine.
but they have not yet been updated at the public github repository.
will check tomorrow
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: updating via winget is failing

Hello Chris,

Thank you for your followup on this!

Glad to hear it worked locally and I'm keeping my fingers crossed that this will work once it is updated in the repository.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Re: updating via winget is failing

is working now
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: updating via winget is failing

Hello Chris,

Thank you for your followup on this!

Glad to hear that!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”