This commit is contained in:
Emmanuel Venisse 2005-11-16 16:06:12 +00:00
parent 2d8bbe0e14
commit 7e6eefa883
1 changed files with 11 additions and 9 deletions

View File

@ -196,17 +196,19 @@ public class BootstrapInstaller
Runtime r = Runtime.getRuntime();
String OS = System.getProperty( "os.name" ).toLowerCase();
String os = System.getProperty( "os.name" ).toLowerCase();
if ( OS.indexOf( "windows 9" ) > -1 )
//If this is windows set the shell to command.com or cmd.exe with correct arguments.
if ( os.indexOf( "Windows" ) != -1 )
{
p = r.exec( "command.com /c set" );
}
else if ( (OS.indexOf( "nt" ) > -1 )
|| ( OS.indexOf( "windows 20" ) > -1 )
|| ( OS.indexOf( "windows xp" ) > -1) )
{
p = r.exec( "cmd.exe /c set" );
if (os.indexOf("95") != -1 || os.indexOf("98") != -1 || os.indexOf("Me") != -1)
{
p = r.exec( "command.com /c set" );
}
else
{
p = r.exec( "cmd.exe /c set" );
}
}
else
{