int userCompCount = Integer.parseInt(installer .getProperty("comp.user.count")); int develCompCount = Integer.parseInt( installer.getProperty("comp.devel.count"));
int userCompCount = installer.getIntProperty("comp.user.count"); int develCompCount = installer.getIntProperty("comp.devel.count");
	public ConsoleInstall()	{		installer = new SIMInstaller();		OperatingSystem os = OperatingSystem.getOperatingSystem();		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);		String installDir = os.getInstallDirectory(appName,appVersion);		System.out.print("Installation directory [" + installDir + "]: ");		System.out.flush();		String _installDir = readLine(in);		if(_installDir.length() != 0)			installDir = _installDir;		String binDir = os.getShortcutDirectory();		if(binDir != null)		{			System.out.print("Shortcut directory [" + binDir + "]: ");			System.out.flush();			String _binDir = readLine(in);			if(_binDir.length() != 0)				binDir = _binDir;		}		int userCompCount = Integer.parseInt(installer			.getProperty("comp.user.count"));		int develCompCount = Integer.parseInt(			installer.getProperty("comp.devel.count"));		Vector components = new Vector(userCompCount + develCompCount);		System.out.println("*** User components");		for(int i = 0; i < userCompCount; i++)		{			String fileset = installer.getProperty("comp.user." + i + ".fileset");			System.out.print("Install "				+ installer.getProperty("comp.user." + i + ".name")				+ " ("				+ installer.getProperty("comp.user." + 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("*** Developer components");		for(int i = 0; i < userCompCount; i++)		{			String fileset = installer.getProperty("comp.devel." + i + ".fileset");			System.out.print("Install "				+ installer.getProperty("comp.devel." + i + ".name")				+ " ("				+ installer.getProperty("comp.devel." + 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,os,progress,			installDir,binDir,			0 /* XXX */,components);		thread.start();	}