Xpode.com        Click here to Print this article.

C# and .NET interview questions - Show us in simple steps to create setup & deployment project for windows application?

Answer: 

This is a typical .Net interview question which is asked to understand if you know how to create deployment packages. When you are done with your application you would like to give your end user a setup package rather than the source code.

The short answer which the interviewer is expecting is that we can use the Visual studio deployment package project. Now the long answer just in case the interviewer gets in to details. So lets understand step by step of how to create a deployment package.

Following are the simple steps for creating setup and deployment for window application:

Step 1: Go to file and click add new project > select other project type > setup and deployment >visual studio installer then select the setup project, below are the sample diagrams which you need to follow.

s1.png

s2.png

The default File System editor will appear in the window as shown in the below diagram.

s3.png

Step 2:Select Application Folder and right click Add>Project Output>select Primary output.

s4.png

s5.png

Step 3: If you want to shortcut on desktop then Select User’s Desktop right click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output which you want.

s6.png

If you want to shortcut on program menu  then Select User’s Programs Menu right click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output which you want.

If you want to change the Manufactures name and other properties just right click the project goes to properties.

s7.png

Step 4: Finally Build the Setup1 project.

s8.png

Exe or installer will be available on the physical path of the project.

s9.png

 

Please click here to see more C# / .NET interview questions  

Regards,  
 
Visit Authors blog for more C# and .NET  interview questions



http://
http://

Contributed by:
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small E-learning company in India. We are very much active in making training videos , writing books and corporate trainings. Do visit my site http://www.questpond.com for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=411

Click here to go on website