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
- :
- Register DLLs for .NET COM Interop
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
‎Jan 05, 2010
11:01 AM
Register DLLs for .NET COM Interop
My installation package is for an extension to ESRI ArcGIS ArcDesktop which is a COM program. I have 3 .NET 2.0 DLLs that need to be registered with COM interop so that ArcDesktop can see them. The only way I know to do this is to register them using RegAsm.exe. I have tried it by seting the file properties in the Installation Designer to "Extract COM information" and "Scan at Build: Dependencies and Properties" with "Installer Class" and "COM Interop" but the extension does not show up in the ArcDesktop Extension Manager. If I run the RegAsm with the /tlb and /codebase switches then the extension shows up in the Extension Manager.
Is there something else I need to do to make my DLLs register correctly? Do I have to run RegAsm.exe command from a "Custom Action"?
Thanks, Dave
Is there something else I need to do to make my DLLs register correctly? Do I have to run RegAsm.exe command from a "Custom Action"?
Thanks, Dave
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 05, 2010
04:10 PM
Got this working using the following method.
1) Created a requirement that finds the .NET 2.0 Framework directory named "V2.0.50727".
2) Created a Custom EXE Action that runs RegAsm in a Command Window:
cmd.exe /c "[V2.0.50727]RegAsm.exe /tlb /codebase "[INSTALLDIR]CustExtensionNET.dll""
Now my DLLs are registering and the extension is showing up in ArcGiS Desktop Extension Manager.
Dave
1) Created a requirement that finds the .NET 2.0 Framework directory named "V2.0.50727".
2) Created a Custom EXE Action that runs RegAsm in a Command Window:
cmd.exe /c "[V2.0.50727]RegAsm.exe /tlb /codebase "[INSTALLDIR]CustExtensionNET.dll""
Now my DLLs are registering and the extension is showing up in ArcGiS Desktop Extension Manager.
Dave
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2010
04:48 AM
Hi Dave,
this is easy 😉 You dont need a custom action to do this. Just right-click the assembly in files view and select properties. On the .Net / Com-Interop page select the COM-Interop Checkbox. Done 😄
Regards,
Michael
this is easy 😉 You dont need a custom action to do this. Just right-click the assembly in files view and select properties. On the .Net / Com-Interop page select the COM-Interop Checkbox. Done 😄
Regards,
Michael