I am writing an Installer in Wix and want the following sequence where the order of dialogs and custom actions are mixed. There are two scenarios.
First scenario: the user installs the software for trial:
- Welcome (dialog)
- License agreement (dialog)
- Register installation on my website (custom action), the web server responds new user (trial period).
- --
- --
- Finish installation (dialog)
Second scenario: the user has already used the software for the trial period and must type a license code for full installation. New steps are marked with an *.
- Welcome (dialog)
- License agreement (dialog)
- Register installation on my website (custom action), * the web server responds old user (license needed).
- *Type License key (dialog)
- *Verify License Key at web server (custom action).
- Finish installation (dialog)
The two scenarios differ in how the web server responds in step 3. It's important that step 3 comes after acceptance of license terms.
I have no problem running the dialogs, and I can run the custom actions. But I can't figure out how to mix the sequence of them. I have been using Nick Ramirez WIX Cookbook, but I can't see that it covers the topic.
Question 1: How do I mix the sequence of dialogs and custom action?
Question 2: How can the result of a Custom action (step 3) be used to chose between two different dialogs (step 4 or 6)?