a.rasoulain
Posts: 8
Joined: Sat Aug 17, 2013 7:13 am

add/remove dialog

Hi,
i want to show some dialogs in uninstalling time that inform user that his/her database will be remove,and give from user an address to create backup(with running a sql script) if user wants.
actually i want to show these dialogs when my app is being removed from add/remove NOT maintenance.

How can i do that?

Best Regards

Armin
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: add/remove dialog

Hello Armin and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve that you can have add a Display message box predefined custom action with sequence from the “Custom Actions” page.
In the “Execution Stage Condition” label you can choose to execute this custom action just on the Uninstall process.
Because you want this message to appear just on the uninstall process started from the “Add/Remove programs” from the “Control Panel” you can condition the execution of the custom action based on the UILevel property:
E.g:

Code: Select all

UILevel = "3"
Please let us know if that helped otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
a.rasoulain
Posts: 8
Joined: Sat Aug 17, 2013 7:13 am

Re: add/remove dialog

Hi Dan,
Thank you for your quick reply.
unfortunately, I mean did not transmit correctly.
I want show a dialog like "FolderDlg" in the Installation process (that have browse button, a path edit,...) and give from user an address, and according to that address execute a sql script that this script create a backup from my database in that address.
But I want this backup process be optional.(before that folderDlg show a message to user).

Another question is that can i show remove dialogs in maintenance if user remove it from add/remove program?

I hope to be understood correctly this time.

if it is possible for you show me how can i do that in detail. :oops:

Thank you for your patience.

Best Regards,
Armin
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: add/remove dialog

Hello Armin,

I'm afraid this scenario cannot be implemented because the “Uninstall” process is handled by the Windows Installer using a Basic UI, so there are not displayed any custom dialogs.

However, you can create your own custom action that allows the user to browse for a folder and use this custom action during uninstall process.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
a.rasoulain
Posts: 8
Joined: Sat Aug 17, 2013 7:13 am

Re: add/remove dialog

Hi Dan,
thanks for your help, I found my answer .
I create my custom dialogs in maintenance and disable remove from control panel.
now it's work in the way i want.

Armin
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: add/remove dialog

Hi Armin,

I'm glad you got this working. If you have other questions, plese let us know.

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

Return to “Building Installers”