.net 如何从我的计算机上完全卸载 ClickOnce 应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10896223/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I completely uninstall a ClickOnce application from my computer?
提问by fostandy
While experimenting with trying to publish both a Fooand Foo Betaversion of my application via ClickOnceI managed to clobber the existing and previously-working-fine Foo1.0.0 install (replacing it with Foo Beta1.0.5, which does not work) due to using the same GUID, assembly name, product name or something.
在尝试通过ClickOnce发布我的应用程序的Foo和Foo Beta版本时,我设法破坏了现有的和以前运行良好的Foo1.0.0 安装(用Foo Beta1.0.5替换它,但它不起作用)由于使用相同的GUID、程序集名称、产品名称或其他内容。
OK, honest mistake. In an attempt to revert this I then uninstalled Foo Betausing the Windows 7 add/remove programs.
好吧,诚实的错误。为了恢复这一点,我然后使用 Windows 7 添加/删除程序卸载了Foo Beta。
My computer is now in a state where no instance of Fooshows up in Windows 7 Add/Remove programs. However, Foo Betais still shown as installed. In addition, I am unable to re-install Foo1.0.0, because it thinks that a newer version of the program (Foo Beta1.0.5) already exists on my computer - instead I get the `Unable to install because a newer version of this product is already installed' message.
我的计算机现在处于Windows 7 添加/删除程序中没有显示Foo实例的状态。但是,Foo Beta仍显示为已安装。此外,我无法重新安装Foo1.0.0,因为它认为我的计算机上已经存在较新版本的程序 ( Foo Beta1.0.5) - 相反,我收到了“无法安装,因为较新版本”此产品的已安装'消息。
How can I get my computer to a state where neither Foonor Foo Betahave ever been installed on it, so that I can then go and re-install Foo?
我怎样才能让我的计算机进入既没有安装Foo也没有安装Foo Beta的状态,这样我就可以去重新安装Foo 了?
So far I have read Stack Overflow questions Uninstall ClickOnce clientsand How can I remove all traces of a ClickOnce application from a customer's computer?and tried:
到目前为止,我已阅读 Stack Overflow 问题卸载 ClickOnce 客户端和如何从客户的计算机中删除 ClickOnce 应用程序的所有痕迹?并尝试:
- Deleting all the relevant foo.exe directories under %USERPROFILE%/
- Running mage.exe -cc
- Editing the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall and removing the entry for my Fooprogram.
- 删除%USERPROFILE%/ 下所有相关的foo.exe 目录
- 运行 mage.exe -cc
- 编辑 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall 并删除我的Foo程序的条目。
When I run the installer, I still get the error. Where is it finding traces of my program from? And for future reference, where is this documented?
当我运行安装程序时,我仍然收到错误消息。它从哪里找到我的程序的踪迹?为了将来参考,这是在哪里记录的?
回答by eoghank
You can try using this command to clear the ClickOnce cache:
您可以尝试使用此命令清除 ClickOnce 缓存:
rundll32 dfshim CleanOnlineAppCache
回答by Nemo
1) Run rundll32 %SystemRoot%\system32\dfshim.dll CleanOnlineAppCache
1) 运行 rundll32 %SystemRoot%\system32\dfshim.dll CleanOnlineAppCache
2) You might have to manually delete the ClickOnce deployment folders,
2) 您可能需要手动删除 ClickOnce 部署文件夹,
- On Windows Vista or higher, this will be the %LocalAppData%\Apps\2.0 directory.
- On Windows XP this will be the %USERPROFILE%\Local Settings\Apps\2.0 directory.
- 在 Windows Vista 或更高版本上,这将是 %LocalAppData%\Apps\2.0 目录。
- 在 Windows XP 上,这将是 %USERPROFILE%\Local Settings\Apps\2.0 目录。
3) You might also have to logout and login back
3)您可能还必须注销并重新登录
回答by Mr Heelis
DO IT THE OLD WAY! :D
老方法!:D
use the "old" control panel to remove the Click Once app and re-install it. Do not use the "new " Windows Ten/2016 interface
使用“旧”控制面板删除 Click Once 应用程序并重新安装。不要使用“新的”Windows Ten/2016 界面
EG this is GOODand will remove Click Once:
EG 这很好,将删除单击一次:
Start => type
Control Panel\Programs\Programs and Features
EG this is BADand will get you in a circular hell if you use it to remove Click Once:
EG这是BAD,将让你在一个圆形的地狱,如果你用它来除去点击一次:
Start => Run =>
ms-settings:
回答by Oleksandr Matviienko
Deleting all the relevant foo.exe directories under %USERPROFILE%/
删除 %USERPROFILE%/ 下所有相关的 foo.exe 目录
You should also look inside manifests folder
您还应该查看清单文件夹


