slawomir.zurek
Posts: 12
Joined: Mon Mar 03, 2014 9:50 am

EXE setup - uninstall confirm dialog

Hello,
Switching to "Surface" theme (it's the shortest one) forced me to change setup type to EXE. Because i'm using auto updater i configure installer to build one EXE with all resource included.

But EXE setup has one disadvantage - on uninstall there is no confirmation dialog ("do you want to uninstall"). How can I show this question before uninstalling ?
I have read, that MSI setup shows this dialog by default. But i think it is essential functionality for EXE setup too.

Best regards,
Slawek
PS: I'm using proffesional edition.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: EXE setup - uninstall confirm dialog

Hello Slawek,
Switching to "Surface" theme (it's the shortest one) forced me to change setup type to EXE.
Indeed, using any other theme than the Classic one, automatically the Enhanced User Interface option is enabled in the Settings tab from the Theme page. Please note that the Enhanced User Interface is handed by our bootstrapper which require an .EXE package type.
How can I show this question before uninstalling ?
You cannot display the related dialog, but you can display a custom message when the Uninstall process is performed. For example, you can use our predefined Display message box added with sequence added after the Searches stage from the Install Execution Stage.
Please take a look on the Display dialog on uninstall from Control Panel forum thread and on the how to Abort the Install on message box response forum thread which may be useful to you.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
slawomir.zurek
Posts: 12
Joined: Mon Mar 03, 2014 9:50 am

Re: EXE setup - uninstall confirm dialog

Yes, it works. But I consider this rather as workaround than good solution:
1. message box is alway only message box - not skinned window
2. on my test machine (win 7 ultimate) breaking uninstall with this method Program Compatibility Assistant shows warning... (yes, i kno i can disable PCA, but...).

Now it is better to me to have ugly message box than nothing, so im glad with it, but please consider more elegant way of uninstall question (enhaced user interface) in future releases.

Thanks for quick help. You helped me a lot.
Best regards,
Slawek
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: EXE setup - uninstall confirm dialog

You're welcome Slawek,

I'm glad you got this working.

There is another solution, more elegant, but is not so easy to implement in a Professional project type. In an Enterprise project type this will be very easy to implement. Please take a look on the Uninstalling from program and features forum thread which debates this subject.
please consider more elegant way of uninstall question (enhaced user interface) in future releases.
Thank you for your suggestion. I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: EXE setup - uninstall confirm dialog

Hello,

The uninstall confirmation dialog when remove from Control Panel a package with Enhanced UI improvement has been added in version 11.1 of Advanced Installer released on April 28th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”