Announcement

Collapse
No announcement yet.

Editing a configuration file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Editing a configuration file

    I have a bit of several part question.

    I would like when "selecting a package" upon install, to edit a config file located:

    C:\ProgramData\Company\Product\

    The issue is, currently the config file will have entries like this:

    [Area.119]
    Title=Airport01
    Local=Scenery\Cities/Airport01
    Layer=119
    Active=TRUE
    Required=TRUE

    I would need to make the subsequent, [Area.120], so my entry would look like this:

    [Area.120
    Title=Airport02
    ocal=Scenery\Cities/Airport02
    Layer=120
    tive=TRUE
    Required=TRUE


    Any Guidance would be appreciated.

  • #2
    You will need to read the existing INI file, and use the next free "Area" and free "Layer". Read the existing values, sort them, then find a free number for the next Area and Layers. They may not be the same number, depending on the existing sceneries already installed on the target system.

    Ulrich

    Comment


    • #3
      thanks Ulrich!

      Comment

      Working...
      X