当用户单击使用Innosetup脚本生成的安装程序中的下一个按钮时显示加载图像

时间:2012-03-01 14:53:21

标签: inno-setup pascal

我希望在用户点击使用Innosetup部署脚本制作的安装程序中的下一个按钮时显示加载图像。有任何方法可以执行此操作。

1 个答案:

答案 0 :(得分:2)

您必须创建自定义向导页面。在此页面中,您可以放置​​图像

在inno安装示例目录中有关于创建自定义向导页面的示例。 基本上你的脚本部分页面看起来像这样

[Code]
Var
  MyPage: TWizardPage;

Procedure CreateMyPage;
Var
  MyImageDisplay: TBitmapImage;
  MyImage: TBitmap;
Begin
  MyPage := CreateCustomPage(wpSelectDir, 'Licence checking', 'The setup will now verify your licence');
  //
  MyImageDisplay := TBitmapImage.Create(MyPage.Surface);
  // set the props... do something with it
  MyImage := TBitmap.Create;
  // set the props, load a file
  MyImageDisplay.Bitmap.Assign(MyImage)
End;

procedure InitializeWizard;
Begin
  CreateMyPage;
End;
相关问题