给服务更多时间关闭

Give Service more time to shut down

从我们的高级安装程序设置中,我们 install/upgrade 需要最多一分钟才能关闭的服务。我们不能减少它需要的时间,它会在一分钟后关闭。

如果 AI 试图停止该服务,它会在不到一分钟后出现错误消息 ("The setup was unable to automatically close all requested applications. Please ensure that the applications holding files in use are closed before continuing with the installation")。

我没有在 Advanced Installer Professional 中找到更改等待超时的选项。

这可能吗?

我认为这是不可能的。您可以尝试使用自定义操作来停止服务。这意味着您可以编写自己的代码来触发服务停止操作并等待一分钟。此代码可以作为自定义操作执行。

为确保不会抛出所描述的错误消息,您应该在 "Paths Resolution" 操作之前执行您的自定义操作。