create setup for the project solution in visual studio 2008

早过忘川 提交于 2019-12-22 18:14:20

问题


So my final query for my payroll application is -

How can I create a setup for payroll application?
All I need to know-

  1. How will I add setup project to my existing solution
  2. How to add files from solution to setup project and what files to be added and in what folder (i.e. there are three folder by default application folder,user desktop,user start menu)
  3. what will be the resultant file that will serves an exe file for payroll application

I have read below tutorial but I am not getting the real solution.

http://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.100%29.aspx


回答1:


A simple way to add setup to your project.

(1) File -> New Project -> Other Project Types -> Setup and Deployment -> Visual Studio Installer

(2) Add a name to your setup project.

(3) Right click Application Folder -> Add -> project output

(4) ****Select your respective project's solution "primary output from yours.."****

(5) ****Add the respective 3rd party dlls.**** // Never forget this one.

(6) Right click setup project in solution explorer and BUILD it.

(7) Find the respective setup in debug folder(by default)

You will get the .exe and .msi in the folder.


You can change the configuration between Debug and Release,

  • Right click the setup project in solution explorer -> Properties.

    You will find a configuration and select the respective one.

Check this What is the difference between Release and Debug modes?

Hope you understand.



来源:https://stackoverflow.com/questions/17616705/create-setup-for-the-project-solution-in-visual-studio-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!