Skip to content
⌘ NSIS Forum Archive

Setup exits when calling a dll

10 posts

fabiochelly#

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#
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#
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#
I call it one time only. Here is my code:

Push $code
CallInstDll "$TEMP\ccode.dll" CheckCode60
Pop $code