8290400: Must run exe installers in jpackage jtreg tests without UI

Reviewed-by: almatvee
This commit is contained in:
Alexey Semenyuk 2022-07-19 17:01:55 +00:00
parent d67e7ccda5
commit 1af7c33df5

View File

@ -132,7 +132,9 @@ public class WindowsHelper {
BiConsumer<JPackageCommand, Boolean> installExe = (cmd, install) -> {
cmd.verifyIsOfType(PackageType.WIN_EXE);
Executor exec = new Executor().setExecutable(cmd.outputBundle());
if (!install) {
if (install) {
exec.addArgument("/qn").addArgument("/norestart");
} else {
exec.addArgument("uninstall");
}
runMsiexecWithRetries(exec);