【问题标题】:Display Splash Screen while running setup in silent or very silent mode在静默或非常静默模式下运行设置时显示启动画面
【发布时间】:2021-07-23 21:39:23
【问题描述】:

我想运行安装程序,但只显示启动屏幕。我目前正在使用此答案中建议的逻辑 在后台运行设置:
How to make the silent installation by using Inno Setup?

但是,我想在安装过程中显示一个简单的图像,一旦设置完成就会消失。我认为我们可以使用InitializeSetupDeinitializeSetup 函数,但我不确定如何。

阅读问题How to hide the splash screen in verysilent mode setup of Inno Setup using ISSI? 后,ISSI(Inno Setup Script Includes)似乎具有这种功能。但 ISSI 网站已死,无法下载。

此外,我还尝试了此问题Inno Setup - Transparent Splash Screen 中建议的答案,但这似乎仅适用于InitializeWizard 而不适用于InitializeSetup

那么,如何运行背景设置但只显示图像(jpeg、png 或 gif)?

【问题讨论】:

    标签: inno-setup splash-screen pascalscript issi


    【解决方案1】:

    要显示启动画面,只需显示表单,不要隐藏它。像这样:

    procedure InitializeWizard();
    var
      SplashForm: TSetupForm;
    begin
      if WizardSilent then
      begin
        SplashForm := CreateCustomForm;
        SplashForm.BorderStyle := bsNone;
        SplashForm.Position := poScreenCenter;
        SplashForm.ClientWidth := ScaleX(500);
        SplashForm.ClientHeight := ScaleY(350);
        SplashForm.Show;
    
        // Put some image/contents to the splash screen here
      end;
    end;
    

    虽然我不确定是否有办法在静默模式下隐藏向导。这可能是一个单独问题的主题。

    虽然实际上,在静音模式下,您可以通过用图像覆盖向导将其本身变成启动屏幕。

    【讨论】:

      猜你喜欢
      • 2010-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-29
      • 2014-09-28
      • 1970-01-01
      相关资源
      最近更新 更多