Why do I get duplicate symbol found?

2 messages Options
Embed this post
Permalink
Richard-45

Why do I get duplicate symbol found?

Reply Threaded More More options
Print post
Permalink
I have the following searches setup to scrape values from an ini file
into properties

<Property Id="INI_INSTALL_LOCATION">
    <IniFileSearch Id="Read.dzInstall.ini_dzHexagonInstallDir"
            Name="dzInstall.ini" Section="ApplicationPath"
            Key="dzHexagonInstallDir">
        <DirectorySearch Id="CommonFilesFolder_dzInstall.ini"
                Path="[CommonFilesFolder]">
            <FileSearch Name="dzInstall.ini"/>
        </DirectorySearch>
    </IniFileSearch>
</Property>
<Property Id="INI_ICON_GROUP">
    <IniFileSearch Id="Read.dzInstall.ini_dzHexagonIconGroup"
            Name="dzInstall.ini" Section="ApplicationPath"
            Key="dzHexagonIconGroup">
        <DirectorySearchRef Id="CommonFilesFolder_dzInstall.ini">
            <FileSearch Name="dzInstall.ini"/>
        </DirectorySearchRef>
    </IniFileSearch>
</Property>

I'm attempting to reuse the existing DirectorySearch with a
DirectorySearchRef to avoid duplication.  Yet, when I do this, I get
the following error from WiX 3.0:

Product.wxs(9,0): error LGHT0091: Duplicate symbol 'Signature:CommonFilesFolder_dzInstall.ini' found.
Product.wxs(16,0): error LGHT0092: Location of symbol related to previous error.

Line 9 refers to the <DirectorySearch> and line 16 referes to the
<DirectorySearchRef>.

What am I doing wrong?
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: Why do I get duplicate symbol found?

Reply Threaded More More options
Print post
Permalink
Most likely caused by the duplicate FileSearch elements. There are a couple
scenarios with AppSearch that just aren't handled correctly. The AppSearch
design is a real pain and it always takes me a while to finally sort out how
to make it all work.

On Thu, Nov 5, 2009 at 9:52 AM, Richard <[hidden email]> wrote:

> I have the following searches setup to scrape values from an ini file
> into properties
>
> <Property Id="INI_INSTALL_LOCATION">
>    <IniFileSearch Id="Read.dzInstall.ini_dzHexagonInstallDir"
>            Name="dzInstall.ini" Section="ApplicationPath"
>            Key="dzHexagonInstallDir">
>        <DirectorySearch Id="CommonFilesFolder_dzInstall.ini"
>                Path="[CommonFilesFolder]">
>            <FileSearch Name="dzInstall.ini"/>
>        </DirectorySearch>
>    </IniFileSearch>
> </Property>
> <Property Id="INI_ICON_GROUP">
>    <IniFileSearch Id="Read.dzInstall.ini_dzHexagonIconGroup"
>            Name="dzInstall.ini" Section="ApplicationPath"
>            Key="dzHexagonIconGroup">
>        <DirectorySearchRef Id="CommonFilesFolder_dzInstall.ini">
>            <FileSearch Name="dzInstall.ini"/>
>        </DirectorySearchRef>
>    </IniFileSearch>
> </Property>
>
> I'm attempting to reuse the existing DirectorySearch with a
> DirectorySearchRef to avoid duplication.  Yet, when I do this, I get
> the following error from WiX 3.0:
>
> Product.wxs(9,0): error LGHT0091: Duplicate symbol
> 'Signature:CommonFilesFolder_dzInstall.ini' found.
> Product.wxs(16,0): error LGHT0092: Location of symbol related to previous
> error.
>
> Line 9 refers to the <DirectorySearch> and line 16 referes to the
> <DirectorySearchRef>.
>
> What am I doing wrong?
> --
> "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
>  <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
>
>      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users