避免在Inno Setup中重新启动提示 [英] Avoid restart prompt in Inno Setup

查看:216
本文介绍了避免在Inno Setup中重新启动提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 restartreplace 标志替换锁定的文件,因此它将在安装结束时提示消息以重新启动计算机.但我不想显示它,并且应将其设置为默认情况下稍后重新启动.有什么办法吗?

I am using restartreplace flag to replace the locked file, so it will prompt a message at the end of the installation to restart the machine. But I don't want to display it, and it should be set to restart later by default. Is there any way?

推荐答案

您可以隐藏是/否"重启单选按钮.并相应地更新屏幕文本.

You can hide Yes/No restart radio buttons. And update the screen text accordingly.

procedure CurPageChanged(CurPageID: Integer);
var
  S: string;
begin
  if CurPageID = wpFinished then
  begin
    WizardForm.YesRadio.Visible := False;
    WizardForm.NoRadio.Visible := False;
    WizardForm.NoRadio.Checked := True;
    S := SetupMessage(msgFinishedLabelNoIcons);
    StringChangeEx(S, '[name]', 'My Program', True);
    WizardForm.FinishedLabel.Caption := S;
    WizardForm.AdjustLabelHeight(WizardForm.FinishedLabel);
  end; 
end;

这篇关于避免在Inno Setup中重新启动提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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