Skip to content

Write a Value to an .ini File

This custom action replaces the keys and values under the specified section in an initialization file. Although you should use registry to store application settings, some applications may still work with .ini files.

Format of an INI file:

[AppName] Key=Value

Property NameData TypeDescription
AddUninstRefBooleanIndicates whether the uninstaller will remove the entry added to the .ini file by this custom action.
AppNameStringSpecifies the section containing the key name. This section name is typically the name of the calling application. Do not add the enclosing brackets [ ] yourself.
IniFileStringPoints to a string that names the initialization file. Do not forget the .ini extension and its path. Example: %WIN%\Myappli.ini
KeyStringContains the name of the key to be associated with a string.
ValueStringPoints to a string to be written to the .ini file. You can of course use variables.