0

I am trying to create my own InnoSetup Control (combined dropdown and file input box with browse button). I need dynamic number of these controls. My idea was to inherit TControl and build the needed control like that.

type
  TConfigControl = class(TControl)
  public
    constructor Create(AOwner: TComponent);
  end;

I am not avid Pascal programmer but I think the syntax should be correct. When I try to compile the InnoSetup script it gives "Identifier expected" to the second line.

On the other hand, is this the correct way to do this kind of thing in innosetup?

TLama
  • 75,147
  • 17
  • 214
  • 392
Juho Rutila
  • 2,316
  • 1
  • 25
  • 40

1 Answers1

1

You can create your component in Delphi - regular Pascal allows you to do this.

Inno Setup Script cannot handle such situations (it is pretty complicated).

So develop plug-in (.dll file) and use it to place your control on Wizard's form.

Slappy
  • 5,250
  • 1
  • 23
  • 29
  • How this is different from my (finally deleted) answer ? In the suggestion to make an external library (or COM object, if we are at) ? And, *"You can create your component in Delphi - regular Pascal allows you to do this"* makes no sense to me. You wanted to suggest OP to build their own InnoSetup or what is the thought ? – TLama Apr 26 '13 at 08:42
  • The 'Pascal' language used in Inno Setup is not the same as in Delphi IDE. It is a 'light' version of Pascal and it does not allows you to do such complicated stuff. – Slappy Apr 26 '13 at 13:50
  • No, it is the Pascal Script; scripting language similar to Pascal. – TLama Apr 26 '13 at 13:51
  • Yes, exactly, that is a reason why I wrote 'Pascal'. – Slappy Apr 26 '13 at 13:52
  • Sorry, I missed that ' :-) – TLama Apr 26 '13 at 13:53