问题
So my final query for my payroll application is -
How can I create a setup for payroll application?
All I need to know-
- How will I add setup project to my existing solution
- 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)
- 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