Visual Studio 2010 - Publishing a Windows Form or WPF application

左心房为你撑大大i 提交于 2019-12-11 08:38:30

问题


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.


回答1:


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




回答2:


Try this way: ClickOnce (Too simple, free, many ability like Update )

Edit : Absolutely there are many ways, also you can use third party software (like InstallSheild). and Look at Different Windows Installer and ClickOnce




回答3:


You can create a setup-project - with this you can simply compile a setup and deploy all the setupfiles/msi and the user can install from this.



来源:https://stackoverflow.com/questions/7298013/visual-studio-2010-publishing-a-windows-form-or-wpf-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!