2012-11-06 252 views
0

任何人都知道如何把一个个%的进度条下来吧Inno Setup的百分比%进度条

例如:在Photoshop Inno Setup的5.5.1-unicode的+脚本ISDone编辑的图像0.6感谢

enter image description here

+1

我们为什么要帮你海盗的东西到底是什么? – Miral

+2

也许这只是现有安装程序的一个例子? – ThiefMaster

回答

1

如果你想要把百分比标签上的安装wizard page,那么我认为这是不可能的。但是,您可以使用允许您控制进度条的CreateOutputProgressPage,并且可以通过Pascal脚本添加百分比标签。

[Code] 
procedure InitializeWizard(); 
var 
    Page: TOutputProgressWizardPage; 
    PercentLabel: TLabel; 
begin 
    Page := CreateOutputProgressPage('Caption', 'Description'); 
    Page.ProgressBar.Show; 
    PercentLabel := TLabel.Create(Page); 
    PercentLabel.Top := Page.ProgressBar.Top + 20; 
    PercentLabel.Caption := '0%'; 
    ... 
end; 

又读了这个问题:Inno Setup Simple progress page for Run section。它演示了如何控制进度。

+0

感谢飞溅,但并没有改变我下的地方,但数字的大小,但不 左:= ISDoneProgressBar1.Width的ScaleX +(-150); 顶部:= ScaleY ISDoneProgressBar1.Top +(100); – Marcio

+1

从现在起,你可以使用新的['CurInstallProgressChanged event'(https://github.com/jrsoftware/issrc/issues/51)计算百分比。 – TLama

+0

@TLama:感谢您的通知和您的工作! – splash