System.out.println("*** SIM - installing " + appName);
System.out.println("*** " + appName + " " + appVersion + " installer");
	public ConsoleInstall()	{		installer = new SIMInstaller();		String appName = installer.getProperty("app.name");		String appVersion = installer.getProperty("app.version");		BufferedReader in = new BufferedReader(new InputStreamReader(			System.in));		System.out.println("*** SIM - installing " + appName);		OperatingSystem os = OperatingSystem.getOperatingSystem();		String installDir = OperatingSystem.getOperatingSystem()			.getInstallDirectory(appName,appVersion);		System.out.print("Installation directory [" + installDir + "]: ");		System.out.flush();		String _installDir = readLine(in);		if(_installDir.length() != 0)			installDir = _installDir;		String binDir = OperatingSystem.getOperatingSystem()			.getShortcutDirectory();		if(binDir != null)		{			System.out.print("Shortcut directory [" + binDir + "]: ");			System.out.flush();			String _binDir = readLine(in);			if(_binDir.length() != 0)				binDir = _binDir;		}		int compCount = installer.getIntProperty("comp.count");		Vector components = new Vector(compCount);		System.out.println("*** Program components to install");		for(int i = 0; i < compCount; i++)		{			String fileset = installer.getProperty("comp." + i + ".fileset");			System.out.print("Install "				+ installer.getProperty("comp." + i + ".name")				+ " ("				+ installer.getProperty("comp." + i + ".size")				+ "Kb) [Y/n]? ");			String line = readLine(in);			if(line.length() == 0 || line.charAt(0) == 'y'				|| line.charAt(0) == 'Y')				components.addElement(fileset);		}		System.out.println("*** Starting installation...");		ConsoleProgress progress = new ConsoleProgress();		InstallThread thread = new InstallThread(			installer,progress,installDir,binDir,			0 /* XXX */,components);		thread.start();	}