INI Files
Create or modify INI files at install time.
| Property | Type | Required | Description |
|---|---|---|---|
targetPath | string | yes | Absolute path to the INI file on the install machine. |
sections | array of MsiIniFileSection | yes (non-empty) | INI sections to write. |
MsiIniFileSection
| Property | Type | Required | Description |
|---|---|---|---|
section | string | yes | INI section name (the [Section] header). |
values | array of MsiIniFileValue | yes (non-empty) | Key-value pairs in this section. |
MsiIniFileValue
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | yes | – | INI entry key. |
value | string | yes | – | INI entry value. Supports [Property] substitution. |
action | enum | yes | CreateOrUpdate | One of CreateOrUpdate, Create, CreateOrAppend. |
Example
"msi": {
"iniFiles": [
{
"targetPath": "$.installDir\\config.ini",
"sections": [
{
"section": "General",
"values": [
{ "key": "version", "value": "1.0.0", "action": "CreateOrUpdate" },
{ "key": "telemetry", "value": "true", "action": "CreateOrUpdate" }
]
},
{
"section": "Endpoints",
"values": [
{ "key": "api", "value": "https://staging.api.MyCompany.example.com", "action": "CreateOrUpdate" }
]
}
]
}
]
}
CreateOrAppend is useful for list-style values where multiple installers contribute entries.