Displaying a message after successful uninstall in a VS2010 deployment project? - visual-studio

My VS2010 setup project works OK, but the uninstall process is completely non-interactive. It displays a progress window like the one below, then it vanishes with no feedback to the user. The user interface editor in VS2010 has only trees for "Install" and "Administrative Install", not for "Uninstall".
How can I display a MsgBox saying "[Product] has been successfully uninstalled" after the uninstall is completed?

A simple solution is to add a Commit custom action and condition it with:
REMOVE = "ALL"
Another approach is to set the ARPNOREMOVE property in your MSI. In this case the Control Panel Programs and Features applet will show only the Change option, which uses full UI. The Uninstall option which uses basic UI will not be visible.

Related

WIx Installer: is there any way to auto close installer shield after successful installation

I want to auto close installer window on successful installation without pressing final close button.
Using wix installer can we able to achieve it.
Installation Result: This dialog is generally there to show whether the installation completed successfully or not - hence it is not a good idea to remove it. In fact there are usually several such exit dialogs: FatalError, UserExit and ExitDialog - depending on how the setup ended. Use Orca and go to: Tools => Dialog Preview to see what the dialogs look like.
Customize GUI: You can, however, remove the dialog from the sequence by customizing the standard WiX dialog set to be as you want it yourself. You can also remove all dialogs from an MSI, but not adding a default dialog set, but that is not recommended.
Some pointers on WiX GUI
Here is a sample on customizing WiX dialogs: https://github.com/glytzhkof/WiXCustomDialog
Here is a standard WiX GUI dialog set in use: https://github.com/glytzhkof/WiXDefaultDialogsSample (you can remove the dialogs by commenting out this line - then your setup has no dialogs except system dialogs).

Wix uninstall confirmation dialog on program and features (yes/no) before MSI progress bar

I have a ASP.NET Core web application that uses Wix to install and uninstall.
When I uninstall the MSI from program and features I wanted to create a confirmation dialog (yes/no) the moment I click remove this application on program and features.
Is it possible to add a dialog before the msi starts to uninstall.
If I click yes on the dialog the msi just continues to uninstall
If I click no the msi exists and doesnt uninstall
Background Information: About the Add / Remove Programs Buttons (towards bottom).
Default: I do get an "are you sure you want to uninstall" dialog before I get the UAC elevation prompt when trying to uninstall WiX MSI files at least? There is a "do not show this dialog again" check box though. Windows 10.
Silent Mode: The problem with what you ask is that you run the uninstall in silent mode when you invoke it from the Uninstall button in the ARP applet. This means that the entire InstallUISequence is skipped and only the InstallExecuteSequence runs - and there should be no dialogs shown from this sequence.
Options: I can think of a couple of options off the top of my head.
Breaking Radio Silence: You can insert a custom action showing a prompt in the InstallExecuteSequence anyway, but it is not recommended. You would have to condition it very well to make sure it does not show up unexpectedly. That would entail detecting that it is not a major upgrade and a number of other things I would not recommend trying. Too many things to work out and too much that can go wrong.
Modify Button Only: You can hide the Uninstall button and just leave "Modify" in place in the ARP applet dialog?
That
way your setup will be triggered in GUI mode, and you can insert a
dialog there if you want to, but you also have plenty of opportunity
to cancel the Uninstall before it is invoked. You don't even need an extra dialog?
To achieve this, set in Property Table: ARPNOREPAIR = 1 and ARPNOREMOVE = 1.
Links:
InstrallShield Basic MSI uninstall does not display a dialog with Finish button

How to do the uninstall process by using UI dialog box?

i.e. If i click the uninstall button in UI dialog box It should process uninstall for my msi file. what things i need to add to the wix coding and is that custom action need for this?
There is no need for a custom action.
You will have to include one of the Wix provided dialog sets as part of your installer source code.
http://wixtoolset.org/documentation/manual/v3/wixui/dialog_reference/wixui_minimal.html
Your requirement can very well be met by making use of the WixUI_Minimal dialog set.
For an example of how to include a built in dialog set to your installer, please see the following URL:
http://wixtoolset.org/documentation/manual/v3/wixui/wixui_dialog_library.html
Hope this helps.

WiX uninstall GUI

I'm creating an installer using wix for my project. For the installation of the project, wix uses a GUI
based on WIXUI_Mondo. When the application is uninstalled from control panel, the user just sees a small box with a progress bar. But i want to add a window asking the user if he made a backup of the configuration file for future use. In that window i also want to add two buttons one to proceed the uninstallation and another to abort the uninstall process.
I can't find anything on google about this, so do you guys know if this is possible and how i can achieve this?
Thanks in advance
You should be able to achieve this by setting the ARPNOREMOVE property. This will disable the Remove button so users have to run the Modify button to activate uninstall.
As far as I know there is no UI during uninstalling. The only way is a custom action (e.g. from DLL) with a dialog window.

uninstall dialogs

I am composing a setup project in VS2010 . I want to add a dialog with checkbox for the user to specify if he wants to delete the database or not. But I can't figure out how to do it: the user interface doesn't represent the uninstall dialogs on the "view dialogs" form. So I can show a messagebox instead, but then there is another problem: how can a person specify whether the database should be deleted or not if the uninstaller is launched in a quited mode? In that case some parameters should be passed to the setup project somehow. Got any thoughts?
Right now I am trying to use Orca, it is a part of Windows Installer SDK.
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
It might solve my problem.

Resources