ISSI Inno Setup function

1.3k views Asked by At

Im using ISSI plugin for Inno Setup and i am getting a error trying to use a ISSI function in my [CODE] section

Uknown identifier 'ISSI_CurPageChanged'   

The plugin is free and it´s main functions are available at: http://members.home.nl/albartus/inno/ISSI_Functions/ISSI_Functions_Overview.htm

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

I have to use this ISSI function because otherwise i get a duplicate error trying to use CurPageChanged.

My code is the follow:

#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]

The _issi-isi file exists and is being correctly addressed by my app. Any sugestions for what it might be? Thank you in advance.

1

There are 1 answers

6
Andre Garcia On

Its a begginer mistake! :)

If you ever face this error, remember to include the ISSI Plugin (the _issi.isi file) after your [Code] section. Like this:

#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"