inno-setup - 一诺 : Disallow "Ignore" when file is in use

标签 inno-setup

我正在使用 Inno Setup 作为我的 Windows 应用程序的安装程序。如果用户在安装程序运行时拥有该应用程序(例如更新),安装程序将在无法替换正在使用的文件时停止,并允许用户选择是中止、忽略还是重试。

我希望它只允许中止或重试并删除忽略选项。有谁知道如何做到这一点?

或者,如果这无法完成,如果应用程序正在运行,我如何才能使安装程序中止?

最佳答案

检测应用程序是否正在运行的简单方法需要应用程序的合作,因此最好在发布第一个版本之前解决这个问题。 使用 Inno Setup 的 AppMutex 设置。有一个 example in the Inno Setup knowledge base用于设置在多个 session 中可见的互斥体。 Inno Setup 的帮助文件中有更多关于 AppMutex 的内容。

关于inno-setup - 一诺 : Disallow "Ignore" when file is in use,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/379926/

相关文章:

compiler-errors - 打包双字节文件名时出错

ant - 如何在 javafx-ant、maven 和 INNO 中使用自定义 *.ISS?

error-handling - 如何跟踪在安装过程中是否显示错误消息,或者如何在发生错误时阻止忽略选项?

inno-setup - 在 Inno Setup 中的一个漂亮的任务对话框窗口中显示有关下载文件的错误哈希的信息

inno-setup - 使用 Inno Setup 完成安装后如何将安装路径写入注册表

environment-variables - Inno Setup-设置Java环境变量

installation - Inno Setup - 从另一个对话框打开目录浏览对话框而不隐藏它

inno-setup - 如何使用Inno Setup进行静默安装?

inno-setup - 发送 HTTP 请求

inno-setup - 帕斯卡脚本: Check if dest directory is empty and only print yes'/no warning if so