Old 8th January 2015, 16:15   #1
Raven83
Junior Member
 
Join Date: Nov 2014
Posts: 19
Question 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..
Raven83 is offline   Reply With Quote
Old 8th January 2015, 16:43   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 8th January 2015, 17:10   #3
Raven83
Junior Member
 
Join Date: Nov 2014
Posts: 19
Thank you Stu, will try that....
Raven83 is offline   Reply With Quote
Old 9th January 2015, 05:48   #4
Raven83
Junior Member
 
Join Date: Nov 2014
Posts: 19
Question

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"

Raven83 is offline   Reply With Quote
Old 9th January 2015, 08:49   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
What are the copy failed messages exactly?

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

Stu
Afrow UK is offline   Reply With Quote
Old 9th January 2015, 12:45   #6
Raven83
Junior Member
 
Join Date: Nov 2014
Posts: 19
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?
Raven83 is offline   Reply With Quote
Old 10th January 2015, 16:14   #7
Raven83
Junior Member
 
Join Date: Nov 2014
Posts: 19
Gonna try the APPCMD command itself..that ought to work...
Raven83 is offline   Reply With Quote
Old 25th March 2016, 12:29   #8
Don Golden
Junior Member
 
Join Date: Mar 2016
Posts: 1
Same problem, downloaded the nsisiis sources to do a static build, and the sources do not have the iiis.h file....
Don Golden is offline   Reply With Quote
Old 25th March 2016, 15:27   #9
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
Quote:
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
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
nsisiis, plug-in

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