InstallShield 2019 » Automation Interface
Project • The AddProperty method applies to the following project types.
• | Basic MSI |
• | DIM |
• | InstallScript MSI |
• | Merge Module |
The AddProperty method creates a Windows Installer property with the specified name in the current project.
Syntax
AddProperty (Name As String) As ISWiProperty
Parameters
Parameter |
Description |
Name |
Pass the name for the Windows Installer property that you want to add. |
Example
The following Visual Basic lines demonstrate the AddProperty method:
Dim pProj As ISWiProject
Set pProj = CreateObject("IswiAutoAutomation Interface Version.ISWiProject")
pProj.OpenProject "C:\MySetups\Project1.ism"
Dim pProperty As ISWiProperty
Set pProperty = pProj.AddProperty ("MYPROP")
pProperty.Value = "MyPropValue"
pProj.SaveProject
pProj.CloseProject
Applies To
• | ISWiProject |
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |