Mahyar
Posts: 4
Joined: Wed Mar 06, 2013 4:28 pm

Serial Validation throws exception on certain themes

Hi,

Recently I found that Serial Validation process (UserRegistrationDlg) throws below exception when using Azure,Graphite,Surface and Classic themes while the default behavior is to show a message box with "Serial Number Invalid" text.

Exception title: The application ran into a problem that it couldn't handle.
Exception details (xp-sp3-x86):

Code: Select all

[SEH_AV_READ_BADPTR] ACCESS_VIOLATION (0xc0000005) at address [0x7d2dfdab]

*** Stack Trace (x86) ***

[0x7d2dfdab]  -----
[0x7d302aae]  -----
[0x7d282310]  MsiRecordSetStringW()
[0x00464043]  -----
[0x004a248a]  -----
[0x004a368c]  -----
[0x004a2222]  -----
[0x004a0444]  -----
[0x004a1f2d]  -----
[0x00447eb4]  -----
[0x004480ec]  -----
[0x00448864]  -----
[0x00453aa2]  -----
Exception details (7-sp1-x64):

Code: Select all

[SEH_AV_READ_BADPTR] ACCESS_VIOLATION (0xc0000005) at address [0x71f77b0c]

*** Stack Trace (x86) ***

[0x71f77b0c]  MsiEnumProductsW()
[0x71f89a86]  DllGetClassObject()
[0x7203565e]  MsiRecordSetStringW()
[0x00954043]  -----
[0x0099248a]  -----
[0x0099368c]  -----
[0x00992222]  -----
[0x00990444]  -----
[0x00991f2d]  -----
[0x00937eb4]  -----
[0x009380ec]  -----
[0x00938864]  -----
[0x00943aa2]  -----
[0x77d09ef2]  RtlInitializeExceptionChain()
[0x77d09ec5]  RtlInitializeExceptionChain()
I have attached the .aip sample file

I also found out the problem occurs when Validate ProductID property event of "Next" button tries to evaluate the ProductID property.
So a workaround is to delete this event and change the condition for following AI_VALID_SERIAL action to 1 for UserRegistrationDlg thourgh ControlEvent table in Table Editor (in other words disabling the ProductID evaluation process).

I think this is a bug.

Regards
Attachments
serial_validation_exception.aip
(16.57 KiB) Downloaded 504 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial Validation throws exception on certain themes

Hello,

Indeed, this seems to be an Advanced Installer limitation. A fix will be available in the next version of Advanced Installer (which should be out soon), thank you for bringing it to our attention. Until then, as a workaround you can replace the ExternalUi.exe file from Advanced Installer installation folder (i.e. C:\Program Files (x86)\Caphyon\Advanced Installer 9.9\stubs\x86u) with a fixed version of the ExternalUi.exe file.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mahyar
Posts: 4
Joined: Wed Mar 06, 2013 4:28 pm

Re: Serial Validation throws exception on certain themes

Thanks for the fix Daniel

Regards
ddsharper1
Posts: 3
Joined: Fri Mar 22, 2013 1:07 am

Re: Serial Validation throws exception on certain themes

Exception has been thrown by the target of an invocation. I tried downloading and executing the fix in this thread but got an error message.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial Validation throws exception on certain themes

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind that you should not execute the above ExternalUi.exe file. In order to use the above fix you should replace the ExternalUi.exe file from Advanced Installer installation folder (i.e. C:\Program Files (x86)\Caphyon\Advanced Installer 9.9\stubs\x86u) with the attached fixed version of the ExternalUi.exe.

Also, a fix for this issue was included in our latest version (10.0) of Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ddsharper1
Posts: 3
Joined: Fri Mar 22, 2013 1:07 am

Re: Serial Validation throws exception on certain themes

I did not see version 10 was out.!! thanks.
bvukas
Posts: 5
Joined: Wed Nov 06, 2013 11:57 am

Re: Serial Validation throws exception on certain themes

I'm experiencing the same issue in 10.6. I can't get licensing to work properly; regardless if I'm using algorithm verified serials, or user defined validation.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial Validation throws exception on certain themes

Hello,

This may be caused by a recen bug appeard in 10.5 version of Advanced Installer. A fix for it has been added in our next version (10.7) which should be released very soon. Can you please try the workaround described in our "Bug Report: 10.5.2+ fails to accomplish server validation" thread and see if the behavior still persist? If so, can you please send us the .aip (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”