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

Hoover, Jacob Jacob.Hoover at greenheck.com
Wed Sep 16 09:14:23 PDT 2015


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/



More information about the wix-users mailing list