User Guide

471
OLE Automation Function Reference
GetProperty
Retrieves the value of a property. Property names in Windows Installer are case-
sensitive.
New
Creates a new Windows Installer file. This can only create .MSI and .MSM files.
NewEx
Creates a new Windows Installer project file (.WSI or .WSM).
Open
Opens the Windows Installer file at the given location. Note that transforms can only be
opened if the original transform was created with Wise for Windows Installer.
Function Prototype BSTR GetProperty(BSTR lpszProperty)
Parameters lpszProperty: case-sensitive property of which to
retrieve value
Return Value Value of given property; empty string if property does not
exist
Function Prototype BOOL New(short iType)
Parameters iType: specifies the type of document to create:
1 for installer database
3 for merge module
Return Value Nonzero if successful
Function Prototype BOOL NewEx(short iType, BOOL bProject)
Parameters iType: specifies the type of document to create:
1 for installer database project
3 for merge module project
bProject: TRUE to create a project file. Saves and
compiles; should be saved as .WSI or .WSM files.
Return Value Nonzero if successful
Function Prototype BOOL Open(BSTR szPathName)
Parameters szPathName: absolute path to .MSI, .MSM, .WSI, .WSM,
or Wise-created .MST file
Return Value Nonzero if successful