diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 6d50b8633..e4e1dd893 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -974,7 +974,7 @@ fn get_after_install(exe: &str) -> String { reg add HKEY_CLASSES_ROOT\\.{ext}\\shell\\open /f reg add HKEY_CLASSES_ROOT\\.{ext}\\shell\\open\\command /f reg add HKEY_CLASSES_ROOT\\.{ext}\\shell\\open\\command /f /ve /t REG_SZ /d \"\\\"{exe}\\\" --play \\\"%%1\\\"\" - reg delete HKEY_CURRENT_USER\Software\Classes\\{exe} /f + reg delete HKEY_CURRENT_USER\\Software\\Classes\\{exe} /f reg add HKEY_CLASSES_ROOT\\{ext} /f reg add HKEY_CLASSES_ROOT\\{ext} /f /v \"URL Protocol\" /t REG_SZ /d \"\" reg add HKEY_CLASSES_ROOT\\{ext}\\shell /f