I've been trying to use WiX 3.7 to install a COM+ assembly .
(我一直在尝试使用WiX 3.7安装COM +程序集 。)
I've been using several WiX code snippets I found here on StackOverflow. (我一直在使用在StackOverflow上找到的几个WiX代码段。)
Although I can generate an MSI, when I then install the msi it fails with errors that look like this: (尽管我可以生成MSI,但是当我安装MSI时,它会失败,并显示如下错误:)
RegisterComPlusAssemblies: DLL: C:Program FilesKutanaKapprisCarson.dll
ComPlusInstallExecute: ExceptionInfo: Code='0', Source='System.EnterpriseServices', Description='Could not install type library 'C:Program FilesKutanaKapprisCarson.tlb' into application 'COM+ Carson - Kappris Print Cache'.', HelpFile='', HelpContext='0'
ComPlusInstallExecute: Error 0x80020009: Failed to invoke RegistrationHelper.InstallAssembly() method
ComPlusInstallExecute: Error 0x80020009: Failed to register .NET assembly
ComPlusInstallExecute: Error 0x80020009: Failed to register assembly, key: MyComPlusAssembly
ComPlusInstallExecute: Error 0x80020009: Failed to register assemblies
No matter what I try I can't do this with WiX.
(不管我尝试什么,我都无法使用WiX做到这一点。)
I know other people have had the same problem installing COM+ with WiX but I don't think anyone's got further than blaming WiX. (我知道其他人在用WiX安装COM +时也遇到了同样的问题,但是我认为没有人会责怪WiX。)
I wondered if it would be OK to manually export the COM+ application from the Component Services control panel, which creates an MSI installer.
(我想知道是否可以从创建MSI安装程序的组件服务控制面板中手动导出COM +应用程序。)
And then I could use dark.exe to generate WiX source code from the MSI. (然后,我可以使用dark.exe从MSI生成WiX源代码。)
I've actually done this and I can build an MSI that installs the COM+ App.
(实际上,我已经做到了,并且可以构建一个安装COM + App的MSI。)
But is this a good idea? (但这是个好主意吗?)
I have misgivings: Firstly, the component now gets registered in the GAC even though when I manually registered the assembly using regsvcs it wasn't in the GAC.
(我有一个疑虑:首先,即使当我使用regsvcs手动注册该程序集时,该组件现在也已在GAC中注册,而该组件不在GAC中。)
Secondly, the exported MSI contains three files - the dll, its associated tlb and another 'APL' file which is an undocumented internal format generated as a side-effect of the export. (其次,导出的MSI包含三个文件-dll,其关联的tlb和另一个“ APL”文件,该文件是作为导出的副作用而生成的未记录的内部格式。)
What problems can people see using this method of installing a COM+ App?
(人们使用这种安装COM + App的方法会看到什么问题?)
Should I worry that I don't know anything about the APL file? (我应该担心我对APL文件一无所知吗?)
If you can tell me how to do it using WiX I'd be happy with that. (如果您能告诉我如何使用WiX做到这一点,我会很高兴的。)
Just looking to be able to do the installation... (只是希望能够进行安装...)
ask by Brian THOMAS translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…