Shivprasad Koirala
C# and .NET interview questions - Show us in simple steps to create setup & deployment project for windows application?
By Shivprasad Koirala in ASP.NET on May 16 2011
  • Shivprasad Koirala
    May, 2011 16

    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 moreC# and .NET  interview questions

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS