ClickOnce application replace current installed fliles

泄露秘密 提交于 2019-11-28 17:25:50

As the error message says, there are two options.

First, you as a developer should modify the version number of the ClickOnce manifest. This is done at the ClickOnce tab of the project settings. Note that ClickOnce version has nothing in common with your assembly (assemblies) version.

Another option is to uninstall the application and unfortunately, this probably has to be done manually. You have to find the ClickOnce deployment folder (C:\Users\username\AppData\Local\Apps\2.0) and manually delete all folder contents. This can also be done by invoking the

 rundll32 dfshim CleanOnlineAppCache

command from the commandline.

When I encountered this error it is because I wanted two different install locations for the same program. Specifically Program_A was published to two spots online and after changing a small thing in the program, I wanted them to both be installed on the same machine, but from different ClickOnce links.

So after receiving that error, instead of attempting to tweak the manifest I changed the options. Project Settings -> Publish -> Options -> I edited [Published Name, Suite name:, Product name:]. You may not have to change all three.

I now have both installs running. ClickOnce will install in a different directory, but it will remove the first desktop shortcut.

If you dont want to go that route, manifest information is here.
https://msdn.microsoft.com/en-us/library/ws1c2fch.aspx

And your manifest is usually is located under bin/debug(release)/yourprogramname.application.

MikeyZorro

I also found that both rundll32 dfshim CleanOnlineAppCache or mage.exe -cc don't seem to work, I still get the same error.

I have manually deleted the deployment folder.

On Windows XP the path to deployment folder would be C:\Documents and Settings\UserName\Local Settings\Apps.

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