How can I use a C# DLL in NSIS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ashley_desilva
    Junior Member
    • Jan 2008
    • 5

    How can I use a C# DLL in NSIS

    Is it possible to use the C# DLL in NSIS? If so how? are there any other alternatives.
  • Afrow UK
    Moderator
    • Nov 2002
    • 8434

    #3
    You can't call .NET DLL's with System plug-in IIRC.
    You will have to make an exe istead and call it with nsExec::ExecToStack to get its output.

    Stu

    Comment

    • onad
      Senior Member
      • Dec 2004
      • 447

      #4
      IMHO better do NOT use a DLL in an installer that depends on .NET, please write a native DLL in C++, or Delphi for the Win32API.

      TIP:
      Better refrase your question e.g.
      "I need my nSIS based installer to do XYZ, how can I best do that?"

      then maybe we can help you proposing an alternative solution to your C# DLL issue.
      "Just do it"

      Comment

      • ashley_desilva
        Junior Member
        • Jan 2008
        • 5

        #5
        Thanks a lot for the useful feedback guys. I am new to NSIS, so I really appreciate your advice.

        Comment

        • kesavan
          Junior Member
          • May 2008
          • 2

          #6
          hello All,

          I am having c# dll(C# class library project by using vs 2005). I want to call the method in NSIS Script.

          I am finding the solution and its very hard to find the solution.

          Please provide any sample source codes to call the C# dll using NSIS Script.(I am new to NSIS Script )

          Kindly help me!!

          Thanks in Advance.

          Regards,
          Kesavan

          Comment

          • Afrow UK
            Moderator
            • Nov 2002
            • 8434

            #7
            Did you miss my post above?

            Stu

            Comment

            • LoRd_MuldeR
              Major Dude
              • Sep 2005
              • 797

              #8
              I don't know if that is possible, but maybe you can write a NSIS plugin DLL in C++ and use that as a wrapper to load/call your C# DLL. At least I know it is possible the other way around (call C++ DLL with a wrapper DLL from C# application). In case it's NOT possible, you'll have to create C# executable that calls your C# DLL. You can run the EXE as suggested by Afrow UK. But anyway you will have to make sure the user has the .NET framework installed first...
              Last edited by LoRd_MuldeR; 26 June 2008, 19:06.
              My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
              My source of inspiration: http://youtu.be/lCwY4_0W1YI

              Comment

              • claesabrandt
                Member
                • Aug 2008
                • 54

                #9
                I have posted a solution on how to call a managed .NET DLL from NSIS. See my post here: http://forums.winamp.com/showthread.php?s=&threadid=295881
                Last edited by claesabrandt; 13 August 2008, 08:52.

                Comment

                Working...
                X