Deploying a windows application in Dot net

Hi

When we create a windows application, deployment is one of the most important issues with it. In dot net deploying a windows application is a very easy task. We can use the one click deployment while the application is in the development phase. But when we need to send the application to the user, the one click deployment is not useful.

We can use the visual Studio’s set-up project to easily create a professional deployment package. I this article I will show how can we create a simple deployment package.

For this purpose we first create a project. The project has only one windows form, which has a button. When you click the button the Application show the current time.

Next we add a set up project in the solution. For doing this right click on the Solution and go to Add->New Project. In the Other project Types -> Setup and deployment, we choose the Setup project.  Name the project to appropriate project name.

By default we will have the File system tab opened. Now we will add the project output to this setup. To do this Select the Application folder and choose Action -> Add -> project output. This will show the “Add Project dialog Group” dialog box.

In the project Dropdown list choose the correct project and choose the primary output from the list provided. Click on the Ok button and you will see some files added to the Application Folder. This is all you need to create the deployment package.

You can do many more things here. Like if we want to add shortcut of the application to the Desktop. Select the Primary output and use Action -> create shortcut of the… to create a shortcut of the primary out put. Now drag this to the User desktop folder to add a shortcut to the user’s desktop. To add an item in the start menu create one more shortcut and ad it to the User’s Program menu. You can also create a folder here and then add the shortcut to the start menu. You can also add the icons to the short cut by using the Icon property.

Hope this helps
Thanks
Vikram


Share this post   Email it |  digg it! |  reddit! |  bookmark it!

Feedback

Posted on 1/20/2007 6:20:26 AM

I just created a windows application that will connected to a db on my web server using a web service. I need to market and deploy this on my user's pc. Does the setup projet above include the dot net framework also along with this as the user's pc might not have the framework to run my windows application. Please let me know.
Note: My website above is currently an Ads and Info Website for News,Technology,Travel,Jewellery,Health etc...

Posted on 8/2/2008 3:12:06 AM

Hi there
I want to know how can i deploy my window based dot net application so that user have to do minimum process and adjustment to install my programme in his/her pc
please let me know if you can help me out.

Please post your comments:

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks  
Enter the text you see in the box:
 
Copyright © 2006 - 2009 Vikram Lakhotia