AddIni

INI File Extension

Related Topics Link IconRelated Topics

Definition

Use this command to add multiple entries or complete sections to an INI file. You can enter an existing or a new INI file in the Name of INI file text box.

The Installer automatically checks if the specified section of an INI file already exists or needs to be created. Existing values are updated when you extend already existing sections. This command supports all types of variables. The variables are converted to their current values when the command is executed; for example, %windir% will be converted to the name of the Windows directory.

You cannot use the AddINI, ModifyINI, ModifyOEM and ModifyOEMEx commands to share central files over a network.
Please do not use eScript-commands as section names or variable values.

If an error occurs while running the command, the script stops. If you want to continue the script if there is an error, enable the setting Continue script despite error in the Script Editor.

Settings

Buttons

  • SysEdit
    Starts the system configuration editor (SYSEDIT.EXE).
    This function is available on 32-bit computers only.
  • Edit File
    Loads the named file into the default editor (NOTEPAD.EXE) if you have not specified another editor.
  • Apply
    Displays the specified INI file in a special viewer where you can select the required lines. Confirm by clicking OK.

Options

Confirm each change
If checked, the user will be prompted to confirm each change to an existing entry.

Disable file redirection on x64 computers
For reasons of compatibilty, Ivanti DSM maps file and registry access to the default storage location for 32 bit applications (provided that the storage location differs from that of 64-bit applications). File access: whenever a 32-bit application attempts to access %windir%\System32, the access is redirected to %windir%\SysWOW64. Registry commands: when accessing HKEY_LOCAL_MACHINE\SOFTWARE the calls are redirected to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. The x64-switch stops this redirection of file and registry accesses when running the script command on a x64 computer; the eScript command runs on the specified path. CallScript command: the script runs in a 64-bit process.