private static void launchGui(boolean updateMode)
    {
        String userHomeDir = System.getProperty("user.home", ".");
        File targetDir = null;
        String mcDir = ".minecraft";
        if(getPlatform().equals(EnumOs.WINDOWS) && System.getenv("APPDATA") != null)
        {
            targetDir = new File(System.getenv("APPDATA"), mcDir);
        }
        else if(getPlatform().equals(EnumOs.MACOS))
        {
            targetDir = new File(new File(new File(userHomeDir, "Library"), "Application Support"), "minecraft");
        }
        else if(getPlatform().equals(EnumOs.UNIX))
        {
            targetDir = new File(userHomeDir, mcDir);
        }
        else
        {
            JOptionPane.showMessageDialog(null, "OS unrecognized, cannot install", Language.getLocalizedString("error"), JOptionPane.ERROR_MESSAGE);
        }

        try
        {
        	RemoteInfo.getVersionTarget();
        }
        catch(Throwable e)
        {
            e.printStackTrace();
            JOptionPane.showMessageDialog(null, "Corrupt download detected, cannot install", Language.getLocalizedString("error"), JOptionPane.ERROR_MESSAGE);
            return;
        }

        try
        {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        }
        catch(Exception e)
        {}

        InstallerPanel panel = new InstallerPanel(targetDir, updateMode);
        panel.run(updateMode);
    }