Visual Studio 安装程序 >如何在安装程序结束时启动应用程序 [英] Visual Studio Installer > How To Launch App at End of Installer

查看:35
本文介绍了Visual Studio 安装程序 >如何在安装程序结束时启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题,我的谷歌搜索今天无法正常工作.

This is probably a stupid question and my Googling just is not functioning today.

我有一个应用程序,我向其中添加了 Visual Studio 安装程序 > 安装向导项目.我想知道如何添加一个按钮或复选框,以便在成功安装后启动应用程序.这将位于 MSI 安装程序包的最后一页.我使用的是 Visual Studio 2010 Ultimate.

I have an application I added a Visual Studio Installer > Setup Wizard project to. I am wondering how to add a button or check box that would launch the application after successful install. This would be located on the last page of the MSI Installer Package. I am using Visual Studio 2010 Ultimate.

我需要这个,以便当应用程序进行自动更新时,它会自动启动安装程序.我只需要安装程序在更新后重新启动应用程序.

I am needing this so that when the application does an automatic update, it auto launches the installer. I just need the installer to relaunch the app after the update.

这可能很简单,但对于我的生活,我无法弄清楚.预先感谢您的帮助.

This is probably very simple but for the life of me I cannot figure it out. Thanks in advance for you help.

推荐答案

警告:应用程序最终将作为高权限帐户运行,这会影响安全和用户体验.

Warning: The application will end up running as a high privilege account, which has security and user experience implications.

要在安装完成后运行任何应用程序,

To run any application after the installation is complete,

  1. 右键单击您的设置项目,然后单击自定义操作.
  2. 然后右键单击提交"、添加自定义操作",然后选择要运行的文件.(请注意,它必须已经在您的应用程序文件夹中,这对您来说应该不是问题,因为您无论如何都在运行程序.
  3. 只需选择项目的输出.
  4. 然后,单击此添加的 .exe,并将 InstallerClass 更改为 false.这很重要,因为否则它会寻找安装程序.
  5. 您甚至可以通过将参数添加到 Arguments 属性来将参数传递给您的 .exe

这篇关于Visual Studio 安装程序 >如何在安装程序结束时启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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