Personalized File Operations: Tailored Action Techniques

Personalized File Operations: Tailored Action Techniques

Michael Lv8

Personalized File Operations: Tailored Action Techniques

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

https://techidaily.com

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).

https://techidaily.com

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: Personalized File Operations: Tailored Action Techniques
  • Author: Michael
  • Created at : 2024-10-09 19:11:22
  • Updated at : 2024-10-10 18:38:09
  • Link: https://fox-where.techidaily.com/personalized-file-operations-tailored-action-techniques/
  • License: This work is licensed under CC BY-NC-SA 4.0.