[wix-users] During uninstall from control panel how to disable cancel button of WIX MSI installer

Hoover, Jacob Jacob.Hoover at greenheck.com
Thu Sep 17 10:50:14 PDT 2015


If that is truly the reason for disabling the canceling of a un-install, then my suggestion would be to fix the rollback bug.  Phil's suggestion should work though.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phil Wilson
Sent: Wednesday, September 16, 2015 12:25 PM
To: 'WiX Toolset Users Mailing List'
Subject: Re: [wix-users] During uninstall from control panel how to disable cancel button of WIX MSI installer

Disabling an uninstall Cancel is typically done because the rollback that re-installs the product doesn't work, and that's unfortunately related to the design of the install. 

Anyway, the question isn't too clear to me but it looks like there is a full UI uninstall that disables the Cancel, so the issue is how to deal with a Control Panel or other minimal UI uninstall. The solution is to have a custom action early in the execute sequence that disables the Cancel button (the code for which is at that second link). However, it appears that the Cancel button needs to be disabled during uninstall for all uninstall types, so I don't understand why that custom action can't simply be called all the time, regardless of what UI is shown. Perhaps I've misunderstood the issue. 

The uninstall string in the registry isn't used to uninstall the product - Windows knows it's MSI-based and just calls MsiConfigureProduct () or similar to do the uninstall. 

Phil 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Hoover, Jacob
Sent: Wednesday, September 16, 2015 9:14 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] During uninstall from control panel how to disable cancel button of WIX MSI installer

Simple question.... Why would you want to disable canceling an uninstall?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Ankur
Sent: Wednesday, September 16, 2015 1:34 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] During uninstall from control panel how to disable cancel button of WIX MSI installer

Hi All,

I have built an MSI Installer using WIX. And I want to disable cancel button only when user is performing uninstall from Control panel or performing uninstall in basic mode (/qb).

*Note:*

   1. In full mode (/qf) installer is disabling Cancel button.
   2. We have only one custom dialog and all other dialogs like Welcome,
   EULA, InstallDir, etc... are from WixUIExtension.dll

In following links I got some information regarding this:

http://blogs.msdn.com/b/astebner/archive/2010/05/12/10011664.aspx

https://msdn.microsoft.com/en-us/library/aa368791(v=vs.85).aspx

As per link 1 & 2 by executing uninstall from command line using /qb!
parameter will disable the cancel button. So, in this way it is possible to disable but user mostly do it from Control panel.
I also appended /qb! parameter under uninstall (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Product Code}) in registry. But that also did not work for me.

Is their any WIX property which I can use to disable cancel button? Or what will be the correct way to handle this scenario?


Thanks & Best Regards,
Ankur Jain

<http://vitallabs.in>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list