Hmmm.  You shouldn't have to harvest file by file for heat.  The usual practice 
is to harvest part or all of a tree.  You can use an XSLT transform passed to 
Heat to add the assembly attribute if this is necessary.

That being said, it is very unusual to push the majority of a product's 
assemblies into the GAC.  The only deployment I've ever worked on that required 
this treatment was a BizTalk application.  Push a lot of assemblies into the 
GAC is likely to make your product very unpopular with any product that also 
uses those assemblies--especially if the expected AssemblyVersions are 
different.

The general practice is to GAC only a few, stable assemblies used by multiplce 
applications to the GAC.

You may be looking for load time performance improvements.  The GAC has some 
effect on this, but NGEN has even more effect.  Wix completely supports 
NGEN'ing through the NetFX extension.

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|[email protected]



-----Original Message-----
From: ssmsam [mailto:[email protected]] 
Sent: Monday, November 17, 2014 10:04 AM
To: [email protected]
Subject: Re: [WiX-users] How to register all the dlls in a folder and sub 
folder to GAC using heat.exe

Hi Sir,
I had gone through that thread before.It says how to automate  the task of 
generating components for all files in a folder/sub folder as a whole. But it 
does not tell about how push a dll file to GAC/DllRegisterServer.

So My question is,

For every file we include in the component we have got an attribute called 
"assembly" which takes 3 values. ".net", "win32" and "no" . (making it to 
".net" wix pushes that dll to GAC)

In our product We have some dll files which we are

1). registering to GAC using a EXE C.A by calling RegAsm.exe.
(InstallShield currently).
2) registering to DllRegisterServer using EXE C.A which calls RegSvr.exe.

If i have to achieve this in wix , i have to harvest all the files using heat 
as normal xcopy components and then

1). i have to add a "assembly=.net" attribute manually for all tons of dlls.
2). harvesting each file separately using "heat fle ......................." .

I found all of your posts very helpful and you are very active in the forum. 
Tons of thanks :)

Regards,
Sampat


On Mon, Nov 17, 2014 at 9:06 PM, Phill Hogland [via Windows Installer XML
(WiX) toolset] <[email protected]> wrote:

> See this thread for example of harvesting a folder:
>
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Automati
> cally-harvest-files-in-VS-2013-td7597592.html#a7597939
>
> I don't have any experience with GAC or Com+, but I assume that the 
> above code could be modified to not set the SuppressRegistry and 
> SuppressCom flags.  The original poster in the above thread was using 
> HeatDirectory task in a BeforeBuild event.  At the end I posted what I 
> just learned last week on using HarvestDirectory target, which is a cleaner 
> implementation.
> In both cases I would check the generated wxs file to see if it is 
> what you really wanted.  You may need to use some XSLT.
>
> ------------------------------
>  If you reply to this email, your message will be added to the 
> discussion
> below:
>
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-r
> egister-all-the-dlls-in-a-folder-and-sub-folder-to-GAC-using-heat-exe-
> tp7597977p7597996.html  To unsubscribe from How to register all the 
> dlls in a folder and sub folder to GAC using heat.exe, click here 
> <http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/templat
> e/NamlServlet.jtp?macro=unsubscribe_by_code&node=7597977&code=c3NtY3Mw
> NjBAZ21haWwuY29tfDc1OTc5Nzd8LTEzMDU5NDQ4OTg=>
> .
> NAML
> <http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/templat
> e/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.
> naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.templa
> te.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=
> notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aema
> il.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-register-all-the-dlls-in-a-folder-and-sub-folder-to-GAC-using-heat-exe-tp7597977p7598001.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! 
Instantly Supercharge Your Business Reports and Dashboards with Interactivity, 
Sharing, Native Excel Exports, App Integration & more Get technology previously 
reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to