AddProperty Method (Advanced UI and Suite/Advanced UI)

InstallShield 2019 » Automation Interface » Advanced UI and Suite/Advanced UI

Project • This information applies to the following project types:

Advanced UI
Suite/Advanced UI

Edition • The Advanced UI project type is available in the Professional edition of InstallShield. The Suite/Advanced UI project type is available in the Premier edition of InstallShield. For information about the differences between these two project types, see Advanced UI Projects vs. Suite/Advanced UI Projects.

The AddProperty method adds an Advanced UI or Suite/Advanced UI property with a specified name to the project.

Syntax

AddProperty (Name As String) As ISWiProperty

Parameters

AddProperty Method Parameters

Parameter

Description

Name

Specify the name of the Advanced UI or Suite/Advanced UI property that you want to add.

Example

The following Visual Basic lines demonstrate this method:

Dim pProj As ISWiProject

Set pProj = CreateObject("ISWiAutoSuiteAutomation Interface Version.ISWiProject")

pProj.OpenProject "C:\MySetups\Project1.issuite"

 

Dim pProperty As ISWiProperty

Set pProperty = pProj.AddProperty ("MYPROP")

pProperty.Value = "MyPropValue"

 

pProj.SaveProject

pProj.CloseProject

Applies To

ISWiProject