سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top