Answer This can be done only in an Enterprise project.
Windows Installer uses a single ExitDialog for all install
processes: first time installation, uninstall, repair, modification,
patch etc. However, you can use properties in the installation to
condition the elements shown on this dialog. First time installFor the first time installation you can use the default text
on ExitDialog. Please note that you can modify this text by using the
Text field in the Properties pane of the Dialogs page. Modify optionDuring Maintenance, after the "Modify" option is used you may
want to show a customized ExitDialog. For this you can try following
these steps: - select "ExitDialog" in the Dialogs page
- create a new Static Text control on it
- in the Properties pane
set the Text field to something like:
[ProductName] was successfully modified.
- select the original text and go to the Control
Conditions tab
- create these control conditions:
InstallMode = "Change" Hide
InstallMode <> "Change" Show - select the custom text and go to the Control
Conditions tab
- create these control conditions:
InstallMode = "Change" Show
InstallMode <> "Change" Hide - move the custom text over the original one
At any time you can select each text control by using the combo
box at the top of the "Properties" pane.
Repair optionDuring Maintenance, after the "Repair" option is used you may
want to show a customized ExitDialog. For this you can try following
these steps: - select "ExitDialog" in the Dialogs page
- create a new Static Text control on it
- in the Properties pane
set the Text field to something like:
[ProductName] was successfully repaired.
- select the original text and go to the Control
Conditions tab
- create these control conditions:
InstallMode = "Repair" Hide
InstallMode <> "Repair" Show - select the custom text and go to the Control
Conditions tab
- create these control conditions:
InstallMode = "Repair" Show
InstallMode <> "Repair" Hide - move the custom text over the original one
At any time you can select each text control by using the combo
box at the top of the "Properties" pane.
Remove optionDuring Maintenance, after the "Remove" option is used you may
want to show a customized ExitDialog. For this you can try following
these steps: - select "ExitDialog" in the Dialogs page
- create a new Static Text control on it
- in the Properties pane
set the Text field to something like:
[ProductName] was successfully removed.
- select the original text and go to the Control
Conditions tab
- create these control conditions:
InstallMode = "Remove" Hide
InstallMode <> "Remove" Show - select the custom text and go to the Control
Conditions tab
- create these control conditions:
InstallMode = "Remove" Show
InstallMode <> "Remove" Hide - move the custom text over the original one
At any time you can select each text control by using the combo
box at the top of the "Properties" pane.
Patch installationAfter the installation of a patch you may want to show a
customized ExitDialog. For this you can try following these
steps: - select "ExitDialog" in the Dialogs page
- create a new Static Text control on it
- in the Properties pane
set the Text field to something like:
[ProductName] was successfully patched.
- select the original text and go to the Control
Conditions tab
- create these control conditions:
PATCH Hide
NOT PATCH Show - select the custom text and go to the Control
Conditions tab
- create these control conditions:
PATCH Show
NOT PATCH Hide - move the custom text over the original one
At any time you can select each text control by using the combo
box at the top of the "Properties" pane.
If all the above control conditions are used in your project,
the "Control Conditions" tab of the original text should look like
this: (InstallMode = "Change") OR (InstallMode = "Repair") OR (InstallMode = "Remove") OR PATCH Hide
(InstallMode <> "Change") OR (InstallMode <> "Repair") OR (InstallMode <> "Remove") OR NOT PATCH Show This approach can be applied to any type of dialog control which
supports control conditions.
|