Saturday, 1 June 2013

Set Sublime Text 3 Portable Default Application Windows

Set Sublime Text 3 Portable Default Application Windows

I am storing the portable version of Sublime Text 3 on my dropbox in Windows 8. I set a registry setting to create the context menu items for both files and folders to open with Sublime Text 3.
When I try to use it, I get the following error:
This file does not have a program assiciated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel.
I don't want to use default programs, I want the ability to right click and open with regardless of the type.
This is what I am using for the registry changes:
Windows Registry Editor Version 5.00
HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command "C:\Dropbox\Apps\SublimeText3\sublime_text.exe" "%1"
[HKEY_CLASSES_ROOT\Directory\shell\Open Folder with &Sublime Text 3] @="Open Folder with &Sublime Text 3"
[HKEY_CLASSES_ROOT\Directory\shell\Open Folder with &Sublime Text 3\command] @="\"C:\Dropbox\Apps\SublimeText3\sublime_text.exe\" \"%1\""
[HKEY_CLASSES_ROOT*\shell\Open with Sublime Text 3]
[HKEY_CLASSES_ROOT*\shell\Open with Sublime Text 3\command] @="C:\Dropbox\Apps\SublimeText3\sublime_text.exe\ %1"

No comments:

Post a Comment