重新启动C#中的功能代码-不想使用进程启动 [英] Restart functionality code in c# -Don't want to use process start

查看:95
本文介绍了重新启动C#中的功能代码-不想使用进程启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

我正在实施Visual Studio 2012设置项目.它将安装一些扩展程序.我之后,我应该在Visual Studio命令提示符下运行以下命令  运行我们的自定义安装程序以查看更改.这将重置Visual Studio.

I am implementing Visual studio 2012 Set up project. Which will install some Extensions. I should run below command from visual studio command prompt, after I  ran our  custom installer to view changes .This will reset visual studio.

devenv /setup

 

 

现在我我正在寻找任何其他解决方案来重新启动Visual Studio,一旦我想在后台安装/卸载 vs 2012 rest.我不想使用

Now i am looking for any alternative solution to restart Visual studio  once i Install/Uninstall in background i want to rest vs 2012.I don't want to use

处理.开始

Process. Start

默认选项在扩展程序管理器中可用

Default option available in extension manager

 

我要重置Vs 2012以及自定义安装程序的安装或卸载,以便我可以查看更改.

I want to reset Vs 2012 along with installation or Un-Installation of our Custom installer, so that i can view changes.

 

感谢,

Thanks,

最好的问候Showkath

Best Regards Showkath

推荐答案

我不确定我是否完全理解这里的问题.但是,如果要使用安装程序安装VS扩展(而不是通过VSIX部署),则必须使用/setup运行devenv.exe.

I'm not sure I completely understand the question here. But if you are installing your VS extension with a setup program (and not via VSIX deployment), running devenv.exe with /setup is a requirement.

关于设置/安装程序的执行方式完全取决于您.但是,它可能在某种程度上取决于您使用的设置技术.例如,您的安装程序是使用InstallShield,WISE,Wix等编写的吗?这些技术各 能够使用自定义命令行生成应用程序.

As to how your setup/install program does this is entirely up to you. However, it's probably somewhat dependent on the setup technology you are using. For example, is your installer written using InstallShield, WISE, Wix, etc? Those technologies each have the ability to spawn off an application with a custom command line.

例如,(Wix)具有一组 自定义操作,其中包括一个VS2012Setup操作,该操作将通过该/setup命令运行devenv.exe.

For example (Wix) has a set of custom actions that includes a VS2012Setup action that will run devenv.exe with that /setup command.

此致


这篇关于重新启动C#中的功能代码-不想使用进程启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆