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 / Setup / March 2004

Tip: Looking for answers? Try searching our database.

installation & ComRegisterFunctionAttribute

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lauren Hines - 23 Mar 2004 23:54 GMT
Hello,
I have created an Internet Explorer toolbar dll in c# and I am now trying to
create an installation program for it. For testing purposes, I ran gacutil
and regasm in order for the toolbar to show up in IE, and everything worked
fine.

I am currently using Microsoft's 'setup project' template, and I have been
able to replace gacutil by adding the neccessary files to the Global
Assembly Cache Folder in the File System on Target Machine.

Unfortunately, I am unable to figure out how to replace 'regasm.exe'. I have
set the Register property to both vsdraCOM and vsdraCOMRelativePath, to no
avail. The setup is not even calling my ComRegisterFunctionAttribute ( I put
in a message box to verify).

Does any installation package have a solution to this?

Any help would be greatly appreciated.

Thanks,
Lauren Hines
Phil Wilson - 24 Mar 2004 17:09 GMT
A MSI setup won't call your ComRegisterFunctionAttribute methods - they're
for regasm. If you've declared classes and interfaces with the right GUIDs
etc, vsdraCOM should work fine. I assume you know what your CLSID is, so
look in the registry after the install and check that you have an
InprocServer32 key pointing to mscoree.dll with your class name, public key
token, version etc. It also helps to nail down version in Assemblyinfo.xx -
it defaults to containing an * and every build will give you a different
version so you register one version but install another. If you get an
hresult, that helps identify the problem as the COM side or the managed
side.
Signature

Phil Wilson
[MVP Windows Installer]

> Hello,
> I have created an Internet Explorer toolbar dll in c# and I am now trying to
[quoted text clipped - 17 lines]
> Thanks,
> Lauren Hines
Lauren Hines - 25 Mar 2004 16:20 GMT
Thank you so much, it must have been working all along - I just needed to
add the creation of my own registry key for "SOFTWARE\\Microsoft\\Internet
Explorer\\Toolbar" in the setup, instead of doing it in the
ComRegisterFunctionAttribute.

I appreciate your explanation.

Lauren

> A MSI setup won't call your ComRegisterFunctionAttribute methods - they're
> for regasm. If you've declared classes and interfaces with the right GUIDs
[quoted text clipped - 31 lines]
> > Thanks,
> > Lauren Hines

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.