Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2005

Tip: Looking for answers? Try searching our database.

Where/how is the COM DLL Registered when deploying a RCW to the GA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Lane - 19 Jan 2005 22:21 GMT
Hi,

I want to deploy an RCW to the GAC, my question is if I create a Windows
Installer to deploy this RCW to the GAC, do I also have to register the COM
.dll using the installer? How would I do this? Does anybody know of any good
examples of creating a windows installer to do some or all of this?

Thank You,

Chris
Rick Strahl [MVP] - 20 Jan 2005 08:23 GMT
Hi Chris,

The easiest is to use an installer that supports .NET. Most of the 'big
name' installers support .NET these days and make short work of registering
controls into the registry and registering for COM interop.

If you need to do this manually you need to have your installer run GacUtil
and RegAsm to register the component.

I have some tool that do this although I don't install the components into
the GAC, but use CodeBase install instead. This is not as straight forward
as it may seem because you have to find these utilities in the correct
folders for the right version etc. What I usually do is perform this sort of
registration first time the app starts up (by checking whether the COM
object is registered) - if it's not go out and handle the configuration. I
like to do this manually because in our apps at least customers can update
over the Web and in some cases the COM exposed .NET objects may also change.

I wrote this up as part of an Articleon COM interop. The section for
installation is at the bottom:

http://www.west-wind.com/presentations/VfpDotNetInterop/DotNetFromVFP.asp

Regards,

+++ Rick ---

Signature

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web

> Hi,
>
[quoted text clipped - 6 lines]
>
> Chris
Chris Lane - 20 Jan 2005 14:45 GMT
I wasn't clear enough in my first post. What I need to do is create a Runtime
Callable wrapper around the SQL Server DTS dll dtspkg.dll, then I need to
deploy this RCW to the GAC.

I am also wanting to know if I can and how to deploy the RCW to the GAC
using a windows installer application. I am  also wanting to know how I can
marlk the dtspkg.dll COMSelfReg  property so that the dll will register with
the same windows installer application.

Thanks
Phil Wilson - 21 Jan 2005 15:55 GMT
I don't know why you'd be installing dtspkg.dll - AFAIK that's part of SQL,
and I suspect that you're not allowed to distribute it, and if you install
and register it yourself, you'll just break something.
Windows Installer can install an RCW into the GAC, but I don't know why you
want to do that. You can probably just install it in your application
folder?

Here's a list of tools: Visual Studio is among them:

http://installsite.org/pages/en/msi/authoring.htm

Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

>I wasn't clear enough in my first post. What I need to do is create a
>Runtime
[quoted text clipped - 9 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.