>From your code fragment it seems like you're trying to use the inner text of your publish tags to set your property. Inner text doesn't work like that, it's generally used as a condition on the element (with some exceptions like Text Controls).
Try modifying the code for your "yes" and "no" buttons to the following: <Control Id="yes" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Text="Yes"> <Publish Property="INSTALL_FILE" Value="1">1</Publish> <Publish Event="EndDialog" Value="Return" >1</Publish> </Control> <Control Id="no" Type="PushButton" X="240" Y="243" Width="56" Height="17" Default="yes" Text="No"> <Publish Property="INSTALL_FILE" Value="0">1</Publish> <Publish Event="EndDialog" Value="Return" >1</Publish> </Control> That should achieve what you're trying to do with those buttons. The 1 in the inner text just means it always does the Publish events when they are clicked. See the Publish Element in the WiX.chm for more information. Hope this helps and good luck. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: ron cooper [mailto:roncooper...@gmail.com] Sent: 20 April 2009 13:25 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Custom Dialog - Property Setting Dear All, I want to create installer for my application which check existence of a database file located somewhere. If it found the file, it should ask the user whether to replace it or not. Till now I have succeed in checking and launching a custom dialog as mentioned above. I have provided buttons 'Yes' and 'No'. If user clicks on 'Yes', I want a public property to be set to "1" and if user clicks on 'No' it should set to "0" without disturbing further installation process. Here is my code <Property Id="INSTALL_FILE" Value="xxx"/> <UI> <Dialog Id="FILE_Dialog" Width="370" Height="270" Title="[ProductName]" NoMinimize="yes"> <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes"> <Text>The Setup has found database instance on your system. Do you want to remove it...</Text> </Control> <Control Id="yes" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Text="Yes"> <Publish Event="EndDialog" Value="Return" > INSTALL_FILE="1 " <=================== </Publish> </Control> <Control Id="no" Type="PushButton" X="240" Y="243" Width="56" Height="17" Default="yes" Text="No"> <Publish Event="EndDialog" Value="Return" > INSTALL_FILE="0" <=================== </Publish> </Control> </Dialog> </UI> <InstallUISequence> <Show Dialog="FILE_Dialog" Before="ExecuteAction"> <![CDATA[ FILE_EXIST ]]> </Show> </InstallUISequence> I am getting stucked at arrow pointed lines. The property 'INSTALL_FILE' is not getting set here. Basically what I want to do is storing this property value in registry and then take appropriate action while running my application exe. Thanks Pally Sandher sir/mam for regularly giving suggestions and thanks to all for making so efforts. Anyone having ideas??? Regards, Ron ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users