Home > Asp.net, C# > Steps to Create Setup and Deployment Project in Dot Net VS 2008

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: 29% [?]

Categories: Asp.net, C# Tags: ,
  1. nac
    July 22nd, 2009 at 00:56 | #1

    Thanks for the detailed explanation praveen.
    After installation I want a custom action to be performed which would attach a mdb file with SQl server instance present on client machine. Can this be achieved?
    I am able to ship the mdb file along with setup.

  2. Musarats
    August 5th, 2009 at 22:11 | #2

    thanks alot for exact steps :)

  3. nilgoun
    August 16th, 2009 at 19:52 | #3

    thanx .it’s so usefull.

  4. September 2nd, 2009 at 22:17 | #4

    Hi Praveen,

    Please let me know the procedure to create a setup file through which we can update the existing application of this setup.

  5. Rahul
    September 24th, 2009 at 17:05 | #5

    Its very useful for me.Thanx

  6. Huda
    October 6th, 2009 at 01:55 | #6

    thanks..
    i want to change the default icon of ny setup .exe file as well as icon which appear for the application after installing ..
    plz reply on my mailing address
    noorulhuda__sunny@hotmail.com

  7. Ramesh
    October 6th, 2009 at 03:07 | #7

    This one is very much helpful for me.. Thanks alot for detailed steps..

  8. Om Apte
    October 6th, 2009 at 05:32 | #8

    hey thamks for the help..
    Now that i have done this shortcut part, I am getting greedy. Do you know how to add Uninstall option to the shortcut on Start button->Programs

  9. sriram
    October 12th, 2009 at 04:39 | #9

    i created setup file and installed it on my computer..

    but i didn’t get any shortcutkey on my desktop. so please tell me where can i found the shortcutkey to run my application

  10. October 13th, 2009 at 18:43 | #10

    @sriram
    To Create the User Desktop shortcut key,
    1. Go to the “File System” tab in your project
    2. Select the “User’s Desktop” folder
    3. Right click on the files section and select “Create New Shortcut” in the popup menu.
    4. Now the “Select Item ..” dialog box will be opened. In this select the application for which the shortcut should be created.
    5. After the shortcut is created; if you want to rename it, select the shortcut and
    either press ‘F2′ or right click on that to select ‘Rename’ and rename it.

  11. Praveen
    October 14th, 2009 at 04:38 | #11

    @sriram
    Hi friend check the Step 9 and Step 10. It shows how to create the Desktop shortcut.

  12. jaya
    October 21st, 2009 at 18:02 | #12

    thanks for your help.It is really useful.thanks a lot………….

  13. naji
    October 31st, 2009 at 22:37 | #13

    really thank for this help and i hope we can know more about that later

  14. Urbandive
    November 9th, 2009 at 07:59 | #14

    Hi,

    I’ve been trying to change the shortcut icon so that it matches the application icon but can’t seem to get it right. Any idea ?

    Thanks,

    Manuel

  15. November 10th, 2009 at 20:42 | #15

    Very good explanation with screen shots .
    It is understandable by any programmer..thanks a lot.

  16. Gagan
    November 13th, 2009 at 19:15 | #16

    Hi,

    this is very low level sample.
    we really need the advance one.

  17. ruwanthaka
    November 24th, 2009 at 21:03 | #17

    if this is very low level one it’s really helpful for a beginner on this topic.
    really good task, thanks a lot praveen.
    regards
    Ruwanthaka

  18. ruwanthaka
    November 24th, 2009 at 21:04 | #18

    even this is very low level one it’s really helpful for a beginner on this topic.
    really good task, thanks a lot praveen.
    regards
    Ruwanthaka

  19. javasoul
    December 1st, 2009 at 23:06 | #19

    Thanks its helpful.

  20. Hemant
    January 11th, 2010 at 20:43 | #20

    Owesome Man……
    Really good work…….

  21. madhu
    January 28th, 2010 at 22:24 | #21

    nice one.
    I need one more info. Is it possible to make our own executable file as a pre requisite

  22. mahrosh
    January 30th, 2010 at 09:28 | #22

    that is jus awesome explanation
    bt i gt .net framework 3.5 vs 2008 how to make setup & deployment in it…?

  23. Ratheesh
    February 2nd, 2010 at 22:44 | #23

    THANKS DUDE

  1. No trackbacks yet.