简体   繁体   English

卸载软件但阻止AfterUninstall

[英]Uninstall Software but prevent AfterUninstall

In the AfterUninstall Event of my installed program(.net / windows7) is some code which is harmful for my OS. 在我安装的程序(.net / Windows7)的AfterUninstall Event中,有一些代码对我的操作系统有害。

How can I uninstall this program now without running this code? 如何在不运行此代码的情况下立即卸载该程序?

If I would install a newer version of the same program would this code still run during the execution? 如果我要安装同一程序的较新版本,此代码在执行期间是否仍会运行?

Or are there any other solution to get rid of this program with corrupt uninstaller? 还是有其他解决方案可以使用损坏的卸载程序摆脱该程序?

A solution i found is: Compile a same version with modified/repaired AfterUninstall code. 我发现的解决方案是:使用经过修改/修复的AfterUninstall代码编译相同版本。 Copy the program files to the existing corrupt version and overwrite. 将程序文件复制到现有的损坏版本并覆盖。 Uninstall the corrupt version without problems. 卸载损坏的版本,没有问题。

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

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