diff --git a/j-lawyer-client-installer.install4j b/j-lawyer-client-installer.install4j index e05efee..6ac7eac 100644 --- a/j-lawyer-client-installer.install4j +++ b/j-lawyer-client-installer.install4j @@ -1,7 +1,7 @@ - + @@ -968,7 +968,10 @@ return true; // need to set libreoffice.path so that we can later add it to PATH variable on windows if("install".equalsIgnoreCase((String)context.getVariable("libreoffice.installmode"))) { // default install location is %ProgramFiles%\LibreOffice - String programFiles=WinEnvVars.getenv("ProgramFiles"); + String programFiles="C:\\Program Files"; + if(Util.isWindows()) { + programFiles=WinEnvVars.getenv("ProgramFiles"); + } if(Util.is64BitWindows()) { // need to install 32 Bit LibreOffice due to unoconv not working //programFiles=WinEnvVars.getenv("ProgramFiles(x86)"); @@ -1970,6 +1973,9 @@ update-alternatives --set java /usr/lib64/jvm/jre-1.8.0-openjdk/bin/javacp /opt/j-lawyer-client/j-lawyer-client.desktop /usr/share/applications/j-lawyer-client.desktop update-alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181.b15-5.fc29.x86_64/jre/bin/java + + +