diff --git a/distribution/src/installer/spark.install4j b/distribution/src/installer/spark.install4j
index ce987331..78406a70 100644
--- a/distribution/src/installer/spark.install4j
+++ b/distribution/src/installer/spark.install4j
@@ -105,6 +105,23 @@
+
+
+
+
+
+ previousDir
+
+
@@ -242,7 +259,16 @@ return console.askOkCancel(message, true);
-
+
+
+
+
+
+
+ context.getVariable("previousDir") != null
+