summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Schwär2020-10-22 11:31:23 +0200
committerStephan Schwär2020-10-22 11:31:23 +0200
commit4b21dfe1593571202b1f41f38f20e62c7956d73e (patch)
treef46e38645e3ad4ed2c7de6d6e99892c80d3b3b71
parent[client] Add OVF Tool path for vmware workstation under windows (diff)
downloadtutor-module-4b21dfe1593571202b1f41f38f20e62c7956d73e.tar.gz
tutor-module-4b21dfe1593571202b1f41f38f20e62c7956d73e.tar.xz
tutor-module-4b21dfe1593571202b1f41f38f20e62c7956d73e.zip
[client] Set OVF Tool path for different Windows versions
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageOvfConversionPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageOvfConversionPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageOvfConversionPage.java
index 61c869c3..0281ad19 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageOvfConversionPage.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageOvfConversionPage.java
@@ -49,9 +49,9 @@ public class ImageOvfConversionPage extends ImageOvfConversionPageLayout {
// Linux install should have put the ovftool into the path variable.
// Try to set it for windows and macos.
if (os.toLowerCase().contains("windows")) {
- ovfToolPath = "C:\\Program Files (x86)\\VMware\\VMware Workstation\\OVFTool\\ovftool.exe";
+ ovfToolPath = System.getenv("ProgramFiles(X86)") + "\\VMware\\VMware Workstation\\OVFTool\\ovftool.exe";
if (!(new File(ovfToolPath).exists())) {
- ovfToolPath = "C:\\Program Files (x86)\\VMware\\VMware Player\\OVFTool\\ovftool.exe";
+ ovfToolPath = System.getenv("ProgramFiles(X86)") + "\\VMware\\VMware Player\\OVFTool\\ovftool.exe";
}
} else if (os.toLowerCase().contains("mac")) {