Merge pull request #4548 from fufesou/fix/win_escape_char

fix escape \
This commit is contained in:
RustDesk 2023-06-05 11:38:37 +08:00 committed by GitHub
commit 8baa00b68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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