Wix : Disable control in built-in dialog


I am using WiX and want to know if we can disable a control in a built-in dialog. My requirement is to disable the "Browse" button in the "CustomizeDlg".


This became too long for a comment. I might "evolve" it as an answer if we get more information about your scenario. Just a couple of heads-ups for you.

If you are trying to prevent the setup from being installed to a non-standard path, then you should account for the fact that the installation directory can be set at the msiexec.exe command line when the setup is installed in silent mode. <a href="https://stackoverflow.com/a/8841965/129130" rel="nofollow">Sample</a> (untested by me - first thing I found :-) ).

I suppose a custom action could be used to abort the setup if it is installed in silent mode to a non-standard path? An immediate mode custom action before InstallInitialize somewhere I guess, but after costing actions (CostInitialize, CostFinalize, FileCost, InstallValidate, etc...) - but frankly, why do this? Perhaps you could illuminate your use-case?

Oh, and please don't leave the standard action RemoveExistingProducts to run before your custom action (in the InstallExecuteSequence). This would remove the existing, related installation on the box (if any) and then abort the major upgrade operation leaving no install left on the box.

And don't add your custom action to the user interface sequence - there is no need. This sequence is entirely skipped in silent installation mode, and if there is no way to set a custom path in the GUI, it can't be changed there anyway (and the InstallExecuteSequence's custom action would catch any changes should they be set anyway - it will do).


Per <a href="http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Mondo-UI-browse-button-disabled-td699237.html" rel="nofollow">this thread</a> which discusses how to enable the button, what you need to do is the reverse: ensure your <a href="http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Mondo-UI-browse-button-disabled-td699237.html" rel="nofollow">Feature elements</a> do not specify a <a href="https://stackoverflow.com/questions/24825154/what-is-the-meaning-of-wix-configurable-directory" rel="nofollow">ConfigurableDirectory</a>, or that it is not public by using some lowercase letters in the identifier.


  • MsiExec.exe product id uninstall [duplicate]
  • IExpress Post Installation Batch with NodeJS not finding NPM immediately
  • Forcing WiX Burn bootstrapper to allow MSI files to use REINSTALLMODE=amus
  • How to show installer to the user
  • CUDA NSight is not installed with CUDA 5.0 installation file on Windows 8? [closed]
  • Generating anchors with PyYAML.dump()?
  • Add Windows Feature from C#
  • Configure Spring's MappingJacksonHttpMessageConverter
  • aapt.exe'' finished with non-zero exit value 1
  • How to autopopulate a field in SugarCRM form
  • Web.config system.webserver errors
  • Tamper-proof configuration files in .NET?
  • Code in Job's Script Block after Start-Process Does not Execute
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • How to suppress a dialog
  • How to use carriage return with multiple line?
  • Why does access(2) check for real and not effective UID?
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • Control modification in presentation layer
  • Java Scanner input dilemma. Automatically inputs without allowing user to type
  • Jenkins: How To Build multiple projects from a TFS repository?
  • What is the “return” in scheme?
  • How do I fake an specific browser client when using Java's Net library?
  • script to move all files from one location to another location
  • ILMerge & Keep Assembly Name
  • Running a C# exe file
  • Updated Ionic CLI but shows previous version (Windows)
  • Symfony2: How to get request parameter
  • Adding custom controls to a full screen movie
  • Apache 2.4 - remove | delete | uninstall
  • Confusion with PayPal's monthly billing cycle
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How to set the response of a form post action to a iframe source?
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • reshape alternating columns in less time and using less memory