This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Registering COM component created with .Net
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2008
11:43 AM
Registering COM component created with .Net
I have a .Net class library component that is set to be COM visible. There's the standard registration required plus some additional registration that's needed for my particular application. I have this defined in the code and it works fine when I register it with regasm /codebase. However, when I create an installation using InstallShield none of the registration is being done. Is there any way to get it to run regasm (with the /codebase option) for me?
I know I can explicitly define the registration needed through the InstallShield Express interface, but I hate to have it defined in code and in the installer and then remember to update any changes to both.
-Brian
I know I can explicitly define the registration needed through the InstallShield Express interface, but I hate to have it defined in code and in the installer and then remember to update any changes to both.
-Brian
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2008
01:47 PM
In the Files view, right-click on the file and select the Properties menu item. And then you need to check the COM Interop check box in the COM & .NET Settings tab.
Hope that helps.
Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2008
07:40 PM
Thanks for the help. I didn't know about this setting. Unfortunately when I try it I get the following error when I build the install.
I searched for additional information about this error but didn't find anything that helped me although I'm wondering if there's a dependency issue.
I'm trying to create the installation for a dll that is an add-in for an application. (Similar to a Word add-in but a for different, non a MS application.) My add-in has a dependency on the interop assembly of the application. I don't see anything about this dependency in IS except in the "Releases" menu item after I build and in the resulting build where the file is copied to. Could this dependency be the problem? Ideally I would like to remove this dependency from IS because I don't want that file as part of my installation because the application I'm dependent on will have already installed it. With some additional testing I also found out that the interop of this application is only included in my install when I have the "COM Interop" option checked.
-6210: An error occurred building COM .NET Interop information for Component RevolveSplinePoints.dll
I searched for additional information about this error but didn't find anything that helped me although I'm wondering if there's a dependency issue.
I'm trying to create the installation for a dll that is an add-in for an application. (Similar to a Word add-in but a for different, non a MS application.) My add-in has a dependency on the interop assembly of the application. I don't see anything about this dependency in IS except in the "Releases" menu item after I build and in the resulting build where the file is copied to. Could this dependency be the problem? Ideally I would like to remove this dependency from IS because I don't want that file as part of my installation because the application I'm dependent on will have already installed it. With some additional testing I also found out that the interop of this application is only included in my install when I have the "COM Interop" option checked.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 03, 2008
11:30 AM
Brian,
I've had tremendous trouble creating .net libraries to register with com interop. However, I'm certain of these following pointers:
- Make sure you're using the .dll from the /release folder of your project, or you'll have added dependency issues.
- Make sure to create a tlb file (regasm.exe /tlb:Classname.Tlb Classname.dll)
Within Installshield, add both the TLB and the DLL
-- Right click each file, go to properties and "register for com interop"
-- Go to the "Components" tab (Installation Designer->Organization->Components) Click the entries for the tlb and dll, and make sure that the option for ".net com interop" is set to "yes"
Hope that helps..
Daryl
I've had tremendous trouble creating .net libraries to register with com interop. However, I'm certain of these following pointers:
- Make sure you're using the .dll from the /release folder of your project, or you'll have added dependency issues.
- Make sure to create a tlb file (regasm.exe /tlb:Classname.Tlb Classname.dll)
Within Installshield, add both the TLB and the DLL
-- Right click each file, go to properties and "register for com interop"
-- Go to the "Components" tab (Installation Designer->Organization->Components) Click the entries for the tlb and dll, and make sure that the option for ".net com interop" is set to "yes"
Hope that helps..
Daryl
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2008
07:36 PM
Hi Daryl,
Thanks for your help. I hadn't thought of including the tlb file since it's not really needed in my case. I did add it to my file list and enabled both of them for COM Interop. I'm unable to find the setting you mention below. Without setting that I'm still getting the -6210 error.
I had already given up on getting this to work and just added the required registration to the installer. If I need to make any changes to the registration I'll have to remember to update it in both places but at least this works.
-Brian
Thanks for your help. I hadn't thought of including the tlb file since it's not really needed in my case. I did add it to my file list and enabled both of them for COM Interop. I'm unable to find the setting you mention below. Without setting that I'm still getting the -6210 error.
dschroeder wrote:
-- Go to the "Components" tab (Installation Designer->Organization->Components) Click the entries for the tlb and dll, and make sure that the option for ".net com interop" is set to "yes"
I had already given up on getting this to work and just added the required registration to the installer. If I need to make any changes to the registration I'll have to remember to update it in both places but at least this works.
-Brian
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2009
05:13 PM
I am struggling with slightly different issue:
The build on my dev machine with InstallShield 2009 (Enterprise full version) just works fine, but when the CM try to build with the same source on InstallShiled 2009 Standalone version, they got 6210 error on just one of the 3 .NET dll files we need to register.
Any suggestions? It's urgent!
Thanks,
PB
The build on my dev machine with InstallShield 2009 (Enterprise full version) just works fine, but when the CM try to build with the same source on InstallShiled 2009 Standalone version, they got 6210 error on just one of the 3 .NET dll files we need to register.
Any suggestions? It's urgent!
Thanks,
PB
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)