Guide on Utilizing the IInstalledDll Interface for Dynamic Library Calls

Guide on Utilizing the IInstalledDll Interface for Dynamic Library Calls

Michael Lv8

Guide on Utilizing the IInstalledDll Interface for Dynamic Library Calls

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.

IInstalledDllFunctionCallCustomAction

https://techidaily.com

Declaration

IInstalledDllFunctionCallCustomAction: ICustomAction

https://techidaily.com

Overview

This interface facilitates editing custom action for calling function from installed native dll .

https://techidaily.com

Properties

IFile InstalledDll - Gets or sets the installed dll file of the custom action.

String FunctionName - Gets or sets the name of a function to call .

String ActionData - Gets or sets the value of the CustomActionData property. This property can be retrieved as a regular property inside Deferred custom actions and it is available only for DLL, JScript and VBScript custom actions. A common usage scenario is to use the CustomActionData property in Rollback Custom Actions since they are also deferred .

https://techidaily.com

Example

  $advinst = new-object -com AdvancedInstaller

$project = $advinst.CreateProjectS(“architect”)
$dllFile = $project.FilesComponent.AddFileS(“appdir\my_app”, “D:\test.dll”)
$custAct = $project.CustomActionsComponent.NewInstalledNativeDllFunctionCall($dllFile)
$custAct.FunctionName = “ExecuteTest”

Copy

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: Guide on Utilizing the IInstalledDll Interface for Dynamic Library Calls
  • Author: Michael
  • Created at : 2024-10-09 05:07:14
  • Updated at : 2024-10-11 05:40:35
  • Link: https://fox-where.techidaily.com/guide-on-utilizing-the-iinstalleddll-interface-for-dynamic-library-calls/
  • License: This work is licensed under CC BY-NC-SA 4.0.