3

我在 Inno Setup 中使用ISSI 插件,在我的 [CODE] 部分中尝试使用 ISSI 函数时遇到错误

Uknown identifier 'ISSI_CurPageChanged'   

该插件是免费的,它的主要功能在:http: //members.home.nl/albartus/inno/ISSI_Functions/ISSI_Functions_Overview.htm

http://members.home.nl/albartus/inno/General_Information/Download_ISSI.htm

我必须使用这个 ISSI 函数,否则我在尝试使用 CurPageChanged 时会遇到重复错误。

我的代码如下:

#define ISSI_WizardBitmapImage2 "EcraFinal.bmp"
#define ISSI_WizardBitmapImage2_x 495
#define ISSI_WizardBitmapImage2_Align

#define ISSI_UseMyCurPageChanged
#define ISSI_BeveledLabel ""

#define ISSI_WizardBitmapImage "EcraInicial.bmp"
#define ISSI_WizardBitmapImage_x 495
#define ISSI_WizardBitmapImage_Align

; Include Plugin ISSI 
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi"

[Setup]
...

[Run]
...

[Code]
procedure ISSI_CurPageChanged(CurPageID: Integer);

begin
if CurPageID = wpWelcome then 
begin
WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall);  
//or := 'YourNewNextButtonText' or := ExpandConstant('{cm:YourCmTitleForNext}')
WizardForm.CancelButton.Caption := ExpandConstant('{cm:Cancelar isto}');
end; //begin + end to make changes only for this single page
end;
[/Code]

_issi-isi 文件存在并且我的应用程序正在正确寻址。有什么建议吗?先感谢您。

4

1 回答 1

2

这是一个初学者的错误!:)

如果您遇到此错误,请记住在您的部分_issi.isi之后包含 ISSI 插件(文件) 。[Code]像这样:

#define ISSI_WizardBitmapImage "EcraInicial.bmp"
#define ISSI_WizardBitmapImage_x 495
#define ISSI_WizardBitmapImage_Align

#define ISSI_WizardBitmapImage2 "EcraFinal.bmp"
#define ISSI_WizardBitmapImage2_x 495
#define ISSI_WizardBitmapImage2_Align

#define ISSI_BeveledLabel ""
#define ISSI_UseMyCurPageChanged

[Setup]
...

[Run]
... 

[Code]
procedure ISSI_CurPageChanged(CurPageID: Integer);
begin
  if CurPageID = wpWelcome then 
  begin
    WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall);  
    WizardForm.CancelButton.Caption := ExpandConstant('{cm:Cancelar isto}');
  end;
end;
[/Code]

; Include Plugin ISSI
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi"
于 2014-03-17T12:00:33.860 回答