File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
test/jdk/tools/jpackage/helpers/jdk/jpackage/test Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ private static void runMsiexecWithRetries(Executor misexec) {
65
65
Executor .Result result = null ;
66
66
for (int attempt = 0 ; attempt != 3 ; ++attempt ) {
67
67
result = misexec .executeWithoutExitCodeCheck ();
68
- if (result .exitCode == 1618 ) {
68
+
69
+ // The given Executor may either be of an msiexe command or an
70
+ // unpack.bat script containing the msiexec command. In the later
71
+ // case, when misexec returns 1618, the unpack.bat may return 1603
72
+ if ((result .exitCode == 1618 ) || (result .exitCode == 1603 )) {
69
73
// Another installation is already in progress.
70
74
// Wait a little and try again.
71
75
ThrowingRunnable .toRunnable (() -> Thread .sleep (3000 )).run ();
You can’t perform that action at this time.
0 commit comments