Call function from custom dll

Got a problem you cannot solve? Try here.
gullion
Posts: 5
Joined: Thu Sep 13, 2007 11:00 am

Call function from custom dll

Postby gullion » Sun Sep 23, 2007 3:22 pm

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.

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Mon Sep 24, 2007 3:43 am

Add your dll to IA Support Files and call it like $SUPPORTDIR$\\mydllname.dll
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

gullion
Posts: 5
Joined: Thu Sep 13, 2007 11:00 am

Postby gullion » Mon Sep 24, 2007 7:22 am

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 75 guests