Skip UsrRegstrationDlg base on custom property - Advanced Installer Community
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Skip UsrRegstrationDlg base on custom property

We had an AI setup witch had a custom action “attach launch file and running the check_sn.exe”
the “check_sn.exe” read the serial ports and if find connected our serial device writes the “sn” value to a registry key
Then in searches of AI we read that key and we store it to SN property.
If the SN property its empty then installer stops and exit
If this SN property has a value then the install continues.

Now we want in the case that our hardware it’s not connected the AI installer continue with demo installation with package serial validation keys.
In the case that our hardware it’s connected the AI installer continue without package serial validation keys

So we use serial validation in this case the AI adds the “UserRegistrationDlg”
this dialog added after “WelcomeDlg” so we add on “NEXT” button to a published events the folow

“WelcomeDlg” event : display the “UserRegistrationDlg”
display the “LicenseAgreement Dlg” condition “SN_1”
“UserRegistrationDlg”
“LicenseAgreement Dlg”: I set property “SerialValidation” “TRUE”
“FolderDlg”
“VerifyReadyDlg”

This works when it’s not connected our Device
But when running set up and we had connect the our Device after “VerifyReadyDlg”
we get :

“MSI (s) (DC:BC) [12:12:02:656]: Doing action: LaunchConditions
Action 12:12:02: LaunchConditions. Evaluating launch conditions
Action start 12:12:02: LaunchConditions.
Action ended 12:12:02: LaunchConditions. Return value 1.
MSI (s) (DC:BC) [12:12:02:656]: Doing action: ValidateProductID
Action 12:12:02: ValidateProductID.
Action start 12:12:02: ValidateProductID.
Action ended 12:12:02: ValidateProductID. Return value 1.
MSI (s) (DC:BC) [12:12:02:671]: Skipping action: AI_VALID_SERIAL (condition is false)
MSI (s) (DC:BC) [12:12:02:671]: Doing action: AI_EXIT_ACTION
Action 12:12:02: AI_EXIT_ACTION.
Action start 12:12:02: AI_EXIT_ACTION.”

How I can skip the serial validation when the “SN_1” property its “TRUE” ?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Skip UsrRegstrationDlg base on custom property

Hi,

You don't need to manually add published events to skip the dialog, as you noticed this is not enough, we can do that for you much easier.

Just go to Licensing page, under Serial Validation and set your condition, under Condition field in lower side of the page.
Please note that the serial validation dialog will be shown as long as the condition you set is true.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: Skip UsrRegstrationDlg base on custom property

you mean this? see attach
the dialog works but i get the same error
Attachments
SerialVal.GIF
SerialVal.GIF (151.12 KiB) Viewed 4517 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Skip UsrRegstrationDlg base on custom property

No, I referred to the one from Licensing page. Revert all the custom changes you've done in Dialogs page, to hide the dialog.

Regards,
Bogdan
Attachments
Advanced Installer 10.6000.png
Advanced Installer 10.6000.png (264.29 KiB) Viewed 4511 times
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: Skip UsrRegstrationDlg base on custom property

thanks its works

Return to “Common Problems”