Announcement

Collapse
No announcement yet.

NSISIIS dll not loading error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NSISIIS dll not loading error

    I've searched around the forums but didn't find a solution which works for me, so my situation is this, I've an installer which uses NSISIIS plugin for creating Virtual directories and app pools on IIS, and this works on some 64 bit windows servers and doesn't work on some. I see a bunch of copy failed messages and this error "cannot load nsisiis dll from /temp/blah/blah". I saw in another thread that it might be due to X64redirection being disabled , but i'm not disabling that explicitly anywhere in the script. However i included x64.nh and try enabling it once just before the nsisiis command, but to no use, can anyone shed some light here would be great...thanks..

  • #2
    Dependency Walker shows NsisIIS.dll depends on MSVCP100.DLL and MSVCR100.DLL. Either include them in your installer (and extract to $PLUGINSDIR) or contact the author and tell them to link statically.

    Stu

    Comment


    • #3
      Thank you Stu, will try that....

      Comment


      • #4
        Hi Stu,

        I've added the below code to my script and tried running it on the same machine but that error still pops up? am i doing it wrong here..? thanks..

        code:
        Section "ERPSection" SEC01

        SetOutPath "$PLUGINSDIR"
        File /nonfatal "..\Include\Dependancy\MSVCP100.DLL"
        File /nonfatal "..\Include\Dependancy\MSVCR100.DLL"

        Comment


        • #5
          What are the copy failed messages exactly?

          Edit: Also check $PLUGINSDIR has a value before your SetOutPath call.

          Stu

          Comment


          • #6
            Weird thing i found is, in the windows 64 bit server where the installer is working has the MSVCP100 and MSVCR100 dlls in the SYSWOW64 folder(I'm not including these in the installer, still its working). Weird part is the same dlls are present in another windows 64 bit server where the installer isn't working in the same SYSWOW64 folder. So i'm confused why this error would come in the first place...By copy error i mean i see a bunch of copy failed messages while the install is going on, now i dont see the "cannot load dll" but in the end no IIS virtual folders or app pools are created, while uninstalling the exe crashes showing fault module as "NSISIIS DLL" , so i'm pretty that one's still not working... any more ideas?

            Comment


            • #7
              Gonna try the APPCMD command itself..that ought to work...

              Comment


              • #8
                Same problem, downloaded the nsisiis sources to do a static build, and the sources do not have the iiis.h file....

                Comment


                • #9
                  Originally Posted by Don Golden View Post
                  Same problem, downloaded the nsisiis sources to do a static build, and the sources do not have the iiis.h file....
                  That is probably a Microsoft header file and you need a SDK that supports that version of IIS.
                  IntOp $PostCount $PostCount + 1

                  Comment

                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎