We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Shortcut to uninstall

Hi,

I have provided a new shortcut to uninstall in "application shortcut folder" which appears in the Programs->product->shortcut menu. When I click on this short cut, I get a message box which says "Are you sure you want to uninstall the product?" with title bar as "Windows Installer". This does not show the actual product name. Also does not display an icon.

Whereas from Control panel->Add/remove Programs->Remove, I get a better message(i.e "Are you sure you want to remove Softphone from your computer") along with a question mark icon.

Is it possible to give the a better message in the uninstall shortcut?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcut to uninstall

Hello,

In order to achieve what you want you can take a look on our "Enhanced UI in uninstall problem" article.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Shortcut to uninstall

Hi Daniel,

Thanks for the response.

I have gone thru the http://www.advancedinstaller.com/user-g ... ed-ui.html, and I guess this seems to be having "better user interface". But in the documentation, it also says following needs to be installed on the target machine
  • Windows 2000 Service Pack 4
    Windows Installer 2.0
I have few questions
1) Does it mean either of them need to be installed OR both of them need to be installed?
2) Now, I have setup which works fine on xp, win7 and vista(both 32 bit and 64 bit), if I change this to "enhanced ui" and rebuild, would everything work as it is??

Regards,
Rohan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcut to uninstall

Hello Rohan,
1) Does it mean either of them need to be installed OR both of them need to be installed?
Both of them (or a newer version of them) should be installed.
2) Now, I have setup which works fine on xp, win7 and vista(both 32 bit and 64 bit), if I change this to "enhanced ui" and rebuild, would everything work as it is??
Yes, the package will work as expected. Also, please keep in mind that if you will enable the Enhanced UI, then the created output installation package will be an EXE bootstrapper.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Shortcut to uninstall

Hi Daniel,

I tried this solution, this uninstalls the application without showing confirmation dialog. It it possible to show a confirmation dialog?

Regards,
Rohan
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Shortcut to uninstall

Any update on this??
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcut to uninstall

Hello,

In order to achieve what you want you can proceed like this:
- Go to "Files and Folders" page and add a shortcut to uninstall like this:
  • Arguments: /i [ProductCode] ASK="uninstall"
    Shortcut Target: [AI_UNINSTALLER]
- Go to "Table Editor" page and select the "Registry" table. Set the "Value" field of the "UninstallString" row like this:

Code: Select all

[AI_UNINSTALLER] /i [ProductCode] ASK="uninstall"
- Go to "Dialogs" page and add a new dialog in sequence (i.e. NewSeqDialog) after "Maintenance -> PrepareDlg". Here add a check box control like this:
  • Text: Uninstall
    Property Name: ANSWER
    Value: checked
    Default Value: checked
- On the [Next>] button add the following published event:
  • Name: Uninstall one or more features
    Argument: ALL
    Condition:
- Go to "Table Editor" page, select the "InstallUISequence" table and set the "Condition" field of the "ExitDialog" row like this:

Code: Select all

(NOT AiSkipExitDlg OR NOT AI_INSTALL) AND NOT ASK
- Go to "Custom Actions" page, select the "Wizard Dialogs Stage" and from its context menu choose "Show standard action -> User Selection -> MaintenanceWelcomeDlg". In the "Execution Condition" field, from "Standard Action Properties" right pane, set the following condition:

Code: Select all

NOT ASK
- Select the "Wizard Dialogs Stage" and from its context menu choose "Show standard action -> ExecuteAction". In the "Execution Condition" field, from "Standard Action Properties" right pane, set the following condition:

Code: Select all

ANSWER OR NOT ASK
- Move the "NewSeqDialog" custom action under "Wizard Dialogs Stage -> User Selection -> ResumeDlg". In the "Execution Condition" field, from "Standard Action Properties" right pane, set the following condition:

Code: Select all

ASK
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Shortcut to uninstall

Thanks for your help. Its working fine
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcut to uninstall

You're welcome. Glad to help.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Shortcut to uninstall

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
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Shortcut to uninstall

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Shortcut to uninstall

You're welcome Rohan,

If there is anything else I can help you with, please let me know.

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

Return to “Building Installers”