Old 12th January 2008, 04:20   #1
zaknixon
Junior Member
 
Join Date: Jan 2008
Posts: 1
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
zaknixon is offline   Reply With Quote
Old 12th January 2008, 18:33   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump