How to do custom tasks during install/uninstall of a ClickOnce app?

三世轮回 提交于 2019-11-30 14:43:26

问题


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...


回答1:


Check the following articles:

Administering ClickOnce Deployments

Walkthrough: Creating a Custom Installer for a ClickOnce Application




回答2:


This solution is not very elegant but works:

ClickOnce application autostart and clean uninstall or the way to customize ClickOnce installation




回答3:


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?



来源:https://stackoverflow.com/questions/4562537/how-to-do-custom-tasks-during-install-uninstall-of-a-clickonce-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!