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 / April 2007

Tip: Looking for answers? Try searching our database.

Regasm /regfile attribute lies?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew Wieder - 25 Apr 2007 22:24 GMT
I have an Office Add-In that I am distributing and installing.  When I run
Regasm /regfile on it, and then double-click the resultant regfile (adding it
into the registry) my Add-In does not appear in the list of available
automation servers on the machine.  However, if I call Regasm on it, it then
does appear in the list of automation servers.  This indicates that Regasm
/regfile does not put into the reg file the same thing that regasm is doing.  
Running regmon turns up that while Regasm /regfile puts several keys into
HKCR, actually calling Regasm, puts many of those keys into HKCU.  Can anyone
explain?
Phil Wilson - 25 Apr 2007 22:51 GMT
Regasm /regfile does not create type library registration entries - that's
probably what's going on because a list of available COM servers is
typically a list of type libraries.
Signature

--
Phil Wilson
[MVP Windows Installer]

>I have an Office Add-In that I am distributing and installing.  When I run
> Regasm /regfile on it, and then double-click the resultant regfile (adding
[quoted text clipped - 9 lines]
> anyone
> explain?
Matthew Wieder - 25 Apr 2007 23:22 GMT
no tlb is generated , also, the list is of "Automation Servers" not COM
servers.  One way to see this list, is to open Excel (XP or 2k3), click on
Tools->Add-Ins and then click on "Automation".  As I mentioned, regmon showed
the only difference is in the keys going to HKCU instead of HKCR....

> Regasm /regfile does not create type library registration entries - that's
> probably what's going on because a list of available COM servers is
[quoted text clipped - 12 lines]
> > anyone
> > explain?
Phil Wilson - 26 Apr 2007 21:39 GMT
You may have done a "Just me" install instead of Everyone. In a VS 2005
setup&deployment project, that's the InstallAllUsers property to set the
default at per-machine (Everyone).

With my COM hat on, this is my understanding. Any correction welcome.
Automation Servers are COM servers that offer interfaces for script clients.
The list is typically generated by enumerating those classes with some set
of scriptable component categories (OleView shows the general idea), and
then locating the type library. It's equivalent to a C# project where you
Add Reference and choose the COM tab - the list you get is type
library-based, and Automation Servers are a subset of those.

--
Phil Wilson
[MVP Windows Installer]

> no tlb is generated , also, the list is of "Automation Servers" not COM
> servers.  One way to see this list, is to open Excel (XP or 2k3), click on
[quoted text clipped - 23 lines]
>> > anyone
>> > explain?

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.