Search

Startup checkbox in Add-in Manager of VS 2005 does not persist changes by Carlos Quintero Vivar

Closed
as Fixed Help for as Fixed

12
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 238492
Opened: 11/16/2006 7:19:14 AM
Access Restriction: Public
0
Workaround(s)
6
User(s) can reproduce this bug
This a bug already reported (#195760 and #105560) but is was closed in false because either the person reporting the problem failed to explain it correctly or the MS developer failed to understand and recognize the problem, so I will try again hopefully with more luck.

The problem is that when a Visual Studio 2005 add-in:

1) Is registered for all users (not just the current user)
2) Uses the registry (HKEY_LOCAL_MACHINE hive) to register it to Visual Studio 2005 instead of using XML registration with an .AddIn file

Then the Startup checkbox in the Add-in Manager is not persisted even if you are an administrator (a non-administrator user is expected NOT to be able to do that for an add-in registered for all users, but an administrator should be able to do that as he could in VS.NET 2003)
Details (expand)
Product Language
English

Version

Visual Studio 2005 Professional Edition
Operating System
Windows XP Professional
Operating System Language
English
Steps to Reproduce
- Create a VS.NET 2003 (first we are going to see the expected behavior, later the unexpected one in VS 2005) add-in in VB.NET named MyTestAddin. In the page 4 of 6 ensure that you DO check the checkbox "My add-in should be available to all users..." and ensure that you DON'T check the checkbox "I would like my add-in to load when the host application starts"

- Debug the add-in. In the new VS.NET 2003 instance, go to the Add-In Manager and check the column Startup (which should be initially unchecked as we set in page 4/6).

- Close the add-in manager and open it again. The column is checked as expected. Uncheck it, close the add-in manage and open it again. The column is unchecked as expected. So far so good. Now with VS 2005:

- Using regedit.exe, go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Addins\MyTestAddin.Connect and click File, Export and save it to a .reg file.

- Edit the file with Notepad and change the string "7.1" by "8.0" (without quotes)

- Double click the .reg file to merge it into the registry (which will register our add-in for VS 2005, it does not matter that it will not run correctly)

- Open VS 2005 and go to the add-in manager. The add-in MyTestAddin should be there with the Startup column unchecked.

- Check the Startup column, close the add-in manager and open it again
Actual Results
The column is unchecked
Expected Results
The column should be checked, since we closed the add-in manager dialog with the column checked. Needless to say, the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Addins\MyTestAddin.Connect\LoadBehavior has not changed.

The same thing happens if the column was initially checked and you want to uncheck it, it remains checked.

Any chance of fixing this for VS 2005 SP1, please? It is causing problems with addins ported to VS 2005 still using COM registration...
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/21/2006 at 10:18 AM
Thanks for reporting this issue! Unfortunately we won't be able to fix this in SP1 since it is about to ship and it is too late to get this fix in. We are going to reproduce this internally and if there are any workarounds we will add it to this bug report.

Thanks

The Visual Studio IDE Team
Posted by adipan on 3/10/2008 at 2:47 AM
I have 2 add-ins VMWare and Visual Assist. Since we paid quite some money on Visual Assist and it is a crappy but useful add-in, I can't un-install. The only level I have is to launch while pressing Shift key.