如何在安装/卸载 ClickOnce 应用程序期间执行自定义任务?

发布于 2024-10-09 10:06:55 字数 176 浏览 0 评论 0原文

有没有办法在安装或卸载 ClickOnce 应用程序期间运行自定义代码?

这个问题之前已经被问过这里,但那是很久以前的事了,恕我直言,答案非常混乱,而且我希望 VS 的后续版本能够提供更优雅的解决方案......

Is there any way to run custom code during the installation or uninstallation of a ClickOnce app?

This question has been asked before here, but that was a long time ago, the answer given there was IMHO very kludgy, and I'm kind of hoping that the later releases of VS have provided a more elegant solution...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

似狗非友 2024-10-16 10:06:55

ClickOnce 无法执行安装后或卸载后操作(VSTO 应用程序除外)。您的应用程序是 VSTO 应用程序吗?

ClickOnce does not have the capability to do post-install or post-uninstall actions EXCEPT for the VSTO applications. Is your app a VSTO application?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文