From 89a41afb022068667907468375ea1290b72f44e6 Mon Sep 17 00:00:00 2001 From: Vzor- Date: Thu, 29 Aug 2024 13:09:23 -0400 Subject: [PATCH] Windows chrome allowlist fix --- src/qz/installer/WindowsInstaller.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qz/installer/WindowsInstaller.java b/src/qz/installer/WindowsInstaller.java index b5a1c3c5..41e4f5f3 100644 --- a/src/qz/installer/WindowsInstaller.java +++ b/src/qz/installer/WindowsInstaller.java @@ -98,6 +98,8 @@ public Installer removeSystemSettings() { WindowsUtilities.deleteRegKey(HKEY_LOCAL_MACHINE, DATA_DIR); // Chrome protocol handler WindowsUtilities.deleteRegData(HKEY_LOCAL_MACHINE, "SOFTWARE\\Policies\\Google\\Chrome\\URLAllowlist", String.format("%s://*", DATA_DIR)); + // Deprecated Chrome protocol handler + WindowsUtilities.deleteRegData(HKEY_LOCAL_MACHINE, "SOFTWARE\\Policies\\Google\\Chrome\\URLWhitelist", String.format("%s://*", DATA_DIR)); // Cleanup launchers for(WindowsSpecialFolders folder : new WindowsSpecialFolders[] { START_MENU, COMMON_START_MENU, DESKTOP, PUBLIC_DESKTOP, COMMON_STARTUP, RECENT }) { @@ -145,7 +147,7 @@ public Installer addSystemSettings() { WindowsUtilities.addRegValue(HKEY_LOCAL_MACHINE, uninstallKey, "EstimatedSize", FileUtils.sizeOfDirectoryAsBigInteger(new File(destination)).intValue() / 1024); // Chrome protocol handler - WindowsUtilities.addNumberedRegValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Policies\\Google\\Chrome\\URLWhitelist", String.format("%s://*", DATA_DIR)); + WindowsUtilities.addNumberedRegValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Policies\\Google\\Chrome\\URLAllowlist", String.format("%s://*", DATA_DIR)); // Firewall rules ShellUtilities.execute("netsh.exe", "advfirewall", "firewall", "delete", "rule", String.format("name=%s", ABOUT_TITLE));