jlavery
Posts: 27
Joined: Tue Oct 14, 2008 4:56 pm

Different ExitDialog when uninstalling

I've got an installation set up which installs and runs a service.

At the end, I display a dialog explaining how the service can be started and stopped.

However, when the installer is used to uninstall the service, I get the same dialog.

I'd like to have a different dialog, just saying 'ProductName has been uninstalled." How can I do this? The ExitDialog seems to be shared across all the sequences.

Thanks,

James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Different ExitDialog when uninstalling

Hi James,

Unfortunately Windows Installer does not support different Exit dialogs. Therefore, the same ExitDialog will be used for all install sequences.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jlavery
Posts: 27
Joined: Tue Oct 14, 2008 4:56 pm

Re: Different ExitDialog when uninstalling

Hi Cosmin,
Thanks - in that case, is there a workaround to achieve what I want - i.e. a different message at the end?

James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Different ExitDialog when uninstalling

Hi James,

You can try this approach:
- on "ExitDialog" add a new Static text control and set it to the text you want to show after an uninstall
- position it over the original text or under it
- use the combo box on top of the Properties pane to select the original description text
- in the "Control Conditions" tab create these control conditions:

Code: Select all

InstallMode = "Remove"         Hide
InstallMode <> "Remove"        Show
- select the static text you created
- in the "Control Conditions" tab create these control conditions:

Code: Select all

InstallMode = "Remove"         Show
InstallMode <> "Remove"        Hide
Basically, the modified text will be shown only when the package is uninstalled. In the rest of the cases, the original text is shown.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jlavery
Posts: 27
Joined: Tue Oct 14, 2008 4:56 pm

Re: Different ExitDialog when uninstalling

Hi Cosmin,
Thanks -that was the approach I was considering.

James

Return to “Common Problems”