Windows Installer

1642: The patch does not apply to any installed product

The MSP patch found no product on the client that it can upgrade. The base product is missing or has a version the patch does not target.

Exit code1642
NameERROR_PATCH_TARGET_NOT_FOUND
Logs to readAppEnforce.log, AppDiscovery.log, execmgr.log, MSI_verbose_log

What 1642 means

Exit code 1642 means the upgrade patch cannot be installed. The program to be upgraded may be missing, or the patch may update a different version of the program. Windows Installer opened the MSP and found no installed product that matches it.

You see it in Software Center on a failed install and in the console under Monitoring > Deployments. On the client, AppEnforce.log shows the command line and the exit code.

Common causes

  • The base product is not installed on the client.
  • The client has a version or a service pack level that this patch does not target.
  • The patch is for another edition, language or CPU type of the product.
  • The patch is already replaced by a newer one that is installed.
  • The deployment targets a collection of all devices and not only devices with the product.

How to fix 1642

  1. Check what is installed

    On the client, open Apps and Features and find the product. Note the exact version. Read the vendor's notes for the patch and check which versions it supports. Check 32-bit against 64-bit too.

  2. Add a requirement so the patch only runs where it fits

    Do not send the patch to machines without the product. Open the deployment type and go to the Requirements tab. Add a rule that checks for the base product, for example a file version or a registry value through a custom global condition.

    You can also deploy to a collection built from inventory. Query for devices that have the product at the right version.

  3. Use a dependency for the base product

    If every target machine should have the product, make the base product an application. Add it as a dependency on the patch's deployment type. SCCM then installs the base first where it is missing.

  4. Check the detection method

    If a newer patch is already on the client, your patch is not needed. Open AppDiscovery.log to see what detection found. Change the detection rule to accept the patched version or any newer version. Use "Greater than or equal to" on a file version.

  5. Read the verbose log

    Add /l*v C:\Windows\Temp\patch.log to the command and run it again on one client. The log lists the product codes the patch targets. Compare them with the product code that is installed.

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 '*Office*' } |
    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.