Inno setup Inno安装程序:静默安装时如何抑制“正在使用的文件”对话框?

Inno setup Inno安装程序:静默安装时如何抑制“正在使用的文件”对话框?,inno-setup,Inno Setup,当我使用/verysilent参数以静默方式运行安装程序(由Inno Setup创建)时,另一个进程正在使用目标文件,Inno Setup会弹出“正在使用的文件”对话框,说明 An error occurred while trying to replace the existing file: DeleteFile failed; code 5. Access denied. Click Retry to try again, Ignore to skip this file(not rec

当我使用
/verysilent
参数以静默方式运行安装程序(由Inno Setup创建)时,另一个进程正在使用目标文件,Inno Setup会弹出“正在使用的文件”对话框,说明

An error occurred while trying to replace the existing file: DeleteFile failed; code 5. Access denied.

Click Retry to try again, Ignore to skip this file(not recommended), or Abort to cancel installation
我想取消此对话框,并自动选择“忽略”按钮,以便在用户重新启动计算机后,随时可以完成剩余的设置过程


通过使用
/suppressMsgBox
参数,可以抑制正在使用的文件对话框,但它会自动选择中止,以便安装程序终止。

是否对
[files]
条目使用
重启替换
标志?或者你的作品看起来怎么样?请将它与确切的消息框文本(这样即使其他有相同问题的人也能找到您的问题)一起包含到您的问题中,好吗?谢谢。使用
/nocloseapplications/norestart
运行时参数向每个文件条目添加
restartdreplace
标志似乎可以达到目的。