When you install to the GAC, it doesn't really matter which directory it is
under since the GAC is a fixed location. I usually put them under TARGETDIR
because the keypath needs to remain the same and that directory never changes
through different versions of your code.

The component that is copied to the install directory does need to be under
that directory or directory ref.

-----Original Message-----
From: Ravi Raj [mailto:raviraj.callin...@gmail.com] 
Sent: 19 January 2012 13:38
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installing DLLs in GAC as well as copying it
tosomefolder.

Again will both component has the same DirectoryRef Id tag?
I am using:

<DirectoryRef Id="MyProgramDir">      <Component Id="CMP_DEF"
       Guid="D386A071-650A-4333-BF96-6798ABDC9D66">        <File
Id="File_DEF"              Source="$(var.DefFilesPath)Def.dll"
     KeyPath="yes" />      </Component>    </DirectoryRef>


I am getting error on compiling:

ICE30: The target file 'wegfw8_n.dll|Def.dll' is installed in
'[ProgramFilesFolder]\MyProduct\Files\' by two different components on an
LFN system: 'CMP_DEF' and 'CMP_DEF_GAC'.

On Thu, Jan 19, 2012 at 7:01 PM, Ravi Raj <raviraj.callin...@gmail.com>wrote:

> So should I use  Assembly=".net" in that component?
>
>
> On Thu, Jan 19, 2012 at 6:36 PM, Peter Shirtcliffe
<pshirtcli...@sdl.com>wrote:
>
>> You have to create two components - one for each location.
>>
>> -----Original Message-----
>> From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
>> Sent: 19 January 2012 13:02
>> To: wix-users@lists.sourceforge.net
>> Subject: [WiX-users] Installing DLLs in GAC as well as copying it to
>> somefolder.
>>
>> Hi,
>> I want to install a DLL into GAC as well as I want to copy it to my
>> installation folder. I cannot do this at the same time.
>> I can successfully deploy it to GAC, using:
>>
>> <DirectoryRef Id="MyProgramDir">      <Component Id="CMP_DEF_GAC"
>>           Guid="D386A070-650A-4333-BF96-6798ABDC9D66">        <File
>> Id="File_DEF_GAC"              Assembly=".net"
>> Source="$(var.DefFilesPath)Def.dll"              KeyPath="yes" />
>> </Component>    </DirectoryRef>
>>
>> But how can I copy it to the installation directory (MyProgramDir) too?
>>
>> --
>> Thanks and Regards,
>> Ravi Raj
>>
>>
-----------------------------------------------------------------------------
>> -
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> SDL PLC confidential, all rights reserved.
>> If you are not the intended recipient of this mail SDL requests and
>> requires that you delete it without acting upon or copying any of its
>> contents, and we further request that you advise us.
>> SDL PLC is a public limited company registered in England and Wales.
>>  Registered number: 02675207.
>> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
>> SL6 7DY, UK.
>>
>>
>>
>>
-----------------------------------------------------------------------------
-
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> --
> Thanks and Regards,
> Ravi Raj
>
>


-- 
Thanks and Regards,
Ravi Raj
-----------------------------------------------------------------------------
-
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to