Custom Interactive Actions for Enhanced User Experience

Custom Interactive Actions for Enhanced User Experience

Joseph Lv8

Custom Interactive Actions for Enhanced User Experience

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.

ICustomAction

Declaration

ICustomAction : IDispatch

https://techidaily.com

Overview

This is meant to edit base custom action object.

Properties

String Name - Gets or sets the name.

Bool RunUnderLocalSystemAccount - Gets or sets Run under the LocalSystem account with full privileges (no impersonation) flag.

Bool WaitToFinish - Gets or sets the property of a custom action to execute asynchronous.

Bool FailInstallationIfReturnsError - Gets or sets the property of a custom action to cause installation fail on execution error.

String ExecutionTime - Gets or sets the installation execution time. Supported values are: “Immediate”, “Deferred”, “Rollback”, “Commit”.

ICustomActionSequence UiSequenceCondition - Gets the object that ease editing condition for execution on the “Dialogs Stage”.

ICustomActionSequence ExecuteSequenceCondition - Gets the object that ease editing condition for execution on the execution on the “Install Execution Stage”.

https://techidaily.com

Methods

CreateUiSequence(String aActionName) - Add sequence in the “Dialogs Stage” for execution after a specified action name.

RemoveUiSequence() - Removes UI sequence.

CreateExecuteSequence(String aActionName) - Add sequence in the “Install Execution Stage” for execution after a specified action name.

RemoveExecuteSequence() - Removes execution sequence.

https://techidaily.com

Example

  $advinst = new-object -com AdvancedInstaller

$project = $advinst.CreateProjectS(“architect”)
$appFile = $project.FilesComponent.AddFileS(“appdir”, “D:\MyApp.exe”)
$custAct = $project.CustomActionsComponent.NewLaunchInstalledFile($appFile)
$custAct.WaitToFinish = $true
$custAct.RunUnderLocalSystemAccount = $true
$custAct.CommandLine = “/RegServer”

Copy
https://techidaily.com

See also

ICustomActionsComponent

IFileCustomAction

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 Interactive Actions for Enhanced User Experience
  • Author: Joseph
  • Created at : 2024-10-06 22:19:14
  • Updated at : 2024-10-11 03:52:29
  • Link: https://fox-sure.techidaily.com/custom-interactive-actions-for-enhanced-user-experience/
  • License: This work is licensed under CC BY-NC-SA 4.0.