When trying to install a patch a popup appears that says:
?The upgrade patch cannot be installed by the Windows Installer Service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program.Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch#
And in the verbose MSI log you see this:
?Error code 1642. Additional information is available in the log file ?
 is a placeholder that contains the full path to the build log file.
The Error has been known to occur in the following scenarios:
A.The patch that is being run was not build for any currently installed product on the machine.
B.The patch was not created to patch the version of the product that is currently installed.
A.You will need to install the correct product for this patch. The way you can determine that no product is on this machine that corresponds to this patch is that no MSI log will be created if you have logging enabled.
B.You have two options. You can install the correct version of your product for this patch. The other options is you can engineer this patch to allow this version that is currently installed to be patched with this patch. This can be done one of two ways below depending on the type of patch you have:
Patch Design view:
1.Go to the Patch Design view under Media
2.Select the patch configuration for your patch
3.Go to the Previous Setups section under your patch configuration
You will now need to add an additional item in the Previous Setups section.As an example there is a product with a base version of 1.0.This product has two patches that install versions 1.1 and 1.2 of your product.The first patch configurations latest version entry points to version 1.1 of the product and the previous version entry points to 1.0 of the product. The second patch configurations latest version entry pointed to version 1.2 of the product and the previous version entry points to 1.0 of the product.In this setup the second configuration will not work if version 1.1 is installed on the machine.To make this second configuration work against 1.1 an entry is needed in the Previous Setups section for version 1.1.
When you create your new QuickPatch you will get a wizard.In the wizard you need to choose the option ?Based on an existing QuickPatch project?.This is the only option in a quickpatch that will allow you to patch more versions than just the base MSI.