Server-Side Validation Repetition - Advanced Installer Community
Michele
Posts: 9
Joined: Mon Mar 03, 2014 10:03 pm

Server-Side Validation Repetition

Hi, the server-validation works great but,
if I want to implent a validation in which users can validate only a certain number of times, this may not work.

In fact, after I validated one time (put Name, Company and Serial, and decremented by 1 the "times column") and went to the next page,
I can go back to the validation page, change the name and, when I press the Next button, it re-validate the serial and, if possible, decrement again by 1 the "times column".

That's all.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Server-Side Validation Repetition

Hello Michele,

In order to avoid this scenario, you can condition further the AI_VALID_SERIAL custom action which is added as a Published Event on the Next > control from the UserRegistrationDlg by using the following statement in the Condition field:

Code: Select all

ProductID AND SERIAL_VALIDATION <> "TRUE"
So, the AI_VALID_SERIAL custom action will be executed if the SERIAL_VALIDATION property is different than TRUE.

Please take a look on the Edit Condition article which may be useful to you.
Also, you should delete the first published event which set the SERIAL_VALIDATION property with the FALSE value.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Michele
Posts: 9
Joined: Mon Mar 03, 2014 10:03 pm

Re: Server-Side Validation Repetition

I guess this can't be done in any way in Professional edition, or there is a workaround?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Server-Side Validation Repetition

Hello Michele,

Indeed, you need the Dialog editor feature which is available starting withe the Enterprise edition of Advanced Installer. If you are interest in a licence upgrade, from the Professional one to the Enterprise one, you can send us an email to support at advancedinstaller dot com and I'm pretty sure that you can get a discount for an easier upgrade.

As a workaround, you can install a trial version of Advanced Installer, you can also install in a virtual machine environment and make the related changes by creating an Enterprise project type. Then, you can modify your .AIP (project file build with the Professional edition) in a text editor in order to have the same settings as the one from the Enterprise project type.
However, if you cannot handle this, you can send us your .AIP(project file) to support at advancedinstaller dot com and I'll try to make these changes for you.

If there is anything else I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Michele
Posts: 9
Joined: Mon Mar 03, 2014 10:03 pm

Re: Server-Side Validation Repetition

Ok, thank you very much, for this and for the great support.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Server-Side Validation Repetition

You're welcome Michele,

If you have other questions, please let us know.

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

Return to “Common Problems”