I have two features that reference the same WixLibs but use two different
folders...
<Feature Id="Feature_Admin"
Title="MyCorp Admin Console"
Level="1"
Display="expand"
ConfigurableDirectory="INSTALLFOLDER">
<ComponentRef Id="blah"/>
<ComponentGroupRef Id="cmpgrp_DomainTypes"/>
<ComponentGroupRef Id="cmpgrp_Log4Net"/>
<ComponentGroupRef Id="cmpgrp_NServiceBus" />
<ComponentGroupRef Id="cmpgrp_SharedServiceFiles" />
<ComponentGroupRef Id="cmpgrp_WcfServiceBehaviors"/>
</Feature>
<Feature Id="Feature_Database"
Title="MyCorp Database"
Level="1"
Display="expand"
ConfigurableDirectory="INSTALLFOLDER">
<ComponentRef Id="cmp_MyCorpDBScript"/>
<ComponentGroupRef Id="cmpgrp_DomainTypes"/>
<ComponentGroupRef Id="cmpgrp_Log4Net"/>
<ComponentGroupRef Id="cmpgrp_NServiceBus" />
<ComponentGroupRef Id="cmpgrp_MyCorpSharedDataDlls"/>
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="DIRECTORY_PATH_SERVER" DiskId="1">
<Component Id="cmp_WebConfig" Guid="{SOME GUID}">
<File Id="filC22325F3080CE65F56D9F2EA30D8AAFA" KeyPath="yes"
Source="$(var.sourcePath)Web\Admin\MyCorp.Admin\Global.asax" />
<File Id="fil689704CC6D3AB2AA6D2664BC117360B7"
Source="$(var.sourcePath)Web\Admin\MyCorp.Admin\Web.config" />
<File Id="file_FaviconIco"
Source="$(var.sourcePath)Web\Admin\MyCorp.Admin\favicon.ico" />
</Component>
<Directory Id="WixLibRedirectFolder" Name="bin">
<Component Id="cmp_SharedServicesFiles" Guid="{SOME GUID}">
<File Id="file_SettingsDll"
Source="$(var.tssSourcePath)\MyCorp.Settings\MyCorp.Settings.dll" />
</Component>
...
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MyCorp" DiskId="1">
<Directory Id="ProgramFilesFolder.ConfigUtil" Name="ConfigUtil"
DiskId="1">
<Directory Id="WixLibRedirectFolder">
<Component Id="cmp_MyCorpDBScript" Guid="{SOME GUID}">
<File Id="file_MyCorpDBScript"
Name="MyCorp_DB_Script_Baseline.sql"
Source="$(var.tssSourcePath)\MyCorp.ConfigUtil\MyCorp_DB_Script.sql" />
<File Id="file_InstallBasic" Name="InstallBasic.sql"
Source="$(var.tssSourcePath)\MyCorp.ConfigUtil\InstallBasic.sql" />
</Component>
A typical WixLib is like:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include $(var.SolutionDir)\Includes\Variables.wxi ?>
<Fragment>
<ComponentGroup Id="cmpgrp_NServiceBus" Directory="WixLibRedirectFolder"
>
<Component Id="cmp_NServiceBusAssembly" Guid="{SOME GUID}">
<File Id="file_NServiceBusAssembly" KeyPath="yes"
Name="NServiceBus.dll"
Source="$(var.sourcePath)packages\NServiceBus.Interfaces.3.3.3\lib\net40\NServiceBus.dll"/>
</Component>
But when I compile I get this error:
Error 15 Duplicate symbol 'Directory:WixLibRedirectFolder' found. This
typically means that an Id is duplicated. Check to make sure all your
identifiers of a given type (File, Component, Feature) are unique.
C:\Dev\Core
Technologies\Releases\4.0.CTP1\Setup\Admin_Console_Setup\Product.wxs 563
1
Admin_Console_Setup
How do I go around this issue?
thanks,
Steve
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Reference-wixlibs-in-two-different-Features-tp7583361.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users