IAttachedScriptFileCustomAction

DeclarationCopy link to this sectionLink to this section copied!

IAttachedScriptFileCustomAction: ICustomAction

OverviewCopy link to this sectionLink to this section copied!

This interface facilitates editing custom action for launching attached script 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 ScriptType - Get or sets the script type. Supported values are: javascript, javascript64, vbscript, vbscript64.

String FunctionName - Gets or sets the name of a function JavaScript or VBScript type.

String ActionData - Gets or sets the value of the CustomActionData property. This property can be retrieved as a regular property inside Deferred custom actions and it is available only for DLL, JScript and VBScript custom actions. A common usage scenario is to use the CustomActionData property in Rollback Custom Actions since they are also deferred.

ExamplesCopy link to this sectionLink to this section copied!

$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$custAct = $project.CustomActionsComponent.NewLaunchAttachedScriptFile("D:\my_script.vbs")
$custAct.FunctionName = "MyFunction"