logfile = installData.getInfo().getUninstallerPath() + "/install.log";
String uninstallerPath = installData.getInfo().getUninstallerPath(); if (uninstallerPath != null && uninstallerPath.startsWith(INSTALL_PATH))
/** * Determines if uninstall data should be written. * <p/> * Uninstall data should be written if {@link com.izforge.izpack.api.data.Info#getUninstallerCondition()} is * empty, or evaluates <tt>true</tt>. * * @return <tt>true</tt> if uninstall data should be written, otherwise <tt>false</tt> */ public boolean isUninstallRequired() { String condition = installData.getInfo().getUninstallerCondition(); return (installData.getInfo().getUninstallerPath() != null) && (condition == null || condition.length() == 0 || rules.isConditionTrue(condition) ); }
String tempFolder = IoHelper.translatePath(installData.getInfo().getUninstallerPath() + WEB_TEMP_SUB_PATH, installData.getVariables()); File tempDir = new File(tempFolder);
/** * Creates the uninstaller jar file. * * @throws IOException for any I/O error */ private void createOutputJar() throws IOException { // Create the uninstaller directory String dirPath = IoHelper.translatePath(installData.getInfo().getUninstallerPath(), installData.getVariables()); String jarPath = dirPath + File.separator + installData.getInfo().getUninstallerName(); File dir = new File(dirPath); if (!dir.exists() && !dir.mkdirs()) { throw new IOException("Failed to create output path: " + dir); } // Log the uninstaller deletion information uninstallData.setUninstallerJarFilename(jarPath); uninstallData.setUninstallerPath(dirPath); // Create the jar file jarStream = new FileOutputStream(jarPath); jar = new JarOutputStream(new BufferedOutputStream(jarStream)); jar.setLevel(9); uninstallData.addFile(jarPath, true); }
String tempFolder = IoHelper.translatePath(installData.getInfo().getUninstallerPath() + WEB_TEMP_SUB_PATH, installData.getVariables()); String tempFile;
String uninstallerPath = IoHelper.translatePath(installData.getInfo().getUninstallerPath(), installData.getVariables()); String cmd = "\"" + installData.getVariable("JAVA_HOME") + "\\bin\\javaw.exe\" -jar \""
String path = translatePath(installData.getInfo().getUninstallerPath());
if (uninstallerPack == null && installInfo != null && installInfo.getUninstallerPath() != null)
String path = translatePath(installData.getInfo().getUninstallerPath());