I have a scenario in which i check for the user rights (whether a standard user or admin):
i am using something like:
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="!(loc.WixUINext)">
<Condition Message="Message text">Privileged</Condition>
<Publish Property="ALLUSERS" Value="1">INSTALLPREFA = "Every"</Publish>
<Publish Event="NewDialog" Value="MyInstallDirDlg">1</Publish>
However it generates as error :
C:\myproject\MyInstallPrefa.wxs(25) : error CNDL0005 : The Publish element c ontains an
unexpected child element 'Condition'.
Can't i check for admin rights inside a in a custom dialog , kindly help!!!.
Thanks