卸载ClickOnce应用程序默默地 [英] Uninstalling a ClickOnce application silently

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

问题描述

我们有一个使用Visual Studio内置的ClickOnce部署工具部署在生产中的应用。我写一个批处理文件来卸载应用程序:

We have an production application that is deployed using Visual Studio's built-in ClickOnce deployment tool. I am writing a batch file to uninstall the application:

rundll32.exe dfshim.dll,ShArpMaintain AppName.application, Culture=neutral,
PublicKeyToken=XXXXXX, processorArchitecture=x86

这个批处理文件的工作原理和应用程序的卸载被调用。不过,我期待默默做到这一点。我曾尝试 / Q / Q / S / S /静音,但没有喜悦。

我怎样才能做到这一点?

How can I do this?

我的不可以要隐藏的批处理文件窗口。只有在的ClickOnce 窗口。

I do not want to hide the batch file window. Only the ClickOnce window.

推荐答案

由于似乎对此并没有很好的解决方案,我实现了一个新的ClickOnce卸载程序。它可以通过命令行调用,从.net,或集成到一个WiX的安装项目的自定义操作。

Since there seemed to be no good solution for this, I implemented a new ClickOnce uninstaller. It can be called via command-line, from .NET, or integrated into a WiX setup project as custom action.

<一个href=\"https://github.com/6wunderkinder/Wunder.ClickOnceUninstaller\">https://github.com/6wunderkinder/Wunder.ClickOnceUninstaller

我们用这个为我们的Wunderlist 2.1版本,在这里我们从ClickOnce的切换到Windows安装程序包。它集成到安装过程和完全透明的用户

We used this for our Wunderlist 2.1 release, where we switched from ClickOnce to a Windows Installer package. It's integrated into the installation process and completely transparent to the user.

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

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