logger.fine("Lock File Exists, asking user for permission to proceed."); StringBuilder msg = new StringBuilder(); String appName = installData.getInfo().getAppName(); msg.append("The " + appName + " installer you are attempting to run seems to have a copy already running.\n\n"); msg.append("This could be from a previous failed installation attempt or you may have accidentally launched\n");
String appName = installationInfo.getAppName(); File file = FileUtil.getLockFile(appName); if (file.exists())
FileUtil.getLockFile(installData.getInfo().getAppName()).delete(); if (runner.relaunchWithElevatedRights() == 0)
@Override public String getTitle() { // Use a alternate message if defined. final String key = "installer.reversetitle"; Messages messages = installdata.getMessages(); String message = messages.get(key); // message equal to key -> no message defined. if (message.equals(key)) { message = messages.get("installer.title") + " " + installdata.getInfo().getAppName(); } else { // Attention! The alternate message has to contain the whole message including // $APP_NAME and may be $APP_VER. message = installdata.getVariables().replace(message); } return message; }
/** * Constructs a <tt>GeneratePropertiesAction</tt>. * * @param installData the installation data * @param path the path to write properties to * @throws FileNotFoundException if the file exists but is a directory rather than a regular file, does not exist * but cannot be created, or cannot be opened for any other reason */ public GeneratePropertiesAction(InstallData installData, String path) throws FileNotFoundException { super(installData); Info info = installData.getInfo(); this.options = new Options(); Config config = this.options.getConfig(); config.setEmptyLines(true); config.setHeaderComment(true); config.setFileEncoding(Charset.forName("ISO-8859-1")); this.options.setHeaderComment(Arrays.asList(info.getAppName() + " " + info.getAppVersion())); this.path = path; }
installData.setVariable(ScriptParserConstant.APP_NAME, info.getAppName()); if (info.getAppURL() != null) String installPath = dir + info.getAppName(); if (info.getInstallationSubPath() != null)
String welcomeText = messages.get("HelloPanel.welcome1") + info.getAppName() + " " + info.getAppVersion() + messages.get("HelloPanel.welcome2"); console.println(welcomeText);
String welcomeText = getString("HelloPanel.welcome1") + installData.getInfo().getAppName() + " " + installData.getInfo().getAppVersion() + getString("HelloPanel.welcome2"); JLabel welcomeLabel = LabelFactory.create(welcomeText, parent.getIcons().get("host"), LEADING);
String welcomeText = installData.getLangpack().getString("MyHelloPanel.welcome1") + idata.getInfo().getAppName() + " " + idata.getInfo().getAppVersion() + installData.getLangpack().getString("MyHelloPanel.welcome2"); JLabel welcomeLabel = LabelFactory.create(welcomeText, parent.getIcons().get("host"), LEADING);