开发者

Add another exe file in my setup file in Visual Studio

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.


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.

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


I presume you're using a "Setup Project" (vs. InstallShield, for example).

It sounds like you want a "custom action":

  • http://msdn.microsoft.com/en-us/library/bbd7cck3.aspx

  • http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ <= Look for "calling an executable as a custom action"


In VS2010, I had 3 Projects outputting 2 DLLs & 1 EXE, and a 4th Project as Setup Project. To add the DLLs & EXE in setup.exe file, this is how I did it,

Right Click on your Setup Project, Right Click->View->File System->Application Folder

In the Application Folder pane, Right Click->Add->Project Output

Select the required project from the drop down Project list and select "Primary Output".

That should be it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜