
INI.EXE is an ad-hoc utility for making changes to Windows-style INI files
(this includes MMPM2.INI in OS/2 and anything else with a similar syntax).
Its primary use is in dual-boot setups when the configuration files have to
be amended every time when their host system is switched.

The program operates by reading a set of "tags" (option/value instructions)
either from command-line or response file and applying them to a configuration
file (or a list of files) specified on command line.

By default, a "safe" mode is engaged to account for possible failures during
operation. The master file is saved into a temporary backup copy (.BAK) which
is deleted upon normal termination or used in place of a missing .INI file if
the program terminates abnormally. This mode is not a universal safeguard. It
can be disabled with the "-n" parameter in favor of speed.

Some practical arrangements are reviewed below.


Example 1: given OS/2 with Trident drivers and OS/2 with GRADD drivers, adjust
WIN.INI to pick the right drivers for a common Win-OS/2 installation:

CONFIG.SYS for GRADD:
CALL=C:\TOOLS\INI.EXE boot/fdisplay.drv=ifgdi2vm.drv boot/sdisplay.drv=isgdi2vm.drv C:\WINDOWS\SYSTEM.INI

CONFIG.T for Trident:
CALL=C:\TOOLS\INI.EXE boot/fdisplay.drv=xgifwin.drv boot/sdisplay.drv=xgiswin.drv C:\WINDOWS\SYSTEM.INI


Example 2: given IBM DOS 7.0 and OS/2 Warp 3, make the Crystal CS4239 drivers
for Windows 3.1 feel comfortable with each of these two hosts:

AUTOEXEC.BAT (IBM DOS 7.0)
C:\TOOLS\INI.EXE @C:\WINDOWS\AUDIOCFG.DOS C:\WINDOWS\SYSTEM.INI

CONFIG.SYS (OS/2 Warp 3)
CALL=C:\TOOLS\INI.EXE @C:\WINDOWS\AUDIOCFG.OS2 C:\WINDOWS\SYSTEM.INI

AUDIOCFG.DOS:
sndsys.drv/CS4232Control=538
sndsys.drv/BinFile=c:\windows\crystal\cwdaudio.bin
sndsys.drv/IOAddress=52c

AUDIOCFG.OS2:
sndsys.drv/CS4232Control=ff0
sndsys.drv/BinFile=c:\crystal\cwbaudio.bin
sndsys.drv/IOAddress=530


Example 3: given IBM DOS 7.0, OS/2 with Matrox native drivers and OS/2 with
GRADD, preconfigure Windows 3.1 for each of these environments (remove the
offending refresh control utility when booting OS/2; reinstate it for DOS):

AUTOEXEC.BAT (IBM DOS 7.0):
\TOOLS\INI windows/load=C:\mga\pdesk16\mgactrl.exe C:\WINDOWS\WIN.INI

CONFIG.SYS (OS/2 with GRADD drivers):
CALL=C:\TOOLS\INI.EXE windows/load= C:\WINDOWS\WIN.INI boot/display.drv=mgax64.drv boot/fdisplay.drv=ifgdi2vm.drv boot/sdisplay.drv=isgdi2vm.drv C:\WINDOWS\SYSTEM.INI

CONFIG.T (OS/2 with Matrox native drivers):
CALL=C:\TOOLS\INI.EXE windows/load= C:\WINDOWS\WIN.INI boot/display.drv=mgax64.drv boot/fdisplay.drv=smgax64.drv boot/sdisplay.drv=smgax64.drv C:\WINDOWS\SYSTEM.INI


Example 4: given OS/2 on a constrained laptop system, provide separate
Win-OS/2 configurations for "productivity mode" (16-color VGA @640x480) and
"presentation mode" (256-color seamless/64K color fullscreen @640x480):

CONFIG.SYS (IBMVGA32):
CALL=C:\TOOLS\INI.EXE fdisplay.drv=vga.drv sdisplay.drv=vga.drv C:\WINDOWS\SYSTEM.INI

CONFIG.P (WD90C24):
CALL=C:\TOOLS\INI.EXE fdisplay.drv=wd3116l.drv sdisplay.drv=wd3108sl.drv C:\WINDOWS\SYSTEM.INI
