Microsoft KB Archive/283243

{|
 * width="100%"|

PRB: Internal Error Message 2351 When You Apply a Windows Installer Patch

 * }

Q283243

-

The information in this article applies to:


 * Microsoft Windows Installer, versions 1.0, 1.1, 1.2

-

SYMPTOMS
When you apply a Windows Installer patch to an installed product, you receive the following error message:

Error 2351: File key '[2]' not found in cabinet '[3]'. The installation cannot continue.

CAUSE
This problem can be caused by one of the following two scenarios, both of which are in the patch creation properties (.pcp) file that is used to create the patches:


 * The value for MediaSrcPropName in the ImageFamilies table is not unique.
 * The value for the FileSequenceStart field in the ImageFamilies table is incorrect.

RESOLUTION
You can edit the .pcp file with the Windows Installer SDK tool named Orca. (If you use a wizard from a third-party application to create the patch, the .pcp file is created automatically and is placed on your computer.) In the ImageFamilies table, do the following:


 * 1) Make the value for MediaSrcPropName unique for each .pcp file for each patch that is applied to the same product.
 * 2) Verify that the value for the FileSequenceStart field is correct. This field is the sequence number for the starting file of the patch. This same file sequence number must not exist in two patches for the same product. To ensure this, the value in this field must be greater than all sequence numbers that are used in previous patches or in the original installation package. You can determine the greatest sequence number in a patch if you add the total number of entries in the patch cabinet file to the FileSequenceStart number for that patch. Additionally, you can determine this if you look at the .ddf file that is generated by PatchWiz.dll during the creation of the patch.

For example, the first patch starts at 4 and includes 3 files or patches in its cabinet. The FileSequenceStart value of the next patch needs to be at least 7.