我想运行一个安装程序,但只显示一个启动屏幕。我目前正在使用这个答案中所建议的逻辑在后台运行设置:
How to make the silent installation by using Inno Setup?
但是,我希望在安装过程中显示一个在安装完成后消失的简单图像。我认为我们可以使用InitializeSetup和DeinitializeSetup函数,但我不确定如何使用。
在阅读了问题How to hide the splash screen in verysilent mode setup of Inno Setup using ISSI?之后,似乎ISSI (Inno安装脚本包含)具有这种特性。但是ISSI网站已经死了,所以无法下载。
此外,我还尝试了这个问题Inno Setup - Transparent Splash Screen中提出的答案,但这似乎只适用于InitializeWizard,而不适用于InitializeSetup。
那么,如何运行后台设置,但只显示图像(jpeg、png或gif)?
发布于 2021-07-24 09:46:02
要显示splash屏幕,只需显示表单,并且永远不要隐藏它。如下所示:
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;不过,我不确定是否有办法在静默模式下隐藏向导。这可能是另一个问题的主题。
尽管实际上,在静默模式下,您可以将向导本身转换为启动屏幕,方法是用图像覆盖它。
https://stackoverflow.com/questions/68505264
复制相似问题