From f443f3e46b01d149ac5141cb6f8aecd513f43ba6 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sun, 18 Jun 2023 20:51:06 +0530 Subject: [PATCH] fix windows context menu entry --- app/utils/system-context-menu.ts | 2 +- build/win/installer.nsh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/utils/system-context-menu.ts b/app/utils/system-context-menu.ts index e0c2b94e..80522d0c 100644 --- a/app/utils/system-context-menu.ts +++ b/app/utils/system-context-menu.ts @@ -9,7 +9,7 @@ const regKeys = [ ]; const regParts = [ {key: 'command', name: '', value: `${appPath} "%V"`}, - {name: '', value: 'Open Hyper here'}, + {name: '', value: 'Open &Hyper here'}, {name: 'Icon', value: `${appPath}`} ]; diff --git a/build/win/installer.nsh b/build/win/installer.nsh index 22b47b60..2a0b0a67 100644 --- a/build/win/installer.nsh +++ b/build/win/installer.nsh @@ -1,15 +1,15 @@ !macro customInstall WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper" "" "Open &Hyper here" - WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper" "Icon" "$appExe" - WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper\command" "" `$appExe "%V"` + WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper" "Icon" `"$appExe"` + WriteRegStr HKCU "Software\Classes\Directory\Background\shell\Hyper\command" "" `"$appExe" "%V"` WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper" "" "Open &Hyper here" - WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper" "Icon" "$appExe" - WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper\command" "" `$appExe "%V"` + WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper" "Icon" `"$appExe"` + WriteRegStr HKCU "Software\Classes\Directory\shell\Hyper\command" "" `"$appExe" "%V"` WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper" "" "Open &Hyper here" - WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper" "Icon" "$appExe" - WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper\command" "" `$appExe "%V"` + WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper" "Icon" `"$appExe"` + WriteRegStr HKCU "Software\Classes\Drive\shell\Hyper\command" "" `"$appExe" "%V"` !macroend !macro customUnInstall