Page 1 of 1

Call function from custom dll

Posted: Sun Sep 23, 2007 3:22 pm
by gullion
Newbie question:
I'm trying to use Call DLL to call a function in a DLL that I wrote. How do I unpack / install the dll so that I can call it before the installation is complete? It has to be done during installation; I cancel or continue the installation based on the value returned. I've tried installing the dll explicitly, but I always get the error message DLLLoadFailed; when I look at the installation directory at that point in the script, no files are visible, so it makes sense, I guess, that the load fails.

The dll works fine outside of the installation context.

ps. I preinstalled the dll as a test (just put it on the target machine and pointed the script to it) and that works fine.

Posted: Mon Sep 24, 2007 3:43 am
by Gizm0
Add your dll to IA Support Files and call it like $SUPPORTDIR$\\mydllname.dll

Posted: Mon Sep 24, 2007 7:22 am
by gullion
thanks. In the meantime, I had gotten it to work by defining a new web media block for just that one file, installing it and applying the changes. But I suspect your way is cleaner.