Click here to Skip to main content
15,907,233 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to generate a beep sound Pin
engsrini12-Jul-06 8:06
engsrini12-Jul-06 8:06 
GeneralRe: how to generate a beep sound Pin
donkaiser12-Jul-06 8:56
donkaiser12-Jul-06 8:56 
QuestionHow can I disable a listBox item? Pin
AngryC12-Jul-06 6:12
AngryC12-Jul-06 6:12 
AnswerRe: How can I disable a listBox item? Pin
Not Active12-Jul-06 6:55
mentorNot Active12-Jul-06 6:55 
QuestionRead DiComm Headers Pin
jrandomuser12-Jul-06 5:56
jrandomuser12-Jul-06 5:56 
QuestionTooltip for a TrackBar control Pin
Jon Hulatt12-Jul-06 5:53
Jon Hulatt12-Jul-06 5:53 
AnswerRe: Tooltip for a TrackBar control Pin
alexey N12-Jul-06 21:22
alexey N12-Jul-06 21:22 
QuestionInstaller Project, Registry and Regasm Pin
Ranjan Banerji12-Jul-06 5:46
Ranjan Banerji12-Jul-06 5:46 
I have a COM object built in C#. Its a an IE deskband. It implements the following method:

<br />
        [ComRegisterFunctionAttribute]<br />
        public static void Register( Type t )<br />


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
<br />
        [ComRegisterFunctionAttribute]<br />
        public static void Register( Type t )<br />

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:
<br />
  if( 0 != ( style & BandObjectStyle.Vertical ) )<br />
      rkCat.CreateSubKey( "{00021493-0000-0000-C000-000000000046}" );<br />
<br />
  if( 0 != ( style & BandObjectStyle.Horizontal ) )<br />
      rkCat.CreateSubKey( "{00021494-0000-0000-C000-000000000046}" );<br />
<br />
  if( 0 != ( style & BandObjectStyle.TaskbarToolBar ) )<br />
     rkCat.CreateSubKey( "{00021492-0000-0000-C000-000000000046}" );<br />
<br />
  if( 0 != ( style & BandObjectStyle.ExplorerToolbar ) )<br />
                Registry.LocalMachine.CreateSubKey( @"SOFTWARE\Microsoft\Internet Explorer\Toolbar" ).SetValue( guid, name );<br />


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.
AnswerRe: Installer Project, Registry and Regasm Pin
Ranjan Banerji11-Sep-06 17:21
Ranjan Banerji11-Sep-06 17:21 
QuestionComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 5:26
--Ian12-Jul-06 5:26 
AnswerRe: ComboBox lock/suppress DropDown Pin
Not Active12-Jul-06 5:33
mentorNot Active12-Jul-06 5:33 
GeneralRe: ComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 6:38
--Ian12-Jul-06 6:38 
GeneralRe: ComboBox lock/suppress DropDown Pin
Not Active12-Jul-06 6:46
mentorNot Active12-Jul-06 6:46 
GeneralRe: ComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 7:13
--Ian12-Jul-06 7:13 
GeneralRe: ComboBox lock/suppress DropDown Pin
VB 8.05-Feb-09 1:01
VB 8.05-Feb-09 1:01 
QuestionComboBox Custom OnPaint Pin
--Ian12-Jul-06 5:15
--Ian12-Jul-06 5:15 
AnswerRe: ComboBox Custom OnPaint Pin
leppie12-Jul-06 7:01
leppie12-Jul-06 7:01 
GeneralRe: ComboBox Custom OnPaint Pin
--Ian12-Jul-06 8:10
--Ian12-Jul-06 8:10 
GeneralRe: ComboBox Custom OnPaint -- CODE Pin
--Ian13-Jul-06 3:18
--Ian13-Jul-06 3:18 
QuestionGDI - filling color in a region Pin
Imtiaz Murtaza12-Jul-06 5:03
Imtiaz Murtaza12-Jul-06 5:03 
AnswerRe: GDI - filling color in a region Pin
Not Active12-Jul-06 5:13
mentorNot Active12-Jul-06 5:13 
GeneralRe: GDI - filling color in a region Pin
Imtiaz Murtaza12-Jul-06 5:33
Imtiaz Murtaza12-Jul-06 5:33 
GeneralRe: GDI - filling color in a region Pin
Not Active12-Jul-06 5:43
mentorNot Active12-Jul-06 5:43 
AnswerDrawArc Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:18
Ennis Ray Lynch, Jr.12-Jul-06 6:18 
QuestionHow to avoid popup window during USB detection. Pin
sai_akkina12-Jul-06 5:01
sai_akkina12-Jul-06 5:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.