Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / June 2007

Tip: Looking for answers? Try searching our database.

/resetaddin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mirko Matytschak - 05 Jun 2007 10:45 GMT
Hi all,

does anybody know, if it is possible to execute the /resetaddin
functionality in the extension object model? Something like that:

           Type t = Type.GetTypeFromProgID("VisualStudio.DTE");
           DTE dte = (DTE)Activator.CreateInstance(t);
           foreach (AddIn addIn in dte.AddIns)
           {
               if (addIn.Name.IndexOf("MyAddin") > -1)
                   addIn.Reset();
           }

Unfortunately there is no Reset() method in the AddIn interface. But maybe I
can ask for another interface?

Best Regards
Mirko
Boris - 05 Jun 2007 15:44 GMT
Hi Mirko,

nice to meet you on Usenet! You won't remember me but we met a long time  
ago at redmond's technology publishing when it was still in U'schl. :-)

> does anybody know, if it is possible to execute the /resetaddin
> functionality in the extension object model? Something like that:
[quoted text clipped - 10 lines]
> maybe I
> can ask for another interface?

While I don't know any interface resetting the CommandPreload key in the  
Windows registry might be an alternative. See  
http://www.mztools.com/articles/2006/MZ014.htm for the details.

By the way, for some unknown reason the forum at  
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=57&SiteID=1 is  
much more lively than this newsgroup. You'll probably get replies faster  
if you ask there.

Boris
Mirko Matytschak - 11 Jun 2007 16:59 GMT
Hi Boris,

how are you? Drop me a mail at the mail address you see in my messages
without the xx's.

I know the article. But since I create an EnvDTE instance during the
installation anyway, I thought it would be nice, if I could use it for the
/resetaddin functionality too. But I think I have to tweak the registry the
wayCarlos described it. Thanks anyway for your answer.

Best Regards
Mirko

On Tue, 05 Jun 2007 18:45:28 +0900, Mirko Matytschak
<xxmirkom@netdataobjects.dexx> wrote:

Hi Mirko,

nice to meet you on Usenet! You won't remember me but we met a long time
ago at redmond's technology publishing when it was still in U'schl. :-)

> does anybody know, if it is possible to execute the /resetaddin
> functionality in the extension object model? Something like that:
[quoted text clipped - 10 lines]
> maybe I
> can ask for another interface?

While I don't know any interface resetting the CommandPreload key in the
Windows registry might be an alternative. See
http://www.mztools.com/articles/2006/MZ014.htm for the details.

By the way, for some unknown reason the forum at
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=57&SiteID=1 is
much more lively than this newsgroup. You'll probably get replies faster
if you ask there.

Boris

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.