File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,21 @@ if (Test-Path $cursorExePath) {
28
28
$backgroundPath = " HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Cursor"
29
29
Run- RegCommand " ADD `" $backgroundPath `" /ve /d `" Open with Cursor`" /f"
30
30
Run- RegCommand " ADD `" $backgroundPath `" /v Icon /d `" $cursorExePath `" /f"
31
- Run- RegCommand " ADD `" $backgroundPath \command`" /ve /d `"`" $cursorExePath `" `" %V`"`" /f"
31
+ Run- RegCommand " ADD `" $backgroundPath \command`" /ve /d `" \ `" $cursorExePath \ `" \ `" %V\ `"`" /f"
32
32
Write-Host " Context menu for background installed successfully."
33
33
34
34
# # Install context menu for folders
35
35
$folderPath = " HKEY_CLASSES_ROOT\Directory\shell\Open with Cursor"
36
36
Run- RegCommand " ADD `" $folderPath `" /ve /d `" Open with Cursor`" /f"
37
37
Run- RegCommand " ADD `" $folderPath `" /v Icon /d `" $cursorExePath `" /f"
38
- Run- RegCommand " ADD `" $folderPath \command`" /ve /d `"`" $cursorExePath `" `" %1`"`" /f"
38
+ Run- RegCommand " ADD `" $folderPath \command`" /ve /d `" \ `" $cursorExePath \ `" \ `" %1\ `"`" /f"
39
39
Write-Host " Context menu for folders installed successfully."
40
40
41
41
# Install context menu for files
42
42
$filePath = " HKEY_CLASSES_ROOT\*\shell\Open with Cursor"
43
43
Run- RegCommand " ADD `" $filePath `" /ve /d `" Open with Cursor`" /f"
44
44
Run- RegCommand " ADD `" $filePath `" /v Icon /d `" $cursorExePath `" /f"
45
- Run- RegCommand " ADD `" $filePath \command`" /ve /d `"`" $cursorExePath `" `" %1`"`" /f"
45
+ Run- RegCommand " ADD `" $filePath \command`" /ve /d `" \ `" $cursorExePath \ `" \ `" %1\ `"`" /f"
46
46
Write-Host " Context menu for files installed successfully."
47
47
48
48
} else {
You can’t perform that action at this time.
0 commit comments