/** * Runs {@link ExecutableFile} instances collected during unpacking. * * @param executables the executables to run * @throws InstallerException if an executable fails */ private void executeFiles(List<ExecutableFile> executables) { if (!executables.isEmpty()) { FileExecutor executor = new FileExecutor(executables); PromptUIHandler handler = new ProgressHandler(listener, prompt); if (executor.executeFiles(ExecutableFile.POSTINSTALL, matcher, handler) != 0) { throw new InstallerException("File execution failed"); } } }
executableFiles.add(executableFile); FileExecutor fileExecutor = new FileExecutor(executableFiles); int retval = fileExecutor.executeFiles(ExecutableFile.POSTINSTALL, matcher, this); if (retval == 0)