1
我创建直接InitializedWizard
节中的所有页面(他们没有创建实例的顺序; Page2, Page5, Page1
)像是否将Inno Setup Pascal脚本代码拆分为子功能/子程序会影响性能?
procedure InitializeWizard;
var
Text : TLabel;
Begin
Page2 := CreateCustomPage(Page1.ID, '', '');
Text := TLabel.Create(page2);
Text.Left := ScaleX(0);
Text.Top := ScaleY(35);
Text.Caption := '';
Text.Parent:= Page2.Surface;
Page5 := CreateCustomPage(Page4.ID, '', '');
Text := TLabel.Create(Page5);
Text.Left := ScaleX(0);
Text.Top := ScaleY(35);
Text.Caption := '';
Text.Parent := Page5.Surface;
End;
我是有区别的,如果我创建分离procedures
的页面,然后打电话给他们InitializeWizard
这样?
procedure CreatePage1;
var
Text : TLabel;
begin
Page2:= CreateCustomPage(Page1.ID, '', '');
Text := TLabel.Create(Page2);
Text.Left := ScaleX(0);
Text.Top := ScaleY(35);
Text.Caption := 'Tickets Printer';
Text.Parent := Page2.Surface;
end;
procedure InitializeWizard;
begin
CreatePage1();
CreatePage2();
CreatePage3();
end;
我不确定我是否理解这个问题。你有一些真正的问题吗?或者这只是一个通用的问题? –
运行安装程序时,我的性能非常糟糕,我相信更改页面创建顺序会提高性能,但3分钟前,我通过更改插入欢迎页面上的图像的提取顺序来解决我的问题页面(最后提取的图片),我现在将删除该问题,对不起,我没有在开头解释。 –
谢谢Martin –