Dear All, I have some confusion, which I am hoping that one of you would be pleased to clear.
There are two sections in my wix file. One that has the Publish elements and the other that defines the Dialog element. as follows <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="MyLicenseAgreementDlg">1</Publish> <Publish Dialog="MyLicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> <Publish Dialog="MyLicenseAgreementDlg" Control="Next" Event="NewDialog" Value="MathPlayerDlg">NOT MATHPLAYERFOUND</Publish> . . . . . and so on and so forth.. and then the Dialog Element <Dialog Id="MyLicenseAgreementDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)"> <Control Id="MyLicenseAcceptedCheckBox" Type="CheckBox" X="20" Y="207" Width="330" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="I accept the terms in the agreement" /> <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> ... .... .... .... ... </Dialog> My questions are as follows 1) Why does the Publish element have the Control = "Next" attribute, when there is a Control Element in the corresponding Dialog element. Is both required? if yes then why? 2) I have a requirement where the next button could be Either CustomDialog or INstallDirDlg Depending on a condition If MathPlayer Doesnt exists in the system, then I need to bring MathPLayerDlg for Installing MathPLayerDlg is my custom Dialogbox. If the Mathplayer is alredady there in the system, then I need to Skip the MathplayerDLg and then go to the INstallDirDLg. This should happen on both forward flow and reverse flow. The way I test for the presence of mathplayer is by a property <Property Id="MATHPLAYERFOUND"> <RegistrySearch Id="MathPlayerRegistry" Root="HKCR" Key="CLSID\{32F66A20-7614-11D4-BD11-00104BD3F987}" Type="raw"/> </Property> I was hoping that I can control the next Dialog by putting the condition in the publish like following <Publish Dialog="MyLicenseAgreementDlg" Control="Next" Event="NewDialog" Value="MathPlayerDlg">NOT MATHPLAYERFOUND</Publish> <Publish Dialog="MyLicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">MATHPLAYERFOUND</Publish> SO if NOT MATHPLAYERFOUND then go to the MathPlayerDlg. if MATHPLAYERFOUND then go to InstallDirDlg This is not working.. obviously it should be wrong.. this throws C:\Vasu.wxs(70) : error LGHT0091 : Duplicate symbol 'ControlEvent:MyLicenseAgreementDlg/Next/NewDialog/MathPlayerDlg /NOT MATHPLAYERFOUND' found. C:\Vasu.wxs(136) : error LGHT0092 : Location of symbol related to previous error. I shall be very thankful if someone can please let me know how to get to where I am heading towards. Thanks Vasu ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users