User Guide
460
OLE Automation Function Reference
OLE Automation Function Reference
"
Professional and Enterprise Editions only. The Macro Editor is not available
in the Visual Studio integrated editor.
This section lists the OLE Automation functions you can call with a macro to automate
Wise for Windows Installer. Each function is briefly described and followed by a table.
Most tables include: function prototype, parameters, and return values.
Also see OLE Automation Object Reference on page 476.
AddComPlusApp
Adds an MTS or COM+ application to the installation. It is an earlier version of the
AddComPlusApp2 function. See MTS/COM+ Page on page 232.
AddComPlusApp2
Adds an MTS or COM+ application to the installation. It is a later version of the
AddComPlusApp function with the ability to use existing source paths. See MTS/COM+
Page on page 232.
Function
Prototype
HRESULT AddComPlusApp(BSTR strFeature, BSTR strName, VARIANT_BOOL bServer, BSTR
strClientMachine, VARIANT_BOOL bRefreshOnCompile, VARIANT_BOOL *retval)
Parameters strFeature: name of the feature to add the MTS/COM+ application to
strName: MTS/COM+ application name or ID
bServer: TRUE to install the server portion of the MTS/COM+ application; FALSE to install
the client portion
strClientMachine: for a client installation, the name of the computer on the network that
contains the MTS/COM+ server application to which the client connects
bRefreshOnCompile:
TRUE to refresh the MTS/COM+ application from your computer’s Component Services
control panel each time you compile the installation
FALSE to copy the MTS/COM+ application information to the installation only when this
function is called
Return Value TRUE if successful; FALSE if not
Function
Prototype
HRESULT AddComPlusApp2(BSTR strFeature, BSTR strName, BSTR strRemoteServerName,
ComPlusAppAttributes lAttr, VARIANT_BOOL *retval)