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” ?
FOLLOW US
Get the latest news in Application Packaging