User Guide

469
OLE Automation Function Reference
Compile
Saves and compiles the current installation file to the given location. If the file is a
project file (.WSI, .WSM), this saves and compiles the file to get the resulting .MSI or
.MSM.
CreatePatch
Creates a patch file from an existing .PCP file created in Patch Creation.
DeleteFeature
Deletes a current feature in the installation. All new installations are created with a
feature named Complete. You can use the DeleteFeature function to delete this feature
and all its associated components.
Function
Prototype
BOOL AddWildcard(BSTR szFeature, BSTR szCondition, BSTR szIncludes, BSTR szExcludes,
BSTR szSrcDir, BSTR szDestDir, long lAttributes, long lCompAttributes)
Parameters szFeature: feature to which to add wildcard
szCondition: condition for file components created
szIncludes: list of wildcards to include, delimited by semicolons
szExcludes: list of wildcards to exclude, delimited by semicolons
szSrcDir: source directory to read for file list
szDestDir: destination directory in which to place files, can be directory key or destination
path
lAttributes: bit flags:
1 to include subdirectories from source path
2 to update new components with lCompAttributes
lCompAttributes: bit flags for new components (see AddComponent on page 461)
Return Value Nonzero if successful
Function Prototype BOOL Compile(BSTR szPathName)
Parameters szPathName: absolute path to the destination to which
the file is saved
Return Value Nonzero if successful
Function Prototype BOOL CreatePatch(BSTR bsPCPFile)
Parameters bsPCPFile: path to the .PCP file from which to create the
patch
Return Value TRUE if successful
Function Prototype BOOL DeleteFeature(BSTR szFeature)
Parameters SzFeature: name of the feature to delete
Return Value Nonzero if successful