Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ISSI Inno Setup function [duplicate]

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.

like image 421
Andre Garcia Avatar asked Aug 04 '26 06:08

Andre Garcia


1 Answers

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"
like image 141
Andre Garcia Avatar answered Aug 06 '26 21:08

Andre Garcia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!