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

Fix software update when old MSI installer is missing (MSI exit code 1603) #4809

Open
kitlei-robert opened this issue Sep 15, 2024 · 0 comments
Labels
Command-Install Issue related to WinGet Install Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@kitlei-robert
Copy link

Brief description of your issue

Upgrading a software package should only require the installer of the new version but unfortunately, the old installer is also essential to be present. If it is not, automated installation fails. (In case of an interactive installation, a modal window pops up that allows you to point to it.)

As the process of upgrading breaks down unexpectedly, I classify this failure as a bug. Technically, though, fixing it will require some new code to be added rather than fixing some existing code, so you may also consider it a borderline feature request.

For further details, see UniGetUI issue 2742 whence I was redirected here. As that software simply calls winget, the issue described there can be simply understood in terms of this software. Also see the first comment and my answer to it there.

Steps to reproduce

  1. winget install <any software with an MSI installer mechanism such as LibreOffice 24.8.0>
  2. Wait for a bit for a newer version to appear. (Or install an old version to begin with in the previous step.)
  3. Make sure that the old .msi installer file is not present at its old location. (In an actual system, cleanups will remove such files.)
  4. Using winget, attempt upgrading to a newer version of LibreOffice, say 24.8.1.

Expected behavior

  1. Without prompting the user or stopping the upgrade, winget figures out that a deprecated version's .msi installer file for the package is required but missing, and downloads it.
    • Obviously, deal with corner cases such as not enough space.
  2. The old version is uninstalled without any hiccups, then the new version is installed.
  3. Housekeeping: the downloaded file is deleted.

Actual behavior

MSI Installer exit code 1603.

For further details, see UniGetUI issue 2742.

Environment

Windows Package Manager v1.8.1911
Windows: Windows.Desktop v10.0.22631.4169
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Sep 15, 2024
@denelon denelon added Command-Install Issue related to WinGet Install Issue-Feature This is a feature request for the Windows Package Manager client. and removed Needs-Triage Issue need to be triaged labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Install Issue related to WinGet Install Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

2 participants