diff --git a/src/qz/installer/WindowsInstaller.java b/src/qz/installer/WindowsInstaller.java index c52f1c600..665dd2cf6 100644 --- a/src/qz/installer/WindowsInstaller.java +++ b/src/qz/installer/WindowsInstaller.java @@ -84,7 +84,7 @@ public Installer addStartupEntry() { log.info("Creating startup entry \"{}\" -> \"{}\"", lnk, exe); ShellLink link = ShellLink.createLink(exe, lnk); link.setCMDArgs("--honorautostart"); // honors auto-start preferences - } catch(IOException | Win32Exception e) { + } catch(InvalidPathException | IOException | Win32Exception e) { log.warn("Could not create startup launcher", e); } return this; diff --git a/src/qz/installer/shortcut/WindowsShortcutCreator.java b/src/qz/installer/shortcut/WindowsShortcutCreator.java index e9f2a2143..5d2727a24 100644 --- a/src/qz/installer/shortcut/WindowsShortcutCreator.java +++ b/src/qz/installer/shortcut/WindowsShortcutCreator.java @@ -38,7 +38,7 @@ private void createShortcut(String folderPath) { try { ShellLink.createLink(getAppPath(), folderPath + File.separator + SHORTCUT_NAME); } - catch(IOException ex) { + catch(InvalidPathException | IOException ex) { log.warn("Error creating desktop shortcut", ex); } }