We have been using the CustomizeDlg from the wix UI extension library for the feature selection dialog box, but a new requirement has come up which states that the browse button should be disabled if the software is being updated.
So I copied the dialog wxs file from the library in order to customize it, changed the code as follows
<Control Id="Tree" Type="SelectionTree" X="25" Y="85" Width="175" Height="115" Property="_BrowseProperty" Sunken="yes" TabSkip="no" Text="!(loc.CustomizeDlgTree)" />
<Control Id="Browse" Type="PushButton" X="294" Y="210" Width="66" Height="17" Text="!(loc.CustomizeDlgBrowse)">
<Publish Event="SelectionBrowse" Value="BrowseDlg">1</Publish>
<Condition Action="hide">Installed</Condition>
<Condition Action="disable">UPGRADE = 1</Condition>
</Control>
problem is that the browse button never gets disabled, can someone point out what i am doing wrong here ?
many thanks