Steps to Create Setup and Deployment Project in Dot Net VS 2008

Step 1
Create your own windows application. Create a new Windows application project in C# and named it as Sample.

d01

Step 2

Design your own application. Here we have a simple login form for example.

d02
Step 3
After completing the design and coding, build the solution of the project in release mode.

d03

Step 4
Check the Release folder for the file “ProjectName.exe”. Here in this example we have the project name as sample so we can find a file with the name Sample.exe. Double click the executable file and check the example.

d04

Step 5
Create a Deployment Project. Select the “Other Project Types” -> “Setup and Deployment” -> “Setup project”. Here we have the setup project for example as “SampleSetup”.

d05

Step 6
Add the Sample.exe project application file inside the “Application Folder”.

d06

Step 7

To make a shortcut for the project right click “File System on Target Machine” and create shortcut of the application. Here in this example the project shortcut is created in program files folder.

d07

Step 8
Create the shortcut of the application.

d08

Step 9
Rename the shortcut of the application.

d09

Step 10
Move the Shortcut file to specified target. Note if you need another shortcut for some other target also create use same steps.

d10

Step 11
Now build the solution in release mode.

d11

Step 12
The setup file created in release folder of the project specified path.

d12

Step 13
Run the setup, step the path to extract.

d13

d14

d15

Step 14
The SampleSetup project is extracted and shortcuts are created. Now run your application.

d16

Popularity: 100% [?]

Related posts:

  1. Dot Net Interview Questions – Part 3
  2. Dot Net Interview Questions – Part 1
  3. Dot Net Interview Questions – Part 2
  4. How to Embed a Flash File into C# Window Form?
  5. Create New Folder Using C#.Net
You can leave a response, or trackback from your own site.

63 Responses to “Steps to Create Setup and Deployment Project in Dot Net VS 2008”

  1. Fikru Feleke says:

    very helpful, thank you.
    how to include product key and update patch ?

  2. sohail says:

    Thanks a lot Dear. U saved my life. Actually i was having some other problem , but i got a hint from your above description . Thanks a million.

  3. No2No2 says:

    Thank you very much ^_^

  4. Ron says:

    Why can’t I set an icon on User’s Desktop shortcut from Application Folder?

  5. Sachin Suryawanshi says:

    Thanks for this topic..
    But in case of SQL database and Crystal Report this
    logic is not working….
    Can you give all detail about adding reference files of
    Crystal report and SQL Database….

    Thanks…

    Sachin……….

  6. Uday says:

    Hi,
    Thanks for the explaining the way of deployement. I have a question as below:
    Is it possible to include some folders (e.g Images) which contains some files used in project? How can we achieve it?

  7. sam says:

    that is very use full
    but
    how can i add registry key?

  8. Kathirvel KG says:

    for that you can use any of the opensource products like Inno Setup, Install Jammer.

  9. Ahmed says:

    Than q for the post its working….!

  10. kaushal says:

    but how with built in sql database..i know that u show..bt i dnt know how can we create setup with bulit in database for big project..need u r advise…help me bro…

  11. Abhijith Shetty A says:

    thank you for your help..

  12. mona says:

    realy it is so useful thank you so much

  13. mona says:

    realy it is so useful thank you so much
    but how can i put icon

Leave a Reply

Designed by: Business Web Hosting | Thanks to Buy Icons, travel tips and Used Cars