Windows Installer

1638: Another version of this product is already installed

The MSI found another version of the same product on the client and stopped. In SCCM fix the detection method or remove the other version first.

Exit code1638
NameERROR_PRODUCT_VERSION
Logs to readAppEnforce.log, AppDiscovery.log, execmgr.log

What 1638 means

Exit code 1638 means "Another version of this product is already installed. Installation of this version cannot continue". The MSI has the same product code as an installed product, but it is a different build of the package.

You see it in Software Center on a failed install and in the console under Monitoring > Deployments. On the client, AppEnforce.log shows the exit code. It shows up often with runtimes such as the Visual C++ Redistributable, where a newer version is already there.

Common causes

  • A newer version of the product is installed, and you deploy an older one.
  • The same version is installed from a rebuilt MSI that kept the product code.
  • The detection method looks for one exact version, so it does not see the newer version and SCCM tries to install.
  • A vendor update replaced the product outside SCCM.

How to fix 1638

  1. See which version is installed

    On the client, open Apps and Features and find the product. Note the version. Compare it with the version you deploy. Run the code block if you want the product code too.

  2. Fix the detection method

    If the installed version is the same or newer, the client does not need the install. Open the deployment type and go to the Detection Method tab. Change the rule so it accepts newer versions. For a file or registry version, use the operator "Greater than or equal to" and not "Equals".

    After the change, run "Application Deployment Evaluation Cycle" on the client. AppDiscovery.log should now report the application as detected.

  3. Remove the other version first

    If you really need your version, the other one must go first. Create an application for the old version with a working uninstall command. Then set a supersedence on the new application and tick the uninstall option. SCCM then removes the old version before it installs the new one.

    You can also run the uninstall at the start of your install script.

  4. Stop deploying older versions

    If the client has a newer version from the vendor's own updater, decide which side owns updates. Either turn off the vendor updater or stop deploying the older package.

Commands that help

Show the installed version and product code (change the name filter) · PowerShell
$keys = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*',
        'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
Get-ItemProperty -Path $keys -ErrorAction SilentlyContinue |
    Where-Object { $_.DisplayName -like '*Visual C++*' } |
    Select-Object DisplayName, DisplayVersion, PSChildName
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.