I would like to set the environment variable using a checkbox. The checkbox should be checked by default, meaning environment variable should be set unless the user unchecks it.
<Component Id="MyENV" Guid="{45669CAC-166D-4569-900A-6EF775EDC8F5}"> <Environment Id="MYHOME" Name="MY_HOME" Action="set" Part="all" Value="[INSTALLDIR]" System="yes" Permanent="no" /> <Condition>EnvironmentSetCheck</Condition> </Component> <Control Id="UCheckBoxMYHOME" Type="CheckBox" Text="Set MY_HOME Environment variable" X="54" Y="56" Height="18" Width="240" Property="EnvironmentSetCheck" CheckBoxValue="1"> <Property Id="EnvironmentSetCheck">1</Property> I have tried different combinations by either setting the EnvironmentSetCheck property to 1 or using checkboxValue="1" but nothing seems to be doing what I want. Either it sets the environment variable whether its checked or unchecked, or the value is never set. Any help is appreciated, I am getting frustrated with that. ____________________________________________________________________________________ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users