FileForums

FileForums (https://fileforums.com/index.php)
-   Software (https://fileforums.com/forumdisplay.php?f=32)
-   -   Inno Script problem (Duplicate Identifier 'INITIALIZEWIZARD') [SOLVED] (https://fileforums.com/showthread.php?t=94184)

gabrimor 17-02-2013 05:33

Inno Script problem (Duplicate Identifier 'INITIALIZEWIZARD') [SOLVED]
 
Hi thanks for reading

Take a look in my resumed code above. Problem in the final with InitializeWizard. Error message: "Duplicate Identifier 'INITIALIZEWIZARD'"

It's been called by ISSI causing Duplicate Identifier problem.

Can you help me?

------------------------------------

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "ABC 3"
#define MyAppVersion "1.0"


#define ISSI_WizardBitmapImage "A.bmp"
#define ISSI_WizardBitmapImage_x 497
#define ISSI_WizardBitmapImage_y 314
#define ISSI_WizardSmallBitmapImage "B.bmp"
#define ISSI_WizardSmallBitmapImage_x 154
#define ISSI_WizardSmallBitmapImage_y 58
#define ISSI_WizardBitmapImage2 "C.bmp"
#define ISSI_WizardBitmapImage2_x 497
#define ISSI_WizardBitmapImage2_y 314
#define ISSI_IncludePath "C:\ISSI"
#include ISSI_IncludePath+"\_issi.isi"

[Setup]
AppId={{4179E89B-C990-43CD-8554-347A9362B4A3}
AppName={#MyAppName}
AppVerName={#MyAppName} {#MyAppVersion}


[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

[Files]
Source: Include\English.ini; DestDir: {tmp}; Flags: dontcopy
Source: "Logo.bmp"; Flags: dontcopy


[Code]
procedure LogoOnClick(Sender: TObject);
var ResCode: Integer;
begin
end;
procedure LogoWizard();

var
BtnPanel: TPanel;
BtnImage: TBitmapImage;
begin
ExtractTemporaryFile('Logo.bmp')

BtnPanel:=TPanel.Create(WizardForm)
with BtnPanel do begin
Left:=35
Top:=320
Width:=98
Height:=34
Cursor:=crHand
OnClick:=@logoOnClick
Parent:=WizardForm
end
BtnImage:=TBitmapImage.Create(WizardForm)
with BtnImage do begin
AutoSize:=True;
Enabled:=False;
Bitmap.LoadFromFile(ExpandConstant('{tmp}')+'\Logo .bmp')
Parent:=BtnPanel
end
end;
procedure InitializeWizard();
begin
LogoWizard();
end;

------------------------------------

[...]. After 3 hours i solved the problem.
Unfortunately, I don't have acknowledgment to explain exact how I did.

Used basically this:

http://members.home.nl/albartus/inno...uttonClick.htm

Razor12911 19-02-2013 09:49

Make something from scratch. you can ask me tips on how to.

ASSAiL 23-10-2013 11:33

delete issi script .. issi had already used INITIALIZEWIZARD.


All times are GMT -7. The time now is 17:03.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com