< prev index next >

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

Print this page




1022         for(Map.Entry<String, String> wixVar: wixVars.entrySet()) {
1023             String v = "-d" + wixVar.getKey() + "=" + wixVar.getValue();
1024             commandLine.add(v);
1025         }
1026         ProcessBuilder pb = new ProcessBuilder(commandLine);
1027         pb = pb.directory(WIN_APP_IMAGE.fetchFrom(params));
1028         IOUtils.exec(pb);
1029 
1030         Log.verbose(MessageFormat.format(I18N.getString(
1031                 "message.generating-msi"), msiOut.getAbsolutePath()));
1032 
1033         boolean enableLicenseUI = (LICENSE_FILE.fetchFrom(params) != null);
1034         boolean enableInstalldirUI = INSTALLDIR_CHOOSER.fetchFrom(params);
1035 
1036         commandLine = new ArrayList<>();
1037 
1038         commandLine.add(getLightPath());
1039 
1040         commandLine.add("-nologo");
1041         commandLine.add("-spdb");
1042         commandLine.add("-sice:60");
1043                 // ignore warnings due to "missing launcguage info" (ICE60)

1044         commandLine.add(candleOut.getAbsolutePath());
1045         commandLine.add("-ext");
1046         commandLine.add("WixUtilExtension");
1047         if (enableLicenseUI || enableInstalldirUI) {
1048             commandLine.add("-ext");
1049             commandLine.add("WixUIExtension");
1050         }
1051 
1052         commandLine.add("-loc");
1053         commandLine.add(new File(CONFIG_ROOT.fetchFrom(params), I18N.getString(
1054                 "resource.wxl-file-name")).getAbsolutePath());
1055 
1056         // Only needed if we using CA dll, so Wix can find it
1057         if (enableInstalldirUI) {
1058             commandLine.add("-b");
1059             commandLine.add(CONFIG_ROOT.fetchFrom(params).getAbsolutePath());
1060         }
1061 
1062         commandLine.add("-out");
1063         commandLine.add(msiOut.getAbsolutePath());




1022         for(Map.Entry<String, String> wixVar: wixVars.entrySet()) {
1023             String v = "-d" + wixVar.getKey() + "=" + wixVar.getValue();
1024             commandLine.add(v);
1025         }
1026         ProcessBuilder pb = new ProcessBuilder(commandLine);
1027         pb = pb.directory(WIN_APP_IMAGE.fetchFrom(params));
1028         IOUtils.exec(pb);
1029 
1030         Log.verbose(MessageFormat.format(I18N.getString(
1031                 "message.generating-msi"), msiOut.getAbsolutePath()));
1032 
1033         boolean enableLicenseUI = (LICENSE_FILE.fetchFrom(params) != null);
1034         boolean enableInstalldirUI = INSTALLDIR_CHOOSER.fetchFrom(params);
1035 
1036         commandLine = new ArrayList<>();
1037 
1038         commandLine.add(getLightPath());
1039 
1040         commandLine.add("-nologo");
1041         commandLine.add("-spdb");
1042         if (!MSI_SYSTEM_WIDE.fetchFrom(params)) {
1043             commandLine.add("-sice:ICE91");
1044         }
1045         commandLine.add(candleOut.getAbsolutePath());
1046         commandLine.add("-ext");
1047         commandLine.add("WixUtilExtension");
1048         if (enableLicenseUI || enableInstalldirUI) {
1049             commandLine.add("-ext");
1050             commandLine.add("WixUIExtension");
1051         }
1052 
1053         commandLine.add("-loc");
1054         commandLine.add(new File(CONFIG_ROOT.fetchFrom(params), I18N.getString(
1055                 "resource.wxl-file-name")).getAbsolutePath());
1056 
1057         // Only needed if we using CA dll, so Wix can find it
1058         if (enableInstalldirUI) {
1059             commandLine.add("-b");
1060             commandLine.add(CONFIG_ROOT.fetchFrom(params).getAbsolutePath());
1061         }
1062 
1063         commandLine.add("-out");
1064         commandLine.add(msiOut.getAbsolutePath());


< prev index next >