![]() |
|
![]() |
The "Ini" Command |
This command is used to define a single INI file update and must be used within a particular "section" of the file (see "IniSection").
The macro takes these parameters:
You should use "*VALUE" if you have a VBSCRIPT expression which resolves to a string (use "cstr()" if you get a type mismatch).
Windows Installer does not support this value being empty, MAKEMSI can be configured to display an error message but by default it will reference a non-existing property to obtain the same effect. This conversion is only performed for literals.
The default for this parameter can be set via the DEFAULT_INI_HOW macro. The initial value is "ADD_OR_UPDATE".
The most likely reason to override the component would be because the entry requires different conditions for installation.
The default for this parameter can be set via the DEFAULT_INI_DOCO macro. The initial value for this is "Y".
EXAMPLE |
<$Component "INI" Create="Y" Directory_="INSTALLDIR" LM="Y"> <$IniFile "Dennis.INI" DIR="D:\DBAREIS\PROJECTS\Win32\MakeMsi\OUT"> <$IniSection "Section1"> <$Ini "Key11" Value="Value11"> <$Ini "Key12" Value="Value12"> <$/IniSection> <$IniSection "Section2"> <$Ini "Key21" Value="Value21"> <$Ini "Key22" Value="Value22"> <$/IniSection> <$/IniFile> <$/Component>
![]() ![]() |
| ![]() ![]() |