Object Functions

InstallShield 2018 ยป InstallScript Language Reference

The object functions are available to assist you with initializing objects, as well as obtaining and setting status information for objects.

Object Functions

Function

Description

CoCreateObject

Initializes a COM object and returns a reference that can be assigned to a variable of type OBJECT by using the set keyword.

CoCreateObjectDotNet

The CoCreateObjectDotNet function has been deprecated. Calling this function is the same as calling the DotNetCoCreateObject function with a null string ("") for the szAppDomain parameter.

For more information, see DotNetCoCreateObject.

CoGetObject

Returns a reference to the specified COM object (as Visual Basic's GetObject function does); that reference can be assigned to a variable of type OBJECT by using the set keyword.

DotNetCoCreateObject

Calls functions in .NET assemblies without the assembly being registered for COM interoperability. This function, unlike the CoCreateObjectDotNet function, lets you specify the .NET application domain in which the .NET assemblies should be loaded and run.

DotNetUnloadAppDomain

Unloads the specified .NET application domain and releases any assemblies that are currently loaded into the specified application domain.

GetObject

Initializes an object and returns a reference that can be assigned to a variable of type OBJECT by using the set keyword.

GetObjectByIndex

Finds the installation's or object's subobject that is specified by nIndex and returns a reference that can be assigned to a variable of type OBJECT by using the set keyword.

GetObjectCount

Returns the number of subobjects contained by the object or installation.

GetStatus

Retrieves the current status of the object; that is, the current value of Status.Number.

IsObject

Checks whether a variable of type OBJECT has been assigned a reference to a valid object, using the CreateObject or GetObject functions.

SetStatus

Called in an object script to set the object's Status.Number and Status.Description properties.

SetStatusEx

Called in an object script to set the object's status properties.