@SuppressWarnings("unused")
	public static void installRegistryKeys(ArrayList<String> selectedExts, boolean uninstall)
	{
		ArrayList<String> fileTypes = new ArrayList<String>();
		String jarPath = new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getAbsolutePath();
		if (!jarPath.contains(executableName) && !devMode) {
			JOptionPane.showMessageDialog(null, "Unable to find JAR path. Pls try again.", "Error", JOptionPane.ERROR_MESSAGE);
		}
		for (String s : selectedExts) {
			if (keyToFileMap.containsKey(s)) {
				String[] value = keyToFileMap.get(s);
				for (String ext : value) {
					fileTypes.add(ext);
				}
			}
			else {
				fileTypes.add(s);
			}
		}
		
		String total = "";
		
		for (String file : fileTypes) {
			if (!uninstall) {
				installShellExtension(file, jarPath);
			}
			else {
				uninstallShellExtension(file);
			}
			total = total + file + ",";
		}
		total = total.substring(0, total.length() - 1);
		
		completeInstallation(uninstall, total);
	}