44 lines
1.2 KiB
PostScript
44 lines
1.2 KiB
PostScript
#--------------------------------------------------------
|
|
# File: Install.eps
|
|
#
|
|
# Wrapper script for Install of DoormanGauze tools
|
|
#
|
|
# Modifications:
|
|
# 07/13/2005 Created.
|
|
#--------------------------------------------------------
|
|
@include "_DriverIncludes.epm";
|
|
@include "_GetSystemVersion.epm";
|
|
|
|
@echo off;
|
|
|
|
if (($argc != 2)) {
|
|
echo "Usage: $argv[0] <driverName>";
|
|
return false;
|
|
}
|
|
|
|
string $driver = $argv[1];
|
|
|
|
# check to make sure we're NT 4 Sp4 or higher
|
|
int $majorVersion;
|
|
int $minorVersion;
|
|
int $buildNumber;
|
|
int $platformId;
|
|
int $spMajorVersion;
|
|
int $spMinorVersion;
|
|
ifnot (_GetSystemVersion($majorVersion, $minorVersion, $buildNumber, $platformId, $spMajorVersion, $spMinorVersion)) {
|
|
echo "Unable to get system version -- manually verify that";
|
|
echo "the target system is Windows NT Sp4 or greater";
|
|
pause;
|
|
} else if (($platformId == 1) || (($majorVersion == 4) && ($spMajorVersion < 4))) {
|
|
# 9x NT 4 Service pack 3 or less
|
|
echo "*** Target system is pre-NT Sp4. ***";
|
|
echo " DoormanGauze is not compatible with this system";
|
|
return false;
|
|
}
|
|
|
|
ifnot (_DriverInstall($driver, "DoormanGauze", 2, 1)) {
|
|
return false;
|
|
}
|
|
|
|
# we're done...
|
|
return true;
|