Custom Action Sequence Design: Optimizing Your Unique User Experience

Custom Action Sequence Design: Optimizing Your Unique User Experience

Daniel Lv8

Custom Action Sequence Design: Optimizing Your Unique 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.

ICustomActionSequence

Declaration

ICustomActionSequence : IDispatch

https://techidaily.com

Overview

This interface facilitates editing custom action sequence condition editing.

https://techidaily.com

Properties

Bool FirstInstall - The custom action will execute during installation of the package if no older version was found on the target computer.

Bool Upgrade - Gets or sets custom action condition to execute during installation of the package only if an older version was found on the target computer.

Bool Uninstall - Gets or sets custom action condition to execute during removal of the package.

Bool Maintenance - Gets or sets custom action condition to execute during a repair or customization of the package.

String Condition - Gets or sets a boolean expression which must be true for the custom action to be executed.

Examples

  $advinst = new-object -com AdvancedInstaller

$project = $advinst.CreateProjectS(“architect”)
$appFile = $project.FilesComponent.AddFileS(“appdir”, “D:\MyApp.exe”)
$custAct = $project.CustomActionsComponent.NewLaunchInstalledFile($appFile)
$exeSeqCond = $custAct.ExecuteSequenceCondition
$exeSeqCond.Upgrade = $false
$exeSeqCond.Condition = ‘AI_DETECTED_DOTNET_VERSION >= “4.0.1”‘

Copy
https://techidaily.com

See also

ICustomActionsComponent

ICustomAction

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 Sequence Design: Optimizing Your Unique User Experience
  • Author: Daniel
  • Created at : 2024-10-10 09:13:51
  • Updated at : 2024-10-17 09:21:31
  • Link: https://fox-pages.techidaily.com/custom-action-sequence-design-optimizing-your-unique-user-experience/
  • License: This work is licensed under CC BY-NC-SA 4.0.