unmanaged addin registration for all users

What is the recommended way to register an unmanaged vs2005 addin for all users  

It appears that the .addin xml file is only for managed addins; is this correct




Answer this question

unmanaged addin registration for all users

  • Vincent Zhao

    You are right. The .addin xml file is for managed add-ins.
    To register an unmanaged VS 2005 add-in, you can simply run "regsvr32 yourAddin.dll".

    If you want it registered for all users, before running the above command, open file AddIn.rgs and change "HKCU" to "HKLM" , and then rebuild your add-in.

    Thanks


  • Cari Begle

    Yes, that's the recommended way from Microsoft.
    As to the issue you mentioned, it is "by design". If you want your unmanaged add-in loaded at Startup, you either set it through the Add-in Wizard or go to the AddIn.rgs file and update the value of "LoadBehavior" to 1.
    Thanks.

  • tonyGasparich

    Ok - thanks for that.  So the bug that I filed which was closed as "by design" was closed in error.  That's the point I was trying to understand.  When you say "your bug DB" is that the feedback database that is publicly accessible or something else Would it be possible for you to re-open the bug I filed and close it as a duplicate noting where the bug is recorded

    thanks


  • mirren_st

    The way I suggested is for the developer of the add-in, since I thought you were asking how to distribute your add-in to other users as an HKLM add-in. (BTW, Add-in Wizard is at Other Project Types -> Extensibility, Visual Studio Add-in.)

    As to changing the load behavior of an HKLM unamanged add-in, you need to be an administrator so that you have full privileges to write to HKLM\Software\Microsoft\VisualStudio\8.0\Addins. Unfortunately I found you cannot get it work through Add-in Manager. The changed state does not persist. It is already tracked in our bug DB.
    The simple workaround is to go to the add-in reg key under HKLM\Software\Microsoft\VisualStudio\8.0\Addins and update the LoadBehavior value manually.

    Thanks



  • Sanjay Patel

    Is this the recommendation from Microsoft for vs2005   The Add-In Manager does not manage unmanaged add-ins that are registered using HKLM.  I filed a bug about this but it was closed as "by design" (see http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx FeedbackId=75f40e0b-af8f-4999-befb-b8ca5d85d444 )

    It only displays HKLM add-ins but the user is not allowed to change their startup behavior.


  • mbaciak

    Is that "Add-in Wizard" as in the wizard used to start new VC projects

    Are you suggesting that an end user that has installed an HKLM addin should receive source code for it so that they can recompile it in order to change the load behavior

    I'm talking about the situation where an end-user (a VS2005 user) has an HKLM add-in and wants to temporarily change the startup LoadBehavior.

    Why wouldn't you suggest that they modify the registry directly since the IDE is incapable of it   No source code needed for that.


  • unmanaged addin registration for all users