Windows UAC affecting server side validation? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

stevesn
Posts: 3
Joined: Wed May 19, 2010 4:30 pm

Windows UAC affecting server side validation?

Hi,

My apps require server side (web) validation - all working well until I built a package last week which has a strange issue.

When installing the user enter the serial number as normal - this is then logged on my web database - shortly after the Windows 7 UAC pops up asking for approval to proceed (as normal). As soon as this is clicked the installer sends another activation request to my web. This means that one install actually becomes two this screwing up my licensing model.

I've rebuild the msi several times with no luck.

Any ideas guys?

Cheers,

Steve.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows UAC affecting server side validation?

Hi Steve,

The validation of the serial is executed two times, once when it is entered in the UI of the package, and once during the installation (installation progress bar) of the package.
However, I shall describe a method that could help you skip the second validation, so only the one from the UI is executed.

First you need to go to Install Parameters page and define the public property "ACTIVATED" with the default value set to zero ("0").

Now go to Dialog Editor page and define a new "SetProperty" published event on the [Next] button from the "UserRegistrationDlg" dialog. This event will set the property ACTIVATED to the value of "1".
The event should be the last in the list and use this condition :

Code: Select all

SERIAL_VALIDATION = "TRUE"
Now you ca go to Table Editor page, in "InstallExecuteSequence" table. Here you will find the action "AI_VALID_SERIAL" with the following conditions set by us:

Code: Select all

(NOT Installed) AND (ProductID) AND ((UILevel <> 5) OR (Preselected = 1))
Replace this condition with the following one:

Code: Select all

(ACTIVATED <> "1") AND (NOT Installed) AND (ProductID) AND ((UILevel <> 5) OR (Preselected = 1))
Rebuild and test the new package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”