danliang
Posts: 8
Joined: Thu Dec 28, 2006 7:31 pm

Serial Validation with DLL

My current problem is that I have created a DLL that uses methods from OpenSSL (http://www.openssl.org/) the problem is that the code works fine from a command line executable, but the same code placed in the DLL forces the installer to end prematurely as soon as the function is called. This seems to occur if any method is used from the OpenSSL library.

For example, I have a dummy DLL with a function that just displays a message box as soon it is called. This works fine, but once I add a reference to an OpenSSL object the message box will not appear and the installation will end prematurely. Note, displaying the message box is the very first line in the function and does not appear.

Below is the end of the log file from the installation:

Code: Select all

MSI (c) (F8:98) [14:35:34:828]: Doing action: SerialValidationDLL.dll
Action start 14:35:34: SerialValidationDLL.dll.
MSI (c) (F8:00) [14:35:34:843]: Invoking remote custom action. DLL: C:\DOCUME~1\user\LOCALS~1\Temp\MSIFA7.tmp, Entrypoint: ValidateSerial_Sample
Action ended 14:35:34: SerialValidationDLL.dll. Return value 3.
DEBUG: Error 2896:  Executing action SerialValidationDLL.dll failed.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: SerialValidationDLL.dll, , 
Action ended 14:35:34: WelcomeDlg. Return value 3.
MSI (c) (F8:C0) [14:35:34:875]: Doing action: FatalError
Action start 14:35:34: FatalError.
[/code]
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

It's hard to tell why that code does not work in a custom action DLL.

However note that Advanced Installer already offer support for server side validation, for more details please see:
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
danliang
Posts: 8
Joined: Thu Dec 28, 2006 7:31 pm

Thanks for the reply, but currently this is not really an option at this time as the infrastructure is not in place.

Return to “Common Problems”