473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Installer Project, Registry and Regasm - VS 2005

I have a COM object built in C#. Its a an IE deskband. It implements
the following method:

[ComRegisterFunctionAttribute]
public static void Register( Type t )

Which gets called when regasm is used and it makes teh appropriate
entries into the registry. Works great.

Now I am trying to build a installer for this using VS 2005. I did the
following:

1. I added all assemblies to the GAC
2. I marked my dll as Regsiter vsdrpCOM in the property window.

The install works but my tool bar does not show up in IE.

The I tried the following:
1. I added all assemblies to the GAC
2. I added my dll to the prgram folder in addition to the GAC.
3. I marked my dll (the program folder one) as Regsiter vsdrpCOM in the
property window.
Install works with no errors but toolbar does not show up in IE.

BUT, now if I use the commandline and regasm my dll (program folder
one), bingo... everything works.
What do I have to do in the installer project to make this work. I know
the installer lets you make registry entries, but I do not wish to do
that. Its what the

[ComRegisterFunctionAttribute]
public static void Register( Type t )

is meant for.

My first hunch was that regasm was not working. On further inspection I
realized that regasm was working but not completely.
My Register Method does the following:
if( 0 != ( style & BandObjectStyle.Vertical ) )
rkCat.CreateSubKey( "{00021493-0000-0000-C000-000000000046}" );
if( 0 != ( style & BandObjectStyle.Horizontal ) )
rkCat.CreateSubKey( "{00021494-0000-0000-C000-000000000046}" );
if( 0 != ( style & BandObjectStyle.TaskbarToolBar ) )
rkCat.CreateSubKey( "{00021492-0000-0000-C000-000000000046}" );

if( 0 != ( style & BandObjectStyle.ExplorerToolbar ) )
Registry.LocalMachine.CreateSubKey( @"SOFTWARE\Microsoft\Internet
Explorer\Toolbar" ).SetValue( guid, name );

On inspecting the registry after installation I notice that all entries
but the last one are in the registry. So whats going on? A manual
regasm works for all of the above, an installer based one does not.

Jul 12 '06 #1
0 2772

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arun Bhalla | last post by:
I'm borrowing some code from Pavel's Command Prompt Explorer Bar installer to use in my own explorer bar's installer. Recently I've been thinking that using an assembly version like "1.0.*"...
7
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added...
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
8
by: Andrew S. Giles | last post by:
What registry entries do I need to make a class a localserver32? Andrew
0
by: Rob R. Ainscough | last post by:
I've posted this before and after doing some research discovered that the "DeleteAtUninstall" setting in the Registry view of my Setup project is a useless and meaningless option that doesn't work...
5
by: Simon Verona | last post by:
I have an installer project for my VB.net application which as a custom action runs a silent installation of a third party software product. This however, generates an error if the application is...
0
by: Chris Mullins | last post by:
I have an application that installs some 64-bit binaries for development use in Visual Studio 2005. As such I want them to appear in the .Net References menu when someone attempts to "Add...
1
by: Dave | last post by:
I have a Console app, a related Service Project and Service Setup / Installer Project. I would like to have the result of running the installer.msi file register the service to run with certain...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.