How do I validate the serial number during Wizard Dialogs Stage only?

ImportantThe following article uses options that are available starting with the Enterprise edition and project type.

This article will explain how to validate the serial number during "Wizard Dialogs Stage" only if your package is configured to use Server Side Validation .

In order to validate the serial number just once, the following steps must be taken:

  1. Go to Properties page and define the public property ACTIVATED. Set its default value to 0 (zero).
  2. Go to Dialog Editor Page and select the UserRegistrationDlg dialog.
  3. On this dialog select the [ Next ] button.
  4. Under the "Published Events" tab add a Set installer property value event.
  5. Select the property ACTIVATED and set its value to 1.
  6. Add the following condition to this event: SERIAL_VALIDATION = "TRUE"
  7. Set this event as the last element from the list if it is not already.
  8. Navigate to the Table Editor Page and select the InstallExecuteSequence table.
  9. Select the AI_VALID_SERIAL action and replace its condition with the following one:
(NOT Installed) AND (ProductID) AND ((UILevel <> 5) OR AI_RESUME)

Build the package and test it. The serial validation should take place only during the Wizard Dialogs Stage.