IAttachedFileCustomAction Copy link to this sectionLink to this section copied!

DeclarationCopy link to this sectionLink to this section copied!

IAttachedFileCustomAction : ICustomAction

OverviewCopy link to this sectionLink to this section copied!

This interface facilitates editing custom action for launching attached executable file.

PropertiesCopy link to this sectionLink to this section copied!

String AttachedSourceFile - Gets or sets the source path to the custom action executable file.

String CommandLine - Get or sets the command line arguments for launching executable file.

ExamplesCopy link to this sectionLink to this section copied!

$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$custAct = $project.CustomActionsComponent.NewLaunchAttachedFile("D:\my_tool.exe")
$custAct.CommandLine = "command line arguments"