< prev index next >

src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinMsiBundler.java

Print this page

        

*** 419,429 **** params.put(WIN_APP_IMAGE.getID(), appDir); String licenseFile = LICENSE_FILE.fetchFrom(params); if (licenseFile != null) { ! // need to copy license file to the working directory and convert to rtf if needed File lfile = new File(licenseFile); File destFile = new File(CONFIG_ROOT.fetchFrom(params), lfile.getName()); IOUtils.copyFile(lfile, destFile); --- 419,430 ---- params.put(WIN_APP_IMAGE.getID(), appDir); String licenseFile = LICENSE_FILE.fetchFrom(params); if (licenseFile != null) { ! // need to copy license file to the working directory ! // and convert to rtf if needed File lfile = new File(licenseFile); File destFile = new File(CONFIG_ROOT.fetchFrom(params), lfile.getName()); IOUtils.copyFile(lfile, destFile);
*** 552,562 **** xml.writeStartElement("Include"); File launcher = new File(imageRootDir, WinAppBundler.getLauncherRelativePath(params)); if (launcher.exists()) { ! String iconPath = launcher.getAbsolutePath().replace(".exe", ".ico"); if (MENU_HINT.fetchFrom(params)) { xml.writeStartElement("Icon"); xml.writeAttribute("Id", "StartMenuIcon.exe"); xml.writeAttribute("SourceFile", iconPath); xml.writeEndElement(); --- 553,564 ---- xml.writeStartElement("Include"); File launcher = new File(imageRootDir, WinAppBundler.getLauncherRelativePath(params)); if (launcher.exists()) { ! String iconPath = launcher.getAbsolutePath().replace( ! ".exe", ".ico"); if (MENU_HINT.fetchFrom(params)) { xml.writeStartElement("Icon"); xml.writeAttribute("Id", "StartMenuIcon.exe"); xml.writeAttribute("SourceFile", iconPath); xml.writeEndElement();
*** 626,636 **** data.put("JpAppName", APP_NAME.fetchFrom(params)); data.put("JpAppDescription", DESCRIPTION.fetchFrom(params)); data.put("JpAppVendor", VENDOR.fetchFrom(params)); data.put("JpAppVersion", PRODUCT_VERSION.fetchFrom(params)); ! data.put("JpConfigDir", CONFIG_ROOT.fetchFrom(params).getAbsolutePath()); File imageRootDir = WIN_APP_IMAGE.fetchFrom(params); if (MSI_SYSTEM_WIDE.fetchFrom(params)) { data.put("JpIsSystemWide", "yes"); --- 628,639 ---- data.put("JpAppName", APP_NAME.fetchFrom(params)); data.put("JpAppDescription", DESCRIPTION.fetchFrom(params)); data.put("JpAppVendor", VENDOR.fetchFrom(params)); data.put("JpAppVersion", PRODUCT_VERSION.fetchFrom(params)); ! data.put("JpConfigDir", ! CONFIG_ROOT.fetchFrom(params).getAbsolutePath()); File imageRootDir = WIN_APP_IMAGE.fetchFrom(params); if (MSI_SYSTEM_WIDE.fetchFrom(params)) { data.put("JpIsSystemWide", "yes");
*** 647,666 **** if (INSTALLDIR_CHOOSER.fetchFrom(params)) { data.put("JpInstallDirChooser", "yes"); String fname = "wixhelper.dll"; try (InputStream is = getResourceAsStream(fname)) { Files.copy(is, Paths.get( ! CONFIG_ROOT.fetchFrom(params).getAbsolutePath(), fname)); } } // Copy l10n files. for (String loc : Arrays.asList("en", "ja", "zh_CN")) { String fname = "MsiInstallerStrings_" + loc + ".wxl"; try (InputStream is = getResourceAsStream(fname)) { Files.copy(is, Paths.get( ! CONFIG_ROOT.fetchFrom(params).getAbsolutePath(), fname)); } } try (InputStream is = getResourceAsStream("main.wxs")) { Files.copy(is, Paths.get( --- 650,671 ---- if (INSTALLDIR_CHOOSER.fetchFrom(params)) { data.put("JpInstallDirChooser", "yes"); String fname = "wixhelper.dll"; try (InputStream is = getResourceAsStream(fname)) { Files.copy(is, Paths.get( ! CONFIG_ROOT.fetchFrom(params).getAbsolutePath(), ! fname)); } } // Copy l10n files. for (String loc : Arrays.asList("en", "ja", "zh_CN")) { String fname = "MsiInstallerStrings_" + loc + ".wxl"; try (InputStream is = getResourceAsStream(fname)) { Files.copy(is, Paths.get( ! CONFIG_ROOT.fetchFrom(params).getAbsolutePath(), ! fname)); } } try (InputStream is = getResourceAsStream("main.wxs")) { Files.copy(is, Paths.get(
< prev index next >