I using the RegistrationHelper class from System.Configuration.Install.Installer and a Custom action from MSI to create COM+ applications with components that are also installed in the GAC.
Usually, if a class within a project that inherits from ServicedComponent it installs in a COM+ application just fine. However, I have one component that throws no exception from the System.Configuration.Install.Installer is installed in the GAC but never creates the COM+ application. I've double checked all the Registration config items and they all seem to be in order. I noticed that unlike the successful registrations the project in question never creates the type library prior to COM+ application creation. Question: Is there a way to trouble shoot this effectively. I've written some diagnostic info to a file from the installer. The path to the assembly is known. But then the type library file and the AppId is never created (see below) e.g. The install log file for the unsuccessful registration Before InstallAssembly Info: 10/15/20037:42 AM AppID: Assembly: c:\program files\esylvan\esylvandatasetup\data.dll TypeLib: After InstallAssembly Info: 10/15/20037:42 AM AppID: Assembly: c:\program files\esylvan\esylvandatasetup\data.dll TypeLib: e.g The install log file for the a successful registration Before InstallAssembly Info: 10/15/20037:41 AM AppID: Assembly: c:\program files\esylvan\mergemoduleinstaller\mycomponent2.dll TypeLib: After InstallAssembly Info: 10/15/20037:41 AM AppID: MyComponent Assembly: c:\program files\esylvan\mergemoduleinstaller\mycomponent2.dll TypeLib: c:\program files\esylvan\mergemoduleinstaller\MyComponent2.tlb The call RegistrationHelper rh = new RegistrationHelper (); rh.InstallAssembly (Assembly, ref AppID, ref TypeLib,InstallationFlags.FindOrCreateTargetApplication); P.S. Does anyone have a code sample of using the RegistrationConfig class? =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
