My mistake, the dll in question referenced another dll, which was build
against .NET 4.0 Framework.

However, I still can't install my COM+ application because the installer
throws an error:
...
ComPlusInstallExecute:  ExceptionInfo: Code='0',
Source='System.EnterpriseServices', Description='Could not install type
library 'C:\Program
Files\MyCompany\MyNetAsm\MyCompany.MyApplication.Data.DataAccess.tlb' into
application 'MyCompany.MyApplication.Data.DataAccess'.', HelpFile='',
HelpContext='0'
MSI (s) (0C!30) [15:26:09:234]: Closing MSIHANDLE (313) of type 790531 for
thread 3632
MSI (s) (0C!30) [15:26:09:234]: Creating MSIHANDLE (314) of type 790531 for
thread 3632
ComPlusInstallExecute:  Error 0x80020009: Failed to invoke
RegistrationHelper.InstallAssembly() method
...

I am doing it with the help of ComPlusExtension:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:complus="http://schemas.microsoft.com/wix/ComPlusExtension";>
        <Product Name="MyCompanyMyApplication" Id="*"
UpgradeCode="D3B94001-1A22-4ad9-866C-3098AAE1C86F"
          Language="1033" Codepage="1252" Version="1.1.1.1" 
Manufacturer="MyCompany
d.d.">

                <Package Id="*" Keywords="Installer" 
Description="MyApplicationclient
Installer" Manufacturer="MyCompany d.d." InstallerVersion="100"
                   Languages="1033" Compressed="yes" SummaryCodepage="1252"/>
                <Media Id="1" Cabinet="MyApplicationclient.cab" 
EmbedCab="yes"></Media>

                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="ProgramFilesFolder">
                                <Directory Id="MyCompany" Name="MyCompany">
                                        <Directory Id="MyNetAsm" 
Name="MyNetAsm">
                                                <Component 
Id="MyComPlusAssembly"
Guid="E44952B4-9510-4F01-A484-EF288B9C48FD">
                                                        <File 
Id="MyComPlusAssembly_dll"
Name="MyCompany.MyApplication.Data.DataAccess.dll" DiskId="1" KeyPath="yes"
src="$(var.SolutionDir)MyCompany.MyApplication.Data.DataAccessors\bin\Debug\MyCompany.MyApplication.Data.DataAccess.dll"
/>
                                                        <File 
Id="MyComPlusAssembly_tlb"
Name="MyCompany.MyApplication.Data.DataAccess.tlb" DiskId="1"
src="$(var.SolutionDir)MyCompany.MyApplication.Data.DataAccessors\bin\Debug\MyCompany.MyApplication.Data.DataAccess.tlb"/>
                                                        
<complus:ComPlusApplication Id="MyComPlusApp" Name="My COM+
Application">
                                                                
<complus:ComPlusAssembly Id="MyComPlusAssembly"
TlbPath="[#MyComPlusAssembly_tlb]" Type=".net"
DllPath="[#MyComPlusAssembly_dll]" />
                                                        
</complus:ComPlusApplication>
                                                </Component>
                                        </Directory>
                                </Directory>
                        </Directory>
                </Directory>

                <Feature Id="MyApplicationclient" Title="MyApplicationclient" 
Level="1">
                        <ComponentRef Id="MyComPlusAssembly"/>
                </Feature>

                <Property Id="PREVIOUSVERSIONSINSTALLED" 
Secure="yes"></Property>
                <Upgrade Id="D3B94001-1A22-4ad9-866C-3098AAE1C86F">
                        <UpgradeVersion Minimum="1.0.0.0" Maximum="99.0.0.0"
Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes"
IncludeMaximum="no" />
                </Upgrade>
                <InstallExecuteSequence>
                        <RemoveExistingProducts After="InstallInitialize" />
                </InstallExecuteSequence>
        </Product>
</Wix>

Any ideas would be much appreciated.

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problems-registering-COM-objects-tp7077697p7078414.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to