Skip to content
⌘ NSIS Forum Archive

nsis for c# ?

7 posts

Petazetas#

nsis for c# ?

Is there any c# wrapper class for nsis ?

I need to create and compile nsis scripts from c#.

Thanks in advance
kichik#
I have never heard of such a class. Basically you don't need to do much, just write the script into a text file and call makensis.exe. If you find anything useful please let us know.
virtlink#
I have written a C# NSIS Wrapper class for you, Petazetas.
It doesn't read or write script files, but it does provide a wide range of functions (Compile, Run, etc..) and properties (all NSIS directories, the OutFile of the script, etc...).
I hope that it works, since I've just removed a bug from it, but I haven't tested it.

If you have any suggestions, questions or comments, please post them here or PM me.

Attached below. Source code and binary library included.
virtlink#
It looks like my wrapper is no longer needed here.
KiCHiK/Sunjammer, could you put it on the archive download page?
Petazetas#
Hey virtlink a lot of thanks! it works fine for me! This weekend I'll be working and adding some more features to your class.

Thanks again
virtlink#
Could you please repost the class then? I'd like to see what improvements you've made and update the file in the downloads section of the archive.