Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Restart Visual studio 2012 after instaling and uninstalling a VS package from custom installer setup project ( .msi)

$
0
0

Hi ,

I am installing vs 2010 add in from installer. I have written some custom coding  in Install method from

System.Configuration.Install.Installer.This method will copy/install required files for both user specific  project templates and machine specific extension in both visual  2010 and VS2012.

Everything works correctly in both vs 2010 and vs 2012, but extensions appear in vs 2012 after I ran devenv/setup command

from visual studio 2012 developer command prompt for visual studio .

problem :Not able to view extensions and my custom commands in vs 2012.

This manual process I want to eliminate.

In short my question is I would like to see my custom commands/extensions in vs 2012 with out any manual approach.

It should appear after I install my custom installer.

I tried below approaches, but nothing helps me

           //Approach 1
            Process.Start()
            //Approach2
            var obj = (IVsShell4)this.GetService(typeof(SVsShell));
            (obj as IVsShell4).Restart((uint)__VSRESTARTTYPE.RESTART_Elevated);
            //Approach3 -Not able to use
            var manager = Package.GetGlobalService(typeof(SVsExtensionManager)) as IVsExtensionManager;
            IInstallableExtension gwPamExtension;
            var restartReason = manager.Install(gwPamExtension, true);

Need help to avoid manual approach to avoid running devenv/setup form cmnd prompt.


Best Regards Showkath


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>