在Visual Studio的我的安装文件中添加另一个exe文件 [英] Add another exe file in my setup file in Visual Studio

查看:218
本文介绍了在Visual Studio的我的安装文件中添加另一个exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 2010中为Windows项目创建了Windows安装文件.该安装文件正在正常运行,并且已在计算机中安装了该软件.但是,要运行此软件,我需要运行另一个exe文件.我想将此外部exe文件添加到我的安装项目中,以便在安装软件时也将安装其他软件.

I have created a Windows setup file for my Windows project in Visual Studio 2010. This setup file is running properly and installed the software in the computer. But for running this software I need another exe file to run. I want to add this external exe file into my setup project so that when my software will install the other software will be installed too.

推荐答案

如果只想添加将在安装时在目标计算机上部署的另一个文件,则可以转到项目,文件设置 >标签,右键单击要添加文件的文件夹(例如 Application Folder ),在上下文菜单中单击 Add-File 并浏览到该文件您要添加的.它可以是计算机中的任何外部文件.

If you just want to add another file that will be deployed on the target machine when installing you can go to your project, File Setup tab, right click on the folder that you want to add the file to (eg. Application Folder), in the context menu click Add - File and browse to the file that you want to add. It can be any external file from your computer.

该文件将与您的应用程序一起安装.

That file will get installed along with your application.

编辑-要进入文件设置"标签,请在解决方案资源管理器中右键单击您的项目,然后选择查看"文件系统".

Edit - To get to the File Setup tab right click on your project in the solution explorer and select View - File System.

编辑2 -为了向您的设置项目添加自定义先决条件,请查看

Edit 2 - In order to add a custom prerequisite to your setup project have a look at this question.

这篇关于在Visual Studio的我的安装文件中添加另一个exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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