You are installing a .NET assembly into GAC, but you are telling the COM+ CA's
that it's a native module.
Try replacing:
<ComPlusApplication ... Type="native" DllPath="[#ComPlus_dll]">
With:
<ComPlusApplication ... Type=".net" DllPathFromGAC="yes"
RegisterInCommit="yes" TlbPath="[#MyTypelib]">
And see if that works.
The problem with COM+ is that the DLL needs to be loaded in order to be
registered, and anything that goes into GAC is not visible on disc until the
commit phase of the install. That is why you are getting the file not found
error below.
Also you need to provide a typelib for your assembly. This can be extracted
using the tlbexp.exe tool of the .NET SDK.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DEVAL SHAH
Sent: Saturday, March 24, 2007 1:02 AM
To: [email protected]
Subject: [WiX-users] Using Wix to register COM+ -> similar to regsvcs
Hello,
I have Serviced component which I want to register with Wix. I can register
it with regsvcs but not able to do it with Wix. This is my config:
<Fragment Id='FragmentComPlus'>
<DirectoryRef Id='ComPlusInstallDIR'>
<Component Id="ComPlusDll" Guid="some-id">
<File Id="ComPlus_dll" Name="Com" LongName="COM+ Component"
DiskId="1"
Vital="yes" KeyPath="yes" Assembly=".net"
src="SourceDir\abc\complus.dll"
/>
<File Id='file2' Name='CommonDl' LongName=Common.dll' DiskId='1'
Source='SourceDir\abc\Common.dll' Vital='yes'/>
<pca:ComPlusApplication Id="ComPlusApp" Name="COM+ Application">
<pca:ComPlusAssembly Id="ComPlusAssembly1" Type="native"
DllPath="[#ComPlus_dll]">
<pca:ComPlusComponent Id="ABC.MyServicedComponent"
CLSID="some-guid" />
</pca:ComPlusAssembly>
</pca:ComPlusApplication>
</Component>
</DirectoryRef>
</Fragment>
This installation fails in between. The log shows following error:
ComPlusInstallExecute: ErrorInfo: Name='C:\Program Files\MyComp',
ErrorCode='-2146368476', MajorRef='C:\Program Files\MyComp',
MinorRef='<invalid>'
ComPlusInstallExecute: Error 0x80110401: Failed to install components
ComPlusInstallExecute: Error 0x80110401: Failed to register native assembly
ComPlusInstallExecute: Error 0x80110401: Failed to register assembly, key:
ComPlusAssembly1
ComPlusInstallExecute: Error 0x80110401: Failed to register assemblies
Any idea what is wrong? I want to achieve the same functionality as regsvcs.
Thank you in advance
Deval
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users