microsoft / microsoft/winget-cli

Better handling for MSI Error 1638

Open
#1,971 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Catalog-Health Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

MSI Error 1638 occurs when I attempt to install over a newer version.

https://docs.microsoft.com/en-us/windows/win32/msi/preventing-an-old-package-from-installing-over-a-newer-version

Steps to reproduce

Try to install an MSI based package when a newer version is already installed.

Expected behavior

I should be informed the package I am attempting to install is an older version.

Actual behavior

The package is downloaded and executed, and I get an error 1638

Environment
PS C:\Users\denelon> winget --info
Windows Package Manager (Preview) v1.3.431-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22557.1
Package: Microsoft.DesktopAppInstaller v1.18.431.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the issue. Start by reproducing installation of an older MSI package over a newer installed version, then trace the install and upgrade handling for MSI Error 1638. Done means the CLI identifies the older package before execution and reports that a newer version is already installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.