Mastering I/O Port Mappings and File Association Concepts in Computers

Mastering I/O Port Mappings and File Association Concepts in Computers

Daniel Lv8

Mastering I/O Port Mappings and File Association Concepts in Computers

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.

IFileAssociations

https://techidaily.com

Declaration

IFileAssociations : IDispatch

https://techidaily.com

Overview

This interface is meant to manage file associations

Methods

NewDefaultProgram() returns IDefaultProgramFA
Creates a new default program setup.

RemoveDefaultProgram(IDefaultProgramFA DefaultProgram)
Removes a default program setup.

NewProgId() returns IProgIdFA
Creates a new ProgId setup.

RemoveProgId(IProgIdFA ProgId)
Removes a new ProgId setup.

Properties

Array DefaultPrograms
Gets the collection of default programs setups.

Array ProgIds
Gets the collection of ProgId setups.

https://techidaily.com

Example

$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$appExeFile = $project.FilesComponent.AddFileS(“appdir”, “D:\MyApp.exe”)
$progId = $project.FileAssociations.NewProgId()
$extension = $progId.NewExtension($appExeFile)
$verb = $extension.NewVerb()
$defaultProgrram = $project.FileAssociations.NewDefaultProgram()
$defaultProgrram.AddExtension($extension)

Copy

See also

ITextFileUpdatesComponent

ITextUpdateFile

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: Mastering I/O Port Mappings and File Association Concepts in Computers
  • Author: Daniel
  • Created at : 2024-10-10 02:25:53
  • Updated at : 2024-10-11 02:52:00
  • Link: https://fox-pages.techidaily.com/mastering-io-port-mappings-and-file-association-concepts-in-computers/
  • License: This work is licensed under CC BY-NC-SA 4.0.