在卸载过程中使用RestartManager(Inno安装程序) [英] Use RestartManager during Uninstall (Inno Setup)

查看:276
本文介绍了在卸载过程中使用RestartManager(Inno安装程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Inno Setup中,可以使用CloseApplication启用Windows重新启动管理器,并检查正在运行的实例.但是,这不适用于卸载.安装程序将删除所有未使用的文件,并显示一条消息不能删除所有文件,请手动删除它们".

In Inno Setup, one can use CloseApplication to enable the Windows restart manager, and check for running instances. This, however, does not apply to the uninstallation. The setup removes all files that are not in use, and shows a message along the lines of "not all files could be removed, please remove them manually".

检查似乎在卸载运行期间运行的正在运行的实例的唯一方法是使用AppMutex.

The only way to check for running instances that seems to work during uninstall runs, is to use AppMutex.

在卸载过程中是否也有启用重启管理器的方法?

Is there a way to enable the restart manager during the uninstallation as well?

推荐答案

不,您不能在卸载程序中使用重新启动管理器(除非您从头开始对其进行编码).

No, you cannot use restart manager in uninstaller (unless you code it from the scratch).

但是您可以在InitializeUninstall中终止该应用程序.

But you can kill the application in InitializeUninstall.

为此,请参见由于程序正在运行,我对卸载"的回答失败.在尝试删除之前,如何使Inno Setup检查正在运行的进程?

这篇关于在卸载过程中使用RestartManager(Inno安装程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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