- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to get custom command line parameters and installation progress percentage in [Custom Action...
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
How to get custom command line parameters and installation progress percentage in [Custom Actions] with DLL?
I want get custom command line parameters in [Custom Actions] with DLL that programming with C# ,
I have found the use of "InstallShield.Interop.Msi.dll "in the example project after the InstallShield 2023 program has finished installing. But it doesn't show how to get the command line arguments through "InstallShield.Interop.Msi.dll ",Does anyone know how to get it?
example:
Build a setup.exe package with InstallShield 2023.then call setup.exe use command-line like this:
setup.exe /customname:whatevername
so,i want known how to get this string [customname:whatevername] in DLL, in the following C# project,which included in the example "Managed Custom Actions".
And how do I get the installer's progress percentage or value?
Hello @JimmyOwen ,
read this article:
https://resources.flexera.com/web/media/documents/CustomActionData.pdf
regards
Markus
I did not see the additional question about the "... how do I get the installer's progress percentage or value".
But here you can get additional information and a sample:
Adding Custom Actions to the ProgressBar - Win32 apps | Microsoft Learn
regards
Markus