@include "_Versions.dsi"; @echo off; if (($argc != 2) || (($argv[1] != "INSTALL") && ($argv[1] != "UPGRADE"))) { echo("* Invalid parameter(s)", ERROR); echo(); echo("Usage: $argv[0] "); return false; } string $os; if (!_GetOsFamily($os)) { echo("* Failed to get OS for install", ERROR); return false; } string $lines; if (!ReadFile("%_sgEnv{'script_path'}/$os/_Pc2.2Install.dss", $lines)) { echo("* No install script found for $os", ERROR); return false; } return `script "%_sgEnv{'script_path'}/$os/_Pc2.2Install.dss" -args "$argv[1]"`;