fabiochelly
25th March 2005 17:04 UTC
Setup exits when calling a dll
hi,
I try to call a little dll with CallInstDll.
But when I call it, the setup stops and Windows shows a message "you're program has provoked an exception. Do you want to debug".
This dll has been created in C and I can call it from anywhere else (Delphi, Installshield) without error.
Is there something I can try to find why I can't call my dll in NSIS?
kichik
25th March 2005 17:49 UTC
Compile it with debugging information and start debugging.
fabiochelly
25th March 2005 18:24 UTC
How do I do that?
I didn't found a debugging mode in the help
kichik
25th March 2005 18:34 UTC
I am talking about your plug-in, not the installer. Compile your plug-in with debugging information and run the installer from within the debugger (windbg, vs, etc.).
fabiochelly
25th March 2005 18:50 UTC
Ah OK.
But I don't have the sources of the dll, only the binary.
I just know that it works fine when I call it from Delphi.
fabiochelly
25th March 2005 18:53 UTC
And it is not a plugin for NSIS.
It's a standard dll I use to check license codes.
kichik
25th March 2005 18:54 UTC
Try calling it with the /NOUNLOAD switch on all of the calls but the last one.
fabiochelly
25th March 2005 19:00 UTC
I call it one time only. Here is my code:
Push $code
CallInstDll "$TEMP\ccode.dll" CheckCode60
Pop $code
kichik
25th March 2005 19:43 UTC
Then try /NOUNLOAD just on that one. If it doesn't work, debug.
fabiochelly
25th March 2005 19:49 UTC
Well it doesn't work either.
Thank you. I will try to get the sources.