cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anonymous
Not applicable

Bug: Missing DLL entrypoints not reported

If you define a prototype for an entry-point in a DLL in IS2008, and call UseDll, and the DLL exists, but the entrypoint doesn't, the install reports that it was "interrupted" and nothing else.

I can provide more details upon request.

David
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Does the code in question have a try/catch block around the call to the DLL with the missing or incorrect entry point?
0 Kudos
Anonymous
Not applicable

No... The code is in OnMoved() and consists of UseDLL() specifying a DLL that does exist, followed by a call to the missing entry point.

Here's the code, with names changed to protect the guilty:

prototype LONG HELPER.SetRunAsAdministrator( BYVAL STRING );

function OnMoved()
begin
if(!REMOVEALLMODE && (SYSINFO.nISOSL == ISOSL_WINVISTA)) then
UseDLL( SUPPORTDIR ^ "HELPER.DLL" );
SetRunAsAdministrator( FOLDER_PROGRAMS ^ "My App" ^ "My Shortcut.lnk" );
UnUseDLL( SUPPORTDIR ^ "HELPER.DLL" );
endif;
end;


In case it's relevant, I had added the new function to the helper DLL, but it wasn't exported properly (i.e., had a C++ munged name).

Regards,
David
0 Kudos