Search code examples
c#visual-studio-2010publish

Visual Studio 2010 - Publishing a Windows Form or WPF application


I've been looking around and other than: http://msdn.microsoft.com/en-us/library/31kztyey.aspx I have found no information on how to publish a Windows form application I have written.

I have managed to publish and then install my application on my local computer, but not in the way I had intended. I was hoping to be able to zip up the folder containing my published project and upload it somewhere, at which point people can download the zip file and install my application. The publishing wizard doesn't seem to be able to publish in such a way, or if it is, it is fairly unclear.

Can anyone point me in the right direction here? I can also clarify what I would like to do if need.


Solution

  • You can create Setup Project ( File-> New -> Project -> Other Project Type -> Setup and Deployment -> Visual Studio Installer -> Setup Project ). So, in Solution Explorer, you can add existing project. After add your project, you can add your program output in File System window( Right click on Application Folder -> Add -> Project Output ... ), so you select your project from Project ComboBox ). After adding your project output, you can build your setup-project and you will have your setup file in your setup-project. For more information you can check :

    Steps to Create Setup and Deployment

    Setup Projects