I don't think .Net assemblies use SelfReg so heat won't help you, you
have to use regasm to generate a reg file and then code it in WiX.

Neil


Wayne Guidry wrote:
> I'm using the latest build of WIX v3.0.5217.0.
>
> here's the background info on what I'm trying to do...
>
> I have a .NET 2.0 Assembly that has "register for COM interop"
selected and I need to build an installer package that performs the
capability of "registering" the Assembly with COM so it can be used. At
this point, I don't necessarily need the Assembly in the GAC, just COM
registration on it. So in the past I was using heat.exe to harvest the
registry keys from the Assembly into a wix file and everything worked
great. Now I'm trying to do the same thing and am receiving a WIX Error
Code of 5151 (I don't have the actual message, but it was something
like: Could not harvest data from a file that is of type Assembly,
System.Exception was thrown. That's not the verbose error, but close
enough. Even trying to gather information from a tlb file does not work.
>
> What I just discovered today is I don't have this problem on a
standalone machine but the primary machine I use on our network does
have it so I think it is not a problem with WIX, but with a group
policy. I have a suspicion that heat is trying to use regsvr32 to
harvest the registry information from the Assembly. If so, that is a
problem for me because our admin has completely removed the ability for
us to use regsvr32 (we have to do our registration via Visual Studio
which seems to do "register for com interop" differently). Anyway, so
now I'm stuck trying to figure out how to best perform "register for com
interop" on a .NET assembly with WIX, other than using heat or (if heat
doesn't call regsvr32) figuring out why it isn't working.
>
> I noticed the COMPlusAssembly Element and thought that might be the
same as "register for com interop" but I'm not sure which is the reason
for bringing it up in the last post. :)
>
> Any suggestions/ideas?
>
> Thanks for your help
> guid
>
>
> Date: Wed, 3 Jun 2009 09:24:48 -0700
> From: Rob Mensching <r...@wixtoolset.org>
> Subject: Re: [WiX-users] Assembly registration with wix 3.0
> To: General discussion for Windows Installer XML toolset.
>     <wix-users@lists.sourceforge.net>
> Message-ID: <4a26a3d0.4060...@wixtoolset.org>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
>
> ComPlusAssembly is for COM+. If you don't know what that is, you
> definitely do not want to use it (COM+ is crazy). <smile/>
>
> Can you be more specific about the heat error and the actual WiX
toolset
> version you are using?
>
> Wayne Guidry wrote:
>   
>> Haven't used wix in a couple of months and just upgraded to a later
version. I'm pretty sure in the past I could use heat.exe to extract
registry information from an Assembly however now I get a warning saying
something like Could not harvest data from a file that is an Assembly or
something to that affect. So I started poking around to see how to do
this and the only other thing I found is an element called
ComPlusAssembly which appears to do something similar. So should I be
using ComPlusAssembly or manually putting all the registry COM
information using something like heat?
>>
>> Thanks
>> guid
>>     
>
------------------------------------------------------------------------
------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the
latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

------------------------------------------------------------------------
------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the
latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to