Custom Action with Attached Script: Boosting IATTACTIVITIES

Custom Action with Attached Script: Boosting IATTACTIVITIES

David Lv8

Custom Action with Attached Script: Boosting IATTACTIVITIES

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

IAttachedScriptFileCustomAction

Declaration

IAttachedScriptFileCustomAction: ICustomAction

Overview

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

Properties

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.

https://techidaily.com

Examples

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

Copy

See also

ISearch

IAdvinstProjectTypes

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Custom Action with Attached Script: Boosting IATTACTIVITIES
  • Author: David
  • Created at : 2024-10-07 00:41:49
  • Updated at : 2024-10-10 19:14:42
  • Link: https://fox-zaraz.techidaily.com/custom-action-with-attached-script-boosting-iattactivities/
  • License: This work is licensed under CC BY-NC-SA 4.0.