InstallShield 2019 » InstallScript Language Reference
Project • This information applies to InstallScript projects.
The CoCreateObject function initializes the COM object named by szProgID and returns a reference that can be assigned to a variable of type OBJECT by using the set keyword.
Syntax
CoCreateObject ( szProgID );
Parameters
Parameter |
Description |
szProgID |
Specifies the program ID of the COM object to be initialized. |
Return Values
The reference can be assigned to a variable of type OBJECT by using the set keyword.
Additional Information
• | To check whether the object was initialized successfully, call the IsObject function. |
• | Any object variable can be released by setting the object variable to the value of NOTHING or reassigning the object with the CoCreateObject, CoCreateObjectDotNet, CoGetObject, or DotNetCoCreateObject functions. However, this does not automatically unload the library referenced by the object. You must call the Windows API, CoFreeLibrary, manually to free the library. Otherwise, the library remains loaded until the installation finishes. For more information, see Extending Your Installation with COM Objects. |
See Also
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |