1

我是 Inno Setup 概念的新手,但我仍然在 Internet 的帮助下创建了一个安装程序。我一直在寻找一个脚本来重新对齐wpFinished页面中的复选框(Direct X、DirectPlay)。

我已经使用 ISSI 脚本重新对齐位图图像 (x180),这给我带来了这个问题,但我不想更改图像值并希望通过重新对齐复选框来进行更改。

在此处输入图像描述

在上图中,红色标记显示错误,绿色显示我想要的位置。最后,我以前从未为 Inno Setup 编写过代码,所以我不知道如何启动它。

我觉得这几行脚本可能很重要:

[ISSI]
;SplashScreen
;; Name of the bitmap image:
#define ISSI_SplashScreen "C:\Users\Archangel_7\Downloads\Newfolder\AA_7.bmp"
;; Time in seconds:
#define ISSI_SplashScreen_T 1
;; Image Width:
#define ISSI_SplashScreen_X 488
;; Image Heigth:
#define ISSI_SplashScreen_Y 199
;; Include ISSI (required)
;WizardSmallBitmapImage [Default = [55x55]
#define ISSI_WizardSmallBitmapImage"C:\Users\Archangel_7\Downloads\ensemble.bmp"
#define ISSI_WizardSmallBitmapImage_x 70
;WizardBitmapImage [Front & Back] [Default = 164x314]
#define ISSI_WizardBitmapImage"C:\Users\Archangel_7\Downloads\AOE.bmp"
#define ISSI_WizardBitmapImage_x 180
;define ISSI_WizardBitmapImage_Align
#define ISSI_WizardBitmapImage2 "C:\Users\Archangel_7\Downloads\AOE.bmp"
#define ISSI_WizardBitmapImage2_x 180
;define ISSI_WizardBitmapImage2_Align
;[Background Image]
;define ISSI_Image "C:\Users\Archangel_7\Downloads\AA7.bmp"
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi"

[Files]
Source: C:\Users\Archangel_7\Desktop\Age of Empires\Redistributab\Directx\Dplay50a.exe; DestDir: {app}\Redistributable\Directx
Source: C:\Users\Archangel_7\Desktop\Age of Empires\Redistributable\Directx\Dxsetup.exe; DestDir: {app}\Redistributable\Directx

[Run]
Filename: {app}\Redistributable\Directx\Dxsetup.exe; Description: Direct X; Flags: postinstall
Filename: {app}\Redistributable\Directx\Dplay50a.exe; Description: Direct Play v5.0a; Flags: postinstall
4

2 回答 2

2

ISSI 根本不处理RunList(“完成”页面上的复选框列表)。

我无法测试它,但这应该可以:

#define ISSI_InitializeWizard

[Code]
procedure ISSI_InitializeWizard;
begin
  { Not sure about the value. You have to experiment here. }
  WizardForm.RunList.Left := ???;
end;
于 2015-06-11T10:03:18.440 回答
1

这是另一个论坛中给出的解决方案:

[ISSI]
;SplashScreen
; Name of the bitmap image:
#define ISSI_SplashScreen "C:\Users\Archangel_7\Downloads\Newfolder\AA_7.bmp "
; Time in seconds:
#define ISSI_SplashScreen_T 1
; Image Width:
#define ISSI_SplashScreen_X 488
; Image Heigth:
#define ISSI_SplashScreen_Y 199
; Include ISSI (required)
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi"
;WizardSmallBitmapImage [Default = [55x55]
#define ISSI_WizardSmallBitmapImage"C:\Users\Archangel_7\D ownloads\ensemble.bmp"
#define ISSI_WizardSmallBitmapImage_x 70
;WizardBitmapImage [Front & Back] [Default = 164x314]
#define ISSI_WizardBitmapImage"C:\Users\Archangel_7\Downlo ads\AOE.bmp"
#define ISSI_WizardBitmapImage_x 180
;define ISSI_WizardBitmapImage_Align
#define ISSI_WizardBitmapImage2 "C:\Users\Archangel_7\Downloads\AOE.bmp"
#define ISSI_WizardBitmapImage2_x 180
;define ISSI_WizardBitmapImage2_Align
;[Background Image]
;define ISSI_Image "C:\Users\Archangel_7\Downloads\AA7.bmp"

[Setup]
.....

[Languages]
.....

[Tasks]
....

[Files]
Source: C:\Users\Archangel_7\Desktop\Age of Empires\Redistributable\Directx\Dplay50a.exe; DestDir: {app}\Redistributable\Directx
Source: C:\Users\Archangel_7\Desktop\Age of Empires\Redistributable\Directx\Dxsetup.exe; DestDir: {app}\Redistributable\Directx

[Icons]
....

[Registry]
....

[Dirs]
....

[Run]
Filename: {app}\Redistributable\Directx\Dxsetup.exe; Description: Direct X; Flags: postinstall
Filename: {app}\Redistributable\Directx\Dplay50a.exe; Description: Direct Play v5.0a; Flags: postinstall

#define ISSI_UseMyCurPageChanged
[Code]
procedure ISSI_CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpFinished then
begin
WizardForm.RunList.Left:=198
end;
end;
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi" 
于 2015-06-14T08:01:30.380 回答