Installing a ClickOnce application from two different locations

核能气质少年 提交于 2019-11-30 21:33:38

So I have finally figured out how to deploy different versions of the same application. The application manifest file was missing deploymentProvider attribute of the deployment element.

After adding deployment provider attribute of the deployment element in the application manifest, I was able to install my app from various location. But the problem here was that it was overriding the previously installed application. For this problem, I followed this tutorial to distinguish my development application from the production application.

Everything works great now. :)

I have a product called ClickOnceMore (www.clickoncemore.net) that is designed for this type of use. Its main use is in automating the ClickOnce part of your build.

It has full support for macro expansions allowing you to define, for example, DEV and PROD versions. When you build you can define which environment you are building for and then the App Name will reflect that. Check it out if you get a chance.

Dean Kuga

The first thing I'd try is to go to the project properties of your Windows Forms project. In the Publish tab click on the Options button and change the "Product Name" to YourProductName_Test or something similar and see if that will allow you to install two versions side by side.

I never tried this, but I think ClickOnce apps are uniquely identified by a combination of "Publisher Name" and "Product Name" values and if that is the case this might solve your problem... Give it a shot...

I know this is an old thread, but I had this same error with WPF while trying to update and older version of the program. I had to uninstall the older version and rerun the click once installer then it worked fine.

I thought i would post it here.

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