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 / November 2006

Tip: Looking for answers? Try searching our database.

deploying .net COM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James - 13 Nov 2006 19:44 GMT
I have written a .NET (c#) COM object, which works great, however it is now
time to deploy it. If I copy the file to a target machine and run regasm on
it, all is great. If I deploy the application (using Installshield 11) all
is not great.

I realzie this may be a hybrid discussion for this and / or installshield's
newsgroups. My question for this group is, what does regasm do (so I can see
if installshield will replicate it). FYI in installshield I have checked the
'.net interop' option but this doesnt seem to help.

James
Phil Wilson - 15 Nov 2006 00:04 GMT
This explains in Visual Studio terms what happens, but it's also how
InstallShield works.

http://www.simple-talk.com/dotnet/visual-studio/build-and-deploy-a-.net-com-assembly/

Briefly, InstallShield has a Register for COM interop option at the
component level that runs regasm to create a .reg file that gets added to
the MSI file at build time (one of the options tells InstallShield where
regasm is, and it runs it with the /reg option). So the "right" registry
entries get added to the system at install time from the MSI file. That
InstallShield Register for .NET COM Interop option might be all you need to
do.

Signature

Phil Wilson
[Microsoft MVP - Windows Installer]

>I have written a .NET (c#) COM object, which works great, however it is now
>time to deploy it. If I copy the file to a target machine and run regasm on
[quoted text clipped - 8 lines]
>
> James
James - 16 Nov 2006 00:50 GMT
Hi Phil,

Thanks this is excellent info. I used tlbexp to generate a .tlb file for my
COM object, added it to my installshield project (telling it to extract COM
info). Now all runs as hoped.

Thanks again
James

> This explains in Visual Studio terms what happens, but it's also how
> InstallShield works.
[quoted text clipped - 21 lines]
>>
>> James

Rate this thread:







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.