Windows configuration file with sections

This example uses sections to categorize prerequisite properties for any Windows computer and then computers that run specific versions of Windows.

#Properties for all Windows operating systems when administrator logged in 
[OSType:Windows] [user.isAdmin=True]
os.versionNumber=5.1+
network.pingSelf=True
network.pingLocalhost=True
network.availablePorts.Derby=4130
env.CIT.homeExists=True
env.classpath.derbyJAR=False
# Disk space properties
Disk=[dir:C:\Program Files\IBM,unit:GB]1-2


#Properties for all Windows operating systems when non-root user logged in 
[OSType:Windows] [user.isAdmin=False]
os.versionNumber=5.1+
network.pingSelf=True
network.pingLocalhost=True
network.availablePorts.Derby=4130
env.CIT.homeExists=True
env.classpath.derbyJAR=False
# Disk space properties
Disk=[dir:C:\Program Files\IBM,unit:GB]1-2


[OSType:Windows Vista]
os.servicePack=2+

When you run Prerequisite Scanner, it scans and checks for different prerequisite properties depending upon the logged in user and the operating system and version that is installed on the computer.

For example, Table 1 outlines the different sections that contain the prerequisite properties that are checked based on the example.
Table 1. Scanned sections of a configuration file for Windows
Platform or operating system Sections with prerequisite properties
Computer with Windows XP and later, and the administrator is logged in
[OSType:Windows][user.isAdmin=True]
Computer with Windows Vista only, and the non-root user is logged in
[OSType:Windows][user.isAdmin=False]
[OSType:Windows Vista]