From 6b356b9ca8271909790453ba5e3b046bada99d52 Mon Sep 17 00:00:00 2001 From: Techjar Date: Thu, 12 Nov 2020 21:39:08 -0500 Subject: [PATCH 1/2] I think this will fix the silent failure with no existing install --- installer/Installer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/installer/Installer.java b/installer/Installer.java index e0790e3..33c4c7d 100644 --- a/installer/Installer.java +++ b/installer/Installer.java @@ -511,6 +511,7 @@ public void run() } //check for multimc + if (targetDir.exists()) for(File f : targetDir.listFiles()){ if(f.getName().equalsIgnoreCase("multimc.exe") || (f.getName().equalsIgnoreCase("multimc") && f.isFile()) || f.getName().equalsIgnoreCase("multimc.cfg")){ ArrayList ilist = new ArrayList(); From 8d05bd3a7febde853d7d06e1330c5ad45279078d Mon Sep 17 00:00:00 2001 From: Techjar Date: Sun, 24 Jan 2021 12:41:17 -0500 Subject: [PATCH 2/2] Default to program files --- installer/Installer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/Installer.java b/installer/Installer.java index 33c4c7d..b0965ba 100644 --- a/installer/Installer.java +++ b/installer/Installer.java @@ -1288,7 +1288,8 @@ private String checkForJava14(String path) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); fileChooser.setFileHidingEnabled(false); - fileChooser.setCurrentDirectory(new File(System.getProperty("java.home"))); + if (isWindows) + fileChooser.setCurrentDirectory(new File(System.getenv("ProgramFiles"))); fileChooser.setFileFilter(new FileFilter() { @Override public boolean accept(File f) {