shireburn
Posts: 5
Joined: Mon Aug 12, 2013 9:16 am

Error 4157 When reading from Standard DLL

Hello Caphyon.
We are finding a little problem when executing a DLL function from the custom actions Module.
This DLL is used by other installer software so there's nothing wrong with the file.

You just pass a:
SerialNumber (String)
SerialKey (String)
AlgorithmKey (String)

...and the DLL function returns the program features to be installed, again in a string.

However when we are firing the action "CallFunctionFromDLL" ... This error is being shown in the "Run Log"
MSI (c) (D8:D0) [08:28:39:529]: Invoking remote custom action. DLL: C:\Users\michael\AppData\Local\Temp\MSIB95B.tmp, Entrypoint: CallStdFcn
MSI (c) (D8!EC) [08:28:39:902]: Product: Test Application -- Error 4157. Failed to load C:\Users\michael\AppData\Local\Temp\DSK.dll. Error:A dynamic link library (DLL) initialization routine failed.

Naturally the wizard says that it ended prematurely.

Can you please Help us?

Thanks
Shireburn (We're a software company, evaluating your product prior to purchase)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Error 4157 When reading from Standard DLL

Hello,

I'm not sure why you encountered this behavior. It might be a problem with the related .DLL and this may happen when the .dll failed to load because its initialization routine(DllMain) returned failure. This is not related with Advanced Installer but only with that DLL. So, can you please try to debug your DLL in order to find the route cause of this behavior?

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”