Oops, nevermind. The condition goes inside the Custom element in the install sequence, not in the CustomAction element.
Tim On Thu, Jun 12, 2008 at 11:50 AM, Tim Fisher <[EMAIL PROTECTED]> wrote: > If I try to compile that, it tells me the CustomAction element > contains illegal inner text. :( > > Tim > > On Thu, Jun 12, 2008 at 11:08 AM, Brian Simoneau > <[EMAIL PROTECTED]> wrote: >> >> Use a custom action to set ANOTHER_PROP to PROP1 with a condition that >> PROP1 exists. Something like >> <CustomAction Id="SetANOTHER_PROP" Property="ANOTHER_PROP" >> Value="[PROP1]"/> >> <Custom Action="SetANOTHER_PROP">PROP1</Custom> >> You can do the same thing for PROP2 or set PROP2 as the default value of >> ANOTHER_PROP since it is the else case. >> >> -Brian Simoneau >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Friedrich >> Dominicus >> Sent: Thursday, June 12, 2008 7:58 AM >> To: wix-users@lists.sourceforge.net >> Subject: [WiX-users] Setting properties >> >> Well I can not find any example for this >> >> assume two properties (containing pathes) >> So let's ahve PROP1 = c:\foo >> if it is set then >> ANOTHER_PROP = PROP one can do that with >> <Property ... value=[PROP1]> >> >> But when this is not set then it should look for PROP2 >> if PROP2 is set then this value should be used. >> >> So I have in pseudo code >> if (Set(PROP1)) >> ANOTHER_PROP=PROP1 >> else >> ANOTER_PROP=PROP2 >> end if >> >> >> Is there an easy way for achieving that with wix? >> >> Regards >> Friedrich >> >> >> >> >> ------------------------------------------------------------------------ >> - >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users