Inno setup ISSI Inno设置功能
我正在为Inno设置使用ISSI插件,尝试在[CODE]部分使用ISSI函数时出错Inno setup ISSI Inno设置功能,inno-setup,issi,Inno Setup,Issi,我正在为Inno设置使用ISSI插件,尝试在[CODE]部分使用ISSI函数时出错 Uknown identifier 'ISSI_CurPageChanged' 该插件是免费的,其主要功能可从以下网址获得: 我必须使用这个ISSI函数,否则我在尝试使用CurPageChanged时会出现重复错误 我的代码如下: #define ISSI_WizardBitmapImage2 "EcraFinal.bmp" #define ISSI_WizardBitmapImage2_x 495
Uknown identifier 'ISSI_CurPageChanged'
该插件是免费的,其主要功能可从以下网址获得:
我必须使用这个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文件已存在,并且正在由我的应用程序正确寻址。
有什么建议吗?提前谢谢你。这是个卑鄙的错误!:)
如果遇到此错误,请记住在[code]
部分后面包含ISSI插件(ISSI.isi文件)。像这样:
#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"
真奇怪。此解决方案无法解释为什么会出现关于重复事件方法标识符的错误。通过稍后在脚本中编写它,您只需稍后才包括其他事件方法。没别的了。它们还是应该复制的。你说得对。如果您尝试在[Code]部分执行CurPageChanged过程,则会出现重复的事件错误,因为ISSI已经在使用该函数。如中所述(如果ISSI使用该函数,则使用自定义CurPageChanged)。我没有包括[设置]部分来简化事情。谢谢特拉玛,你不应该吗?我认为您现在缺少了ISSI_UseMyCurPageChanged条件定义…并且正在使用它。“ISSI_UseMyCurPageChanged”定义在第4行,结构相同。啊,对不起,我错过了!我对你的答案做了一些小改动。希望您不介意:)使用带前缀的事件函数的解决方案在Inno Setup 6中已经过时,它带有事件属性。看见也看到