[wix-users] how to switch a button on a dialog? (Modifying WiX dialogs)

Joel Budreau joel.budreau at gmail.com
Thu Oct 12 20:36:07 PDT 2017


You could probably create two install buttons on the same dialog. One with ElevationShield=“yes” and one with “no”. Then use the ControlEvent table to show/hide the buttons based on the user’s radio button choice.

- Joel

> On Oct 12, 2017, at 7:28 PM, Alan Sinclair via wix-users <wix-users at lists.wixtoolset.org> wrote:
> 
> thanks but I obviously didn't make my question clear.
> 
> On one single dialog is it possible to have a button which changes, without
> moving to a new dialog?
> That is, on the InstallScope dialog I show an Install button
> When the user selects the per-machine radiobutton then the Install button
> should show the shield ON THAT DIALOG
> Likewise, if the user selects per-user radiobutton then that same dialog
> should show the Install button without the shield
> 
> Thanks
> Alan
> 
> 
> On Mon, Oct 9, 2017 at 9:44 PM, Nir Bar via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
> 
>> You can create two buttons- one with the shield and the other without.Then
>> use a Condition element to determine which of them will be visible.
>> Take example from WiX source file VerifyReadyDlg.wxs
>> 
>> 
>> 
>> 
>> 
>> --Independent WiX Expert. Creator of-
>> https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ____________________________________________________________________
>> 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