To add an entry into the right-click menu in Windows, edit the registry following the steps below.
-
Open the registry. You can search for
regeditin Windows Start menu and run it. -
Navigate to the key
HKEY_CLASSES_ROOT\Directory\Background\shellin the registry. -
Create another key with any name (e.g., rstudio) under
HKEY_CLASSES_ROOT\Directory\Background\shell. -
Set a value (e.g., Rstudio) for the newly created key (rstudio) in the right-side pane of the registry. This value (Rstudio) shows up in the right-click menu whenever you right click.
-
Create another key named
commandunder the newly created key (rstudio). -
Set the value of the newly created key
commandto be the full path of the application (e.g.,C:\Program Files\RStudio\bin\rstudio.exe) that you want to launch.