Windows Dev Center

Creating a Patch Creation Properties File

To reproduce the sample patch package, you need a software tool capable of creating and editing a Windows Installer patch package. Several patch package creation tools are available from independent software vendors. The example discussed in the following sections uses a Windows Installer database editor called Orca to author a patch creation properties file (.pcp extension). The .pcp file may be used with the utilities Msimsp.exe and Patchwiz.dll to generate a Windows Installer patch package (.msp extension). Orca, Msimsp.exe, and Patchwiz.dll are provided in the Windows SDK Components for Windows Installer Developers.

A blank patch creation properties file, template.pcp, is also provided with the SDK. Make a copy of template.pcp and rename this copy MNP2000.pcp. Use Orca or another database editor to enter the following data into the Properties table of MNP2000.pcp. The Properties table contains global settings for the patch package.

Properties Table

NameValue
AllowProductCodeMismatches1
AllowProductVersionMajorMismatches1
ApiPatchingSymbolFlags0x00000000
DontRemoveTempFolderWhenFinished1
IncludeWholeFilesOnly0
ListOfPatchGUIDsToReplace
ListOfTargetProductCodes*
PatchGUID{5406B219-A1AC-4BC4-8695-72292C8195AC}
PatchOutputPathc:\output.msp
PatchSourceListPatchSourceList

 

Use the database editor to enter the following data into the ImageFamilies table of MNP2000.pcp. The ImageFamilies table contains information to be added to the Media table during patching.

ImageFamilies Table

FamilyMediaSrcPropNameMediaDiskIdFileSequenceStartDiskPromptVolumeLabel
MNPappsMNPSrcPropName21000

 

Enter the following data into the UpgradedImages table of MNP2000.pcp. The UpgradedImages table contains information about the Upgraded image you created in Planning a Small Update Patch.

UpgradedImages Table

UpgradedMsiPathPatchMsiPathSymbolPathsFamily
MNP_fixedC:\Note_Installer\Patch\Upgraded\MNP2000.msiMNPapps

 

Enter the following data into the TargetImages table of MNP2000.pcp. The TargetImages table contains information about the Target image.

TargetImages Table

TargetMsiPathSymbolPathsUpgradedOrderProductValidateFlagsIgnoreMissingSrcFiles
MNP_errorC:\Note_Installer\Patch\Target\MNP2000.msiMNP_fixed10

 

For the sample patch package, leave the following tables in MNP2000.pcp blank.

UpgradedFiles_OptionalData Table

FamilyFileRanges Table

TargetFiles_OptionalData Table

ExternalFiles Table

UpgradedFilesToIgnore Table

Continue

 

 

Community Additions

ADD
Show:
© 2015 Microsoft