ISetPropertyCustomAction Copy link to this sectionLink to this section copied!

DeclarationCopy link to this sectionLink to this section copied!

ISetPropertyCustomAction: ICustomAction

OverviewCopy link to this sectionLink to this section copied!

This interface facilitates editing custom actions that set an installer property to a specified value.

PropertiesCopy link to this sectionLink to this section copied!

String PropertyName
Gets or sets the name of the property to be set.

String PropertyValue
Gets or sets the value assigned to the property .

ExampleCopy link to this sectionLink to this section copied!

    $advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProject("architect")
$custAct = $project.CustomActionsComponent.NewSetProperty("MY_PROPERTY", "SomeValue")
$custAct.PropertyName = "MY_PROPERTY"
$custAct.PropertyValue = "SomeValue"