AddObject Method
InstallShield 2022 » Automation Interface
Project:This information applies to InstallScript projects.
The AddObject method adds an InstallScript object with the specified moniker to the current feature.
Syntax
AddObject (Moniker As String) As ISWiObject
Parameters
Parameter |
Description |
Moniker |
Pass the moniker for the InstallScript object that you want to add. To get an InstallScript object's moniker, create a new Professional project in the IDE and add the InstallScript object to a feature, then go to the Direct Editor view's ISFeatureExtended table and see the Moniker column. |
Example
The following Visual Basic lines demonstrate the AddObject method:
Dim pProj As ISWiProject
Set pProj = CreateObject("IswiAutoAutomation Interface Version.ISWiProject")
pProj.OpenProject "C:\MySetups\Project1.ism"
Dim pFeature As ISWiFeature
Dim pObject As ISWiObject
Set pFeature = pProj.ISWiFeatures.Item(2)
Set pObject = pFeature.AddObject ("@ismk2:755142B0-1EB4-11D3-8B09-00105A9846E9")
pProj.SaveProject
pProj.CloseProject
Applies To
• | ISWiFeature |