Custom Action Implementation in IDotNet Framework
Custom Action Implementation in IDotNet Framework
Table of Contents
- Introduction
- Registration
- Using Advanced Installer
- GUI
- Working with Projects
- Installer Project
- Patch Project
- Merge Module Project
- Updates Configuration Project
- Windows Store App Project
- Modification Package Project
- Optional Package Project
- Windows Mobile CAB Projects
- Visual Studio Extension Project
- Software Installer Wizards - Advanced Installer
- Visual Studio integration
- Alternative to AdminStudio/Wise
- Replace Wise
- Migrating from Visual Studio Installer
- Keyboard Shortcuts
- Shell Integration
- Command Line
- Advanced Installer PowerShell Automation Interfaces
* IAdvancedInstaller
* IAdvinstProject
* IProductDetails
* IFolder
* ILaunchConditionsComponent
* IFilesComponent
* IIniFilesComponent
* IShortcut
* ITempFile
* IXmlFile
* IDirectoryMember
* IRegistryComponent
* IInstallParameters
* IBuildComponent
* ITextFileUpdatesComponent
* ITextUpdateFile
* ITextUpdateAppendOrCreate
* ITextUpdateReplace
* IFileAssociations
* IDefaultProgramFA
* IExtensionFA
* IProgIdFA
* IVerbFA
* IEnvironment
* IEnvironmentVariable
* IProductCode
* IUpgradeCode
* IMergeModulesComponent
* IMergeModule
* IDigitalSignature
* ICustomActionsComponent
* ICustomAction
* ICustomActionSequence
* IAttachedFileCustomAction
* IAttachedScriptFileCustomAction
* IDotNetCustomAction
* IExeWithWorkingDirectoryCustomAction
* IFileCustomAction
* IInstalledFileCustomAction
* IInstalledScriptFileCustomAction
* IPowershellScriptFile
* IPowershellAttachedScriptFile
* IInstallCertificate
* IUninstallCertificate
* IFileFromPropertyCustomAction
* IScriptFileFromPropertyCustomAction
* IAttachedDllFunctionCallCustomAction
* IInstalledDllFunctionCallCustomAction
* ITranslationsComponent
* IDriversComponent
* ISearch
* IServices
* IOrganizationComponent
* IComComponent
* IRemoveFilesComponent
* IRemoveFile
* IUpdatesProject
* IUpdaterComponent
* IPatchProject
* IPropertyComponent
* IProperty
* IPathVariable
* IMsixComponent
* IMsixDependencies
* IMsixDriverDependency
* IMsixDriverConstraint
* IMsixExternalDependency
* IMsixPackageDependency
- Features and Functionality
- Tutorials
- Samples
- How-tos
- FAQs
- Windows Installer
- Deployment Technologies
- IT Pro
- MSIX
- Video Tutorials
- Advanced Installer Blog
- 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.
IDotNetCustomAction
Declaration
IDotNetCustomAction : ICustomAction
Overview
This is a custom action that launches a .NET Assembly. The assembly must have a class that inherits the Installer class with the RunInstaller attribute set to true.
Properties
IFile AssemblyFile - Gets or sets the .net assembly file to the custom action executable file that will be launched with the specified parameters.
String ConfigFilePath - Get or sets the path that represents the location where the .NetCustActLauncher will create the assembly’s configuration file. The configuration file contains the .NetFramework required version..
Array
Methods
AddParameter(String aName, String aValue) returns INetParameter - Creates and adds new parameter to custom action parameters collection.
RemoveParameter(INetParameter aParameter) - Removes and destroys the specified parameter.
Examples
$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$dllFile = $project.FilesComponent.AddFileS(“appdir”, “D:\DotNetCustomAction.dll”)
$custActs = $project.CustomActionsComponent.NewLaunchInstalledFile($dllFile)
There are 2 custom actions because “DotNetCustomAction.dll” is build for “Any CPU” platform
$custActs[0].ConfigFilePath = “[TempFolder]DotNetCustomAction.dll_Config.xml”
$custActs[0].AddParameter(“new parameter”, “parameter value”)
$custActs[1].ConfigFilePath = “[TempFolder]DotNetCustomAction.dll_Config.xml”
$custActs[1].AddParameter(“new parameter”, “parameter value”)
Copy
See also
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:
- [New] Harnessing the Power of Hashtags to Amplify Your IGTV Content for 2024
- [Updated] Unrivaled Video Tech for Apple Phones
- 1. How To Retrieve Lost Images For Free: Top Techniques for Your Canon Camera
- Easy Fixes: Resolving GTFO Application Errors
- Guida Passo-Passo a Usare WBAdmin per Costruire Il Backup Dell'Immagine Di Ripristino in Windows 11
- How to Safely Copy an Active Hard Drive in Windows
- In 2024, Brighten Up Your Gameplay Tips to Fix a Black Screen on OBS
- In 2024, Perfect Virtual Screens Choosing Best Meet Backgrounds
- Reignite Your OneDrive Login: Windows Solutions Needed
- Securing Your Windows Server: Understanding the Benefits of Differential and Incremental Backups
- USBメモリまたはSDカードからコマンドラインで削除されたファイルの回復手順
- Title: Custom Action Implementation in IDotNet Framework
- Author: Robert
- Created at : 2024-10-14 00:55:28
- Updated at : 2024-10-17 00:39:34
- Link: https://fox-triigers.techidaily.com/custom-action-implementation-in-idotnet-framework/
- License: This work is licensed under CC BY-NC-SA 4.0.