Showing the uninstall dialogs - Advanced Installer Community

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!

dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Showing the uninstall dialogs

Hi

If I create a shortcut to the unistaller of my app it is created with the following arguements:
/x [ProductCode]

Now if I want to ensure that the unistaller runs with the full set of dialogs as listed in the maintenance section (principally because I've attached a set of custom actions to them that I want to be sure get executed) what set of arguements should I pass. I thought that /f [ProductCode] would do but it would seem not.

I would like to ensure that the dialog sequenquens is run whether the user uses the shortcut provided or invokes it vial control panel add remove programs.

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

Re: Showing the uninstall dialogs

Hi Dom,

You can use /i to run it maintenance mode:

Code: Select all

msiexec.exe /i [ProductCode]
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Showing the uninstall dialogs

Thanks Cosmin

This works well for the shortcut that AI produces, but selecting uninstall from the control panel: add remove programs, still invokes just a basic uninstall dialog, and thus skips the custom actions attached to the uninstall dialogs. Would I be better off checking 'Disable Remove' from the product details page in this sort of case or is there a setting I could change in the table editor that would produce the desired effect. Thus far, despite a good look I've not found one, but there are a lot of them!

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

Re: Showing the uninstall dialogs

Hi Dom,

Setting "Disable Remove" option from Product Details page is the recommended approach. Uninstall option from Control Panel always uses "/x" parameter and it's not easy to modify.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”