vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Uninstallation Wizard

Hi !

I am building an enterprise project using AI-6.4.1. This has facility for Install wizard whereas i want to build an uninstallation wizard too.

How could i achieve this?

And how can i change default message dialogs on uninstallation?

Regards,
Zia
MindTooth
Posts: 37
Joined: Mon Aug 17, 2009 12:40 am

Re: Uninstallation Wizard

I know with the latest Enterprise, you can edit the dialogs. Where AI has it own uninstaller. Since you need to uninstall once.

Birger :)
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: Uninstallation Wizard

I want to uninstall my product using a wizard. How cud i do it?
MindTooth
Posts: 37
Joined: Mon Aug 17, 2009 12:40 am

Re: Uninstallation Wizard

When you click the "Uninstall #Software name here#", you are already using a wizard.

What do you really mean when you say wizard? That you don't have to manually remove the files and registry entries?

Birger :)
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstallation Wizard

Hello,

Please note that on the Dialogs page, the Maintenance sequence is the one responsible for displaying the Uninstall/Repair/Modify dialogs, depending on the type of action selected. All you need to do is expand the tree, and edit the dialogs according to your needs. Also note that this wizard will not be visible when the uninstall is started from "Add/Remove Programs" or uninstall shortcut.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: Uninstallation Wizard

Hello Gabriel!

Thanks for your swift reply. I know that uninstallation wizard will be hidden if opted from "Add/Remove" OR "Uninstall shortcut".
But, i want to display this wizard. Is there any way to do this?
OR,
Is there way to display a dialog containing a progress bar, and after end of uninstallation, a message appear on dialog that "Uninstallation was successful".

Please help me sorting out this issue.

Thanks

Regards,
Vicky
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstallation Wizard

Hello Vicky,

The progress bar is already being displayed during uninstall. What you could do is to create a .vbs file with this content in it:

Code: Select all

MsgBox "Uninstallation was successful"
Call this custom action when the uninstall is finished. Windows Installer has no direct support for this, and using a custom action is the only solution.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
csuporj
Posts: 4
Joined: Fri Sep 11, 2009 9:10 pm
Contact: Website

Re: Uninstallation Wizard

I have the same problem. I didn't found a custom action which is run after the progress bar has finished. I tried InstallExecuteSequence / InstallFinalize / Script Inline with script text MsgBox "Uninstallation was successful" and Asynchronous execution, do not wait for return. The message box is shown behind the progress window and the progress window is closed only when I close the message box. So, what should I do ?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstallation Wizard

Hello,

The Script Inline custom action needs to be placed under InstallExecute standard action. Attached is a working example. I hope you will find it of use.

Regards,
Gabriel
Attachments
uninstallation.wizard.aip.zip
(2.1 KiB) Downloaded 615 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
csuporj
Posts: 4
Joined: Fri Sep 11, 2009 9:10 pm
Contact: Website

Re: Uninstallation Wizard

Your example does not work either. The message box appears behind the progress bar window. See the screenshot attached.
Attachments
UninstallFinsishedMessageBox.png
UninstallFinsishedMessageBox.png (281.14 KiB) Viewed 15212 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstallation Wizard

Hello,

This seems to be a limitation in the way Windows Installer handles message boxes. Attached is a Custom Action that overcomes this. Note that it must be set as Immediate in order to function properly.

Regards,
Gabriel
Attachments
InfoMessage.zip
(13.26 KiB) Downloaded 809 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
csuporj
Posts: 4
Joined: Fri Sep 11, 2009 9:10 pm
Contact: Website

Re: Uninstallation Wizard

Unfortunately your workaround does not work. Now the message box is always on top, but I can still press the Cancel button while the message box is shown. The installer then waits for the message box to be closed, then starts the canceling.
Attachments
UninstallFinished.zip
Your workaround put in an installer (this is what I tried with).
(16.99 KiB) Downloaded 887 times
Screenshot of the problem.
Screenshot of the problem.
CancelCanBePressed.png (69.9 KiB) Viewed 15187 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstallation Wizard

Hello,

Could you describe the exact behavior you need for the message box? Maybe even some features you would like it to support? We might consider adding this custom action to our list of predefined custom actions in a future version of Advanced Installer.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
wollka
Posts: 43
Joined: Sun Oct 22, 2006 6:30 pm

Re: Uninstallation Wizard

Does someone know why Microsoft Office 2007's Installer starts the installation Wizard (Uninstallation) even without "Are you sure to want to remove?.." message when you choose the Uninstall option? (They even don't have the appropriate option in their "Modify" wizard...)
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstallation Wizard

Hello,

Can you give us more details about what you are referring to? Perhaps some screenshots would be helpful too.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”