chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
+1 vote
Installed: 6.0.6
Windows 7/64, 8GB RAM
VS2010+sp1 beta

I happened to go to the VS2010 help menu today, and noticed that there were well over two dozen copies of the "Typemock Isolator Quickstart" menu item. The first 6 from the top have a divider after each. The remaining 23 (!) are in a single group.

I tried uninstalling 6.0.6, but the list remained. When I actually selected one of the entries, VS noticed the addin was gone, and I was able to remove all the items. After reinstall, I was back to 1 entry in Help.

In the future, how can I clean up this problem without uninstalling Isolator?
asked by billster (2.8k points)

30 Answers

0 votes
We made some progress with this issue, and found the piece of code we suspect created this. This is no excuse, but we suspect this is a bug in Visual Studio's DTE integration API, causing our cleanup code to fail. We put in a workaround to prevent this from happening in the future and this will be released in the next Isolator version. This will prevent new menu items from being added, but will not help with the multiple buttons that are already there - we are still working on that.

Doron
Typemock Support
answered by doron (17.2k points)
0 votes
That's an acceptable solution. As long as new items will no longer be added, I can easily uninstall Typemock one more time to clean up the existing extra items before installing the 'fix' version.
answered by billster (2.8k points)
0 votes
I'm seeing this, too. I guess I don't go in the help menu for VS much, but just did and was like WOW. I have about 75 of these entries.

If it's rogue EnvDTE code going on there during the install or whatever, is there a VS macro you can provide that will help us remove the entries?
answered by tillig (6.7k points)
0 votes
Hmmm... tried removing them with a macro and it worked... until I restarted VS, when they all came back. LAME.
answered by tillig (6.7k points)
0 votes
Yeah, this is pretty ridiculous. Would love to get an ETA on a patch/fix.
answered by tillig (6.7k points)
0 votes
Lame indeed...

But there is a fix:
Close VS, Uninstall Isolator, Install this patch:
https://www.typemock.com/files/TypemockI ... tup609.msi

Sorry guys.

Regards,
Yonatan,
Typemock Support
answered by yonatan (1.6k points)
0 votes
Followed the steps and I still have a metric ton of entries.

Running VS2010 SP1 on Win2008 R2 (64-bit) as a non-admin user.
answered by tillig (6.7k points)
0 votes
OK, I figured it out. It's a little more complex than what was suggested, but not much.

First, close VS and uninstall Typemock Isolator.

Next, open VS and see if you still have residual entries. I DID. If you do, you need to run this macro:

Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics
Imports Microsoft.VisualStudio.CommandBars

Public Module Module1
    Sub FixTypemockEntries()
        Dim window As OutputWindow
        Dim pane As OutputWindowPane

        window = DTE.ToolWindows.OutputWindow
        pane = window.OutputWindowPanes.Add("Macro Results")
        pane.Clear()
        pane.OutputString("Starting removal of quickstart entries...")
        pane.OutputString(Environment.NewLine)

        Dim bar As CommandBar
        bar = DTE.CommandBars.Item("Help")
        Dim count As Int32
        Dim found As Boolean

        count = 0
        Do
            found = False
            For Each item As CommandBarControl In bar.Controls
                If item.Caption = "Typemock Isolator Quickstart" Then
                    item.Delete()
                    count += 1
                    found = True
                End If
            Next
        Loop While found = True

        pane.OutputString(String.Format("Removed {0} instances of Typemock Isolator Quickstart.{1}", count, Environment.NewLine))
    End Sub
End Module


That will remove the residual entries and you'll see a note in the Output window telling you how many were nuked.

Close and reopen Visual Studio. Make sure the entries are STILL gone. They should be.

If you have multiple users on the same machine that see this, you need to run the macro for ALL OF THEM. So, like, if you develop as a non-admin user and you have a different user account for developing as an administrator, you'll need to run that for both accounts.

Now close Visual Studio and install that patch. You'll get the one correct entry put back into the Help menu and the rest of the entries should be gone.
answered by tillig (6.7k points)
0 votes
...of course, it appears this patch includes more than just the VS fix, which means I have a few tests breaking, so that's not good, either. Sigh.
answered by tillig (6.7k points)
0 votes
So sorry about that, Travis. :oops:

Could you send us a repro, or perhaps we can do an online session to solve it?

Thanks!
answered by igal (5.7k points)
...