installation - Inno 安装程序 : How to manipulate progress bar on Registering section?

标签 installation progress-bar inno-setup pascalscript

就像我在Inno Setup: How to manipulate progress bar on Run section?中的问题一样,Martin Prikryl 给了我一个很好的建议,我想在注册部分做同样的事情(改变进度条的样式),我的意思是,就在 Run 部分之前,当 Inno Setup 注册时DLL/OCX([Files] 中的regserver 标志)。

我尝试使用一些 PageID 使其工作,我认为是 wpInstalling 一个,将它与值变为 100 时的值进行比较,它变为选框样式,但我没有让它起作用。

非常感谢。

最佳答案

注册前没有触发事件。


最接近的是使用 AfterInstall parameter 最后安装的文件(不是 .dll):

[Files]
Source: "mydll.dll"; DestDir: "{app}"; Flags: regserver
Source: "myfile1"; DestDir: "{app}"
Source: "myfile2"; DestDir: "{app}"
...
Source: "myfileN"; DestDir: "{app}"; AfterInstall: AfterLastFileInstall

[Code]

procedure AfterLastFileInstall;
begin
  Log('Last file installed, file registration is starting');
  WizardForm.ProgressGauge.Style := npbstMarquee;
end;

另一种选择是处理 CurInstallProgressChanged event并等待 CurProgress = MaxProgress:

[Code] 

procedure CurInstallProgressChanged(CurProgress, MaxProgress: Integer);
begin
  if CurProgress >= MaxProgress then
  begin
    Log('Everything is installed, file registration is starting');
    WizardForm.ProgressGauge.Style := npbstMarquee;
  end;
end;

关于installation - Inno 安装程序 : How to manipulate progress bar on Registering section?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34590420/

相关文章:

java - 使用 NSSM 在 Windows 7 上安装 Java 服务

WIX:如何在不使用注册表搜索的情况下检测是否安装了第三方应用程序?

bash - 实现进度条

c# - 为什么使用命令行构建 VS 安装项目时没有输出?

java - Android进度条填充

Java 读取进程输出,无缓冲/实时

inno-setup - 将 Inno Setup WizardForm.Color 转换为 RGB

c# - Inno Setup - 具有依赖项的外部 .NET DLL

linux - 安装 RPM 依赖项

c# - Wix 安装程序 - 更新多个连接字符串