简体   繁体   English

如何卸载 ClickOnce 应用程序?

[英]How to uninstall ClickOnce application?

I was looking everywhere for this answer, but all related questions on SO are very old.我到处都在寻找这个答案,但是关于 SO 的所有相关问题都非常陈旧。 This question is from 2009 and the best (and only answer) has 3 steps. 这个问题来自 2009 年,最好的(也是唯一的答案)有 3 个步骤。 Really?真的吗? I mean.. isn't Uninstaller a basic feature of every Installer?我的意思是.. 卸载程序不是每个安装程序的基本功能吗?

Why Microsoft would create a feature that basically installs your app without an option of uninstalling it?为什么 Microsoft 会创建一个基本上可以安装您的应用程序而没有卸载选项的功能? That doesn't make sense at all.. so I really hope I just couldn't find it and there is an easy way to uninstall "ClickOnce" application.那根本没有意义.. 所以我真的希望我找不到它并且有一种简单的方法可以卸载“ClickOnce”应用程序。

EDIT: I'm using Visual Studio 2015编辑:我正在使用 Visual Studio 2015

Found this answer on msdn forums. 在msdn论坛上找到这个答案。 Hope it would be helpful. 希望它会有所帮助。

MSDN Forum Question MSDN论坛问题

Hi, 嗨,

You can create a cmd file and type the uninstall string. 您可以创建cmd文件并键入卸载字符串。 Then add a shortcut to this cmd file and put it to user's program folder. 然后为此cmd文件添加快捷方式并将其放入用户的程序文件夹。

Check this thread: http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/4b681725-faaa-48c3-bbb0-02ebf3926e25 检查此主题: http//social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/4b681725-faaa-48c3-bbb0-02ebf3926e25

To find the “uninstall string”, you could search it in the registry: 要查找“卸载字符串”,您可以在注册表中搜索它:

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/9a60c9ab-5d75-4d11-98e2-fd3b83f800ed/ http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/9a60c9ab-5d75-4d11-98e2-fd3b83f800ed/

You could also create a console application for this. 您还可以为此创建一个控制台应用程序。 And put the execute file with the deploy project then create a shortcut or copy this file to the user's program folder. 并将执行文件与deploy项目一起放入,然后创建快捷方式或将此文件复制到用户的程序文件夹中。

http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/717cfce0-3061-400f-9ea3-069f73f3a473 (The first FAQ) http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/717cfce0-3061-400f-9ea3-069f73f3a473 (第一个FAQ)

By the way, there is an article tells create uninstall shortcut for clickonce: 顺便说一句,有一篇文章告诉clickonce创建卸载快捷方式:

http://www.eggheadcafe.com/tutorials/aspnet/38ac5c61-4e9d-49eb-90d3-7911815e2244/create-uninstall-option-f.aspx http://www.eggheadcafe.com/tutorials/aspnet/38ac5c61-4e9d-49eb-90d3-7911815e2244/create-uninstall-option-f.aspx

Hope this helps. 希望这可以帮助。

Best regards, 最好的祝福,

Ling Wang 王玲

I know this question is old but Louisa Bickley asked for a simple solution.我知道这个问题很老,但 Louisa Bickley 要求一个简单的解决方案。 On Windows you go to Add/Remove programs , search for your application and remove it.在 Windows 你 go Add/Remove programs ,搜索你的应用程序并将其删除。

Note: This will only remove your installed application, not the entire project files.注意:这只会删除您安装的应用程序,而不是整个项目文件。 After uninstalling you can install your one-click application again in another folder.卸载后,您可以在另一个文件夹中再次安装您的一键式应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM