User Guide
475
OLE Automation Function Reference
VBScript Example (lines are numbered for clarity):
1. installer.SetProperty "ProductName", "My Product"
SetRestartIIS
Determines whether Microsoft Internet Information Server (IIS) is restarted for this
feature.
SetSilent
Compiles or saves an installation without displaying a progress dialog.
UseScriptFile
Enables a Macro Editor file to run macros in the Macro Editor. It also enables OLE
Automation events to be handled by the given macro file. The UseScriptFile function
should only be called from an external Visual Basic or VB program.
Function Prototype BOOL SetProperty(BSTR szProperty, BSTR szValue)
Parameters szProperty: case-sensitive property name
szValue: new value for property
Return Value Nonzero if successful
Function Prototype HRESULT SetRestartIIS(BSTR strFeature, VARIANT_BOOL
bRestart, VARIANT_BOOL *retval)
Parameters strFeature: name of the feature that, when installed,
causes IIS to restart
bRestart: TRUE to restart on installation of the feature;
FALSE to not restart
Return Value TRUE if successful; FALSE if not
Function Prototype void SetSilent(void)
Function Prototype void UseScriptFile(BSTR bsScriptFile)
Parameters bsScriptFile: Path to the script file to enable