卸载ClickOnce客户端 [英] Uninstall ClickOnce clients

查看:91
本文介绍了卸载ClickOnce客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 ClickOnce 是按配置文件而不是按计算机安装的,因此有什么方法可以卸载单个

Since ClickOnce installs per profile rather than per computer, is there any way to uninstall a single ClickOnce client application from multiple profiles at the same time?

我们有一个ClickOnce应用程序,我们希望使用标准 MSI ,但我们不想以每个用户的身份登录进行卸载。

We have a ClickOnce application that we would like to remove and re-install using a standard MSI, but we don't want to have to log in as each user to do the uninstall.

假设没有任何东西被烘焙,有没有自定义工具?

Assuming there isn't anything baked in, is there a custom tool?

推荐答案

您可以手动删除每个用户的ClickOnce安装。我没有尝试过大规模使用,因此使用风险自负。但是,这些步骤应该摆脱ClickOnce应用程序。

You could manually delete the ClickOnce install for each user. I haven't tried doing this on a large scale, so use at your own risk. However, these steps should get rid of a ClickOnce app.


  • 删除已部署的文件。在我的计算机上,我的ClickOnce部署文件的路径为%UserProfile%\AppData\Local\Apps\2.0 。如果删除此文件夹下的所有内容,它将删除 all ClickOnce应用程序。显然,您需要为每个用户个人资料执行此操作。

  • Delete the deployed files. On my machine, the path to my ClickOnce deployed files is, %UserProfile%\AppData\Local\Apps\2.0. If you delete everything under this folder, it will delete all ClickOnce applications. Obviously, you'd need to do this for each user profile.

删除开始菜单快捷方式。同样,需要为每个用户个人资料完成此操作。

Delete the start menu shortcut. Again, this needs to be done for each user profile.

现在剩下的就是添加/删除程序中的一个条目。我认为删除此选项是可选的,因为它并没有真正损害任何东西,但是要摆脱它,您可以删除注册表项。遍历 HKEY_USERS 下的用户,并删除此密钥,即软件\Microsoft\Windows\CurrentVersion\卸载\ [与您的应用程序关联的随机字符串] 。 / p>

Now all that's left is an entry in Add/Remove programs. I think removing this is optional since it doesn't really hurt anything, but to get rid of it you can delete registry entries. Go through the users under HKEY_USERS and delete this key, Software\Microsoft\Windows\CurrentVersion\Uninstall\[random string associated with your app].

这篇关于卸载ClickOnce客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆