Using WiX 3.0.5106.0, I'm not seeing this behavior; Inside a fragment, I am
specifying file entries under a directory ref like so:

<DirectoryRef Id="MyFolder">
  <Component Id="MyAssembly">
    <File Id="FirstAssemblyName.dll" KeyPath="yes"
Source="$(var.BuildSourcePath)\FirstAssemblyName.dll" Assembly=".net">
  </Component>
  <Component Id="MyOtherAssembly">
    <File Id="SecondAssemblyName.dll" KeyPath="yes"
Source="$(var.BuildSourcePath)\SecondAssemblyName.dll" Assembly=".net">
  </Component>
   etc...
</DirectoryRef>


When the product is installed, the assemblies appear in both MyFolder, and
the GAC.  This is contrary to what Eitan is saying (Assemblies are installed
to the GAC regardless of their position in the directory tree).

The way it behaves now (installs into MyFolder AND the GAC) is actually the
desired behavior for this product but I want to make sure I'm specifying the
entries correctly and its not a fortuitous side-effect of me writing an
incorrect WiX file.

Thanks.



Eitan Behar-3 wrote:
> 
> Very simple, just use the file property Assembly=".net" that way the file
> will go to the GAC regardless of its position in the directory tree.
> Notice
> that if you want the DLL also in Program Files\YourApp\bin, you need
> another
> component.
> 
> 
> 
> -----Original Message-----
> From: Wong Shao Voon [mailto:shaov...@yahoo.com] 
> Sent: Wednesday, October 08, 2008 11:55 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] How to GAC .Net assemblies the correct way?
> 
> Hey guys,
> 
> I could use a custom action to gacutil the .Net dlls into the GAC. But I
> searched that WiX and MSI has the correct way of GAC'ing the dlls, instead
> of using gacutil.exe . After I googled, I still couldn't find a single
> example on how to do it. Could someone kind enough to enlighten me the
> correct way to specify it in the WXS file?
> 
> Thank you very much!
> 
> And have a nice day!
> 
> Best regards,
> Shao Voon
> 
> 
> 
>       
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-GAC-.Net-assemblies-the-correct-way--tp1306183p2493902.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to