Archive: Using .NET Assemblies


Using .NET Assemblies
I know this may be an idiotic question, but is there any way to plugin a mechanism to the installer that will allow .NET assemblies to monitor/configure the installation process?

For instance, if I have defined .NET assemblies to report any errors that occur in the installation, how would that occur, if even possible? Also, could I define ways to input the installation variables via command line ?

Any help in this would be great.

Regards,

Zak


It's usually not a good idea to use .NET in the installer itself due to required dependencies. By using .NET, your installer has a pre-requirement of installer .NET framework instead of being simple and self contained.

That said, it should be possible to use COM to call .NET assemblies. But it would be simpler to create an executable and execute it using ExecWait. In either case, you'll have to manually call your .NET code from your installer script as not even normal plug-ins have a mechanism that allows them to be notified of everything happening in the installer.