This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Bug: Missing DLL entrypoints not reported
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Anonymous
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 13, 2007
08:18 PM
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
I can provide more details upon request.
David
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2007
09:02 AM
Does the code in question have a try/catch block around the call to the DLL with the missing or incorrect entry point?
Anonymous
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2007
09:44 AM
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:
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
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