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.
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
-
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.
-
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.
-
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.
-
Check the detection method
If a newer patch is already on the client, your patch is not needed. Open
AppDiscovery.logto 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. -
Read the verbose log
Add
/l*v C:\Windows\Temp\patch.logto 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
$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
Turn any hex or decimal error code into its meaning, or search every code on this site.