That scenario is not supported by the "shortcut versions" of SetProperty/SetDirectory. You can open a feature request but right now the behavior is known and by design (limitation).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robinson, David Sent: Thursday, August 28, 2008 07:16 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Duplicate symbols when using SetDirectory and SetProperty I have an install which needs to drop files into a products plugin folder. Unfortunately, the vendor decided to change the registry key under which the install location is found when they released a service pack. I would like to use SetDirectory with conditions rather than explicitly code the Type 51 custom actions, but I am getting duplicate symbol errors on compile for the following fragment. I tried using a single SetDirectory with two SetProperty elements (to say P.PRODUCT_X_PLUGINS_ACTUAL) but found the same issue with duplicate symbols for the SetProperty. Any suggestions, or should I log a feature/bug for this. <Fragment> <Property Id="P.PRODUCT_X_PLUGINS" > <RegistrySearch Id="RS.ProductXPlugins" Root="HKLM" Key="SOFTWARE\Vendor\X" Name="InstallDir" Type="directory" > <DirectorySearch Id="DS.ProductXPlugins" Path="Plugins" Depth="1"/> </RegistrySearch> </Property> <Property Id="P.PRODUCT_XSP1_PLUGINS" > <RegistrySearch Id="RS.ProductXSP1Plugins" Root="HKLM" Key="SOFTWARE\Vendor\XSP1" Name="InstallDir" Type="directory" > <DirectorySearch Id="DS.ProductXSP1Plugins" Path="Plugins" Depth="1"/> </RegistrySearch> </Property> <DirectoryRef Id="TARGETDIR"> <Directory Id="D.ProductX.Plugins"/> </DirectoryRef> <SetDirectory Id="D.ProductX.Plugins" Value="[P.PRODUCT_X_PLUGINS]" Sequence="execute">P.PRODUCT_X_PLUGINS</SetDirectory> <SetDirectory Id="D.ProductX.Plugins" Value="[P.PRODUCT_XSP1_PLUGINS]" Sequence="execute">P.PRODUCT_XSP1_PLUGINS</SetDirectory> </Fragment> David ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users