【问题标题】:Inno Setup skip memo page if empty如果为空,Inno Setup 跳过备忘录页面
【发布时间】:2014-07-28 16:15:10
【问题描述】:

我正在使用此处找到的模块化依赖项脚本:http://www.codeproject.com/Articles/20868/NET-Framework-Installer-for-InnoSetup 来安装 .Net 和 VC++。

现在,一切都很好,让我的安装程序大小减少了大约 6MB。

但我想为用户提供最快的设置,当用户已经拥有所有必要的依赖项时,他会看到一个空的“备忘录”屏幕。这确实不是最佳的,如果什么都没有,我希望至少跳过这一步。

我可以使用if (GetArrayLength(products) = 0) then 测试是否有要安装的组件,但我找不到该测试的位置。

InitializeSetup 函数中我找不到如何告诉“跳过此屏幕”,在ShouldSkipPage 函数中,我找不到如何告诉“跳过备忘录页面”。

谢谢!

【问题讨论】:

    标签: inno-setup


    【解决方案1】:

    可能是这样的:

    [Code]
    function ShouldSkipPage(PageID: Integer): Boolean;
    begin
      // skip page when we are on the ready page and the memo is empty
      Result := (PageID = wpReady) and (WizardForm.ReadyMemo.Text = '');
    end;
    

    【讨论】:

    • 准确而快速的回答,一如既往:)谢谢! :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多