InnoSetup Component Installer

   The Setup.ini file

  The Setup.ini file is what the script uses to determine what files are to be compiled and what compilers are supported. The structure of the file is:

[REGKEY]
Name=SoftGems\ThemeManager

[EXTRAPATHS]
Path1=$(INSTALLPATH)\Include

[INCLUDEPATHS]
Path1=..\Include

[D4_PACKAGES]
Package1=VirtualTreesD4
Package2=VirtualTreesD4D

[D5_PACKAGES]
Package1=VirtualTreesD5
Package2=VirtualTreesD5D

[D6_PACKAGES]
Package1=VirtualTreesD6
Package2=VirtualTreesD6D

[D7_PACKAGES]
Package1=VirtualTreesD7
Package2=VirtualTreesD7D

[D8_PACKAGES]
Package1=
Package2=

[D9_PACKAGES]
Package1=VirtualTreesD9
Package2=VirtualTreesD9D

[C3_PACKAGES]
Package1=
Package2=

[C4_PACKAGES]
Package1=
Package2=

[C5_PACKAGES]
Package1=VirtualTreesC5
Package2=VirtualTreesC5D

[C6_PACKAGES]
Package1=VirtualTreesC6
Package2=VirtualTreesC6D

Setup.ini structure.

  The first parameter is the Registry Key path that will be entered into ISTool and the install script. Here we are creating a subkey and placing VirtualTreeview under a toplevel SoftGems key. Do not place a slash after or before the path.

  For each compiler that the component supports add a line for each package that needs to be compiled, for example to support Delphi 4:

[D4_PACKAGES]
Package1=MyComponentBasePackageD4
Package2=MyComponentBasePackageD4D
Package3=MyComponentMainPackageD4
Package4=MyComponentMainPackageD4D

Note that the

  xxxxxDx
  xxxxxDxD

convention is NOT optional. You must name your packages this way. A runtime only package must end in its target compilers first letter then version for example:

Delphi

  • MyComponentD4

  • MyComponentD5
  • MyComponentD6
  • MyComponentD7
  • MyComponentD8
  • MyComponentD9

CBuilder

  • MyComponentC3

  • MyComponentC4
  • MyComponentC5
  • MyComponentC6

 A designtime package that will be installed into the IDE must end in its target compilers first letter then version for example:

Delphi

  • MyComponentD4D

  • MyComponentD5D
  • MyComponentD6D
  • MyComponentD7D
  • MyComponentD8D
  • MyComponentD9D

CBuilder

  • MyComponentC3D

  • MyComponentC4D
  • MyComponentC5D
  • MyComponentC6D

  Note that the order is important if packages require other packages. The order of compile is from top to bottom. If the components do not support a compiler then leave the keys blank

[D4_PACKAGES]
Package1=
Package2=
Package3=
Package4=

  NOTE:
  This file must be place in the root folder of the install path of the component.

 


mustangpeak.net

  Last Modified on: