Custom File Handling Actions: Innovative Approaches

Custom File Handling Actions: Innovative Approaches

Michael Lv8

Custom File Handling Actions: Innovative Approaches

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.

IFileCustomAction

Declaration

IFileCustomAction : ICustomAction

Overview

This interface facilitates editing custom action that allows the launching of a file into execution or opening of a folder (the same action that occurs when you double-click it in Explorer).

Properties

String FilePath - Gets or sets the full path of the file you want to launch.

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

String WorkingDirectory - Get or sets the working directory for launching executable file.

Bool HideProgramWindow - Gets or sets the property of the custom action to make main window or console of the launched program not visible.

Bool RunAsAdministrator - Gets or sets the property of the custom action to run as administrator.

Bool Use64BitLauncher - Gets or sets the property of the custom action to use a 64-bit process to launch the file.

Example

$advinst = new-object -com AdvancedInstaller $project = $advinst.CreateProjectS(“architect”) $project.FilesComponent.AddFileS(“appdir”, “D:\MyApp.exe”) $custAct = $project.CustomActionsComponent.NewLaunchFileFromDisk(“[#MyApp.exe]“)

https://techidaily.com

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 File Handling Actions: Innovative Approaches
  • Author: Michael
  • Created at : 2024-10-06 02:15:39
  • Updated at : 2024-10-10 23:52:11
  • Link: https://fox-web3.techidaily.com/custom-file-handling-actions-innovative-approaches/
  • License: This work is licensed under CC BY-NC-SA 4.0.