Inno Setup a klasy

0

Witam. Tworze instalkę w inno setup i na potrzeby instalki potrzebuję utworzyć klasę, wszystko robie poprawnie definiuję klase tak jak się powinno ją definiowac ale kod nie chce się kompilować.
Oto fragment z inno setup

[Code]
type
TInstallItem = class
  constructor Make;
	property File: string; read write;
	property Params: string; read write;
	property RegistryKey: string; read write;
	property Shell: Boolean; read write;
	property Text: string; read write;
	property InstallWithoutAsking: Boolean; read write;
	property CheckBoxID: Integer; read write;
	property DependOn: Integer; read write;
	property ProgramMode: Integer; read write;
end;

var
	params:string;
	memoDependenciesNeeded: string;
	CheckListBox, CheckListBox2: TNewCheckListBox;
	OKButton, CancelButton: TNewButton;
	CheckBox: TNewCheckBox;
	staticText: TNewStaticText;
	rbB : TNewRadioButton;
	rbT : TNewRadioButton;
	App: InstallItem;
	Apps: array[1..100] of InstallItem;

Wywala mi się przy linijce TInstallItem i mówi że "identifier expected".
Z góry dzięki za pomoc

0

U mnie ta linijka kompiluje się bez problemu (Delphi 2007 Enterprise R2)
W którym miejscu jest ten kod?

0

Autre - czytaj ze zrozumieniem...

Oto fragment z inno setup

0
property File: string; read write;

=D

File <-- kliknij =D

0

BTW: Autre - musisz być świetnym szpecem, jak stać Cię na Delphi 2007 Enterprise - € 1749

0

jakieś wredne podteksty wyczuwam =D

0

jakieś wredne podteksty wyczuwam
Skądże znowu - normalny podziw i normalną ludzką zazdrość...

0

Jak dam jako rekord:

type
	InstallItem = record
  //constructor Make;
	File: string;
	Params: string;
	RegistryKey: string;
	Shell: Boolean;
	Text: string;
	InstallWithoutAsking: Boolean;
	CheckBoxID: Integer;
	DependOn: Integer;
	ProgramMode: Integer;
	CheckErrors: Boolean;
	AllowedCode: Integer;
end;

To mi działa. Czyżby kompilator delphi będący w inno nie obsługiwał klas ?

Pozdrawiam

0

Czyżby kompilator delphi będący w inno nie obsługiwał klas ?
W inno nie ma kompilatora delphi ;)

he scripting engine used by Inno Setup is RemObjects Pascal Script
to jest język skryptowy oparty na pascalu, zapewne ograniczony do jakiegoś stopnia - poczytaj help...

0
madmike napisał(a)

jak stać Cię na Delphi 2007 Enterprise - € 1749
Ale eMule jest za darmo... :D

1 użytkowników online, w tym zalogowanych: 0, gości: 1