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# interview questions and answers

Regards,

Visit Authors blog for more Most asked c# interview questions

Advertisements

About c# and .NET Interview questions

This blog is for developers who want to crack .NET and C# interviews. It has all tips and tricks needed to crack .NET interviews , C# interview , SQL Server interview , Java interview , WCF Interview , Silverlight interview , WPF interview , LINQ interview , Entity framework Interview. Do not forget to watch our Learn step by step video series. Learn MVC in 16 hours:- https://www.youtube.com/watch?v=Lp7nSImO5vk Learn AngularJS Step by Step:- https://www.youtube.com/watch?v=0kmdjqgO9IY Learn Design Pattern in 8 hours:- https://www.youtube.com/watch?v=YDobmucohqk Learn C# and .NET in 60 days:- https://www.youtube.com/watch?v=yh2SrzCkNQA Learn MSBI in 32 hours:- https://www.youtube.com/watch?v=mGPJx3ocFgg Learn SharePoint Step by Step in 8 hours:- https://youtu.be/C2fW76SwJNU
This entry was posted in Uncategorized and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s