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

Ankur ankur at vitallabsinc.com
Tue Sep 15 23:34:17 PDT 2015


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>


More information about the wix-users mailing list