shadowbrokers-exploits/windows/Resources/Pc2.2/Scripts/Install/_Pc2.2Install.dss
2017-04-14 11:45:07 +02:00

29 lines
No EOL
569 B
Text

@include "_Versions.dsi";
@echo off;
if (($argc != 2) ||
(($argv[1] != "INSTALL") && ($argv[1] != "UPGRADE")))
{
echo("* Invalid parameter(s)", ERROR);
echo();
echo("Usage: $argv[0] <INSTALL|UPGRADE>");
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]"`;