Home Download Buy Blog Forum Support

ST3: File association doesn't work properly in Windows 7

ST3: File association doesn't work properly in Windows 7

Postby ericripa on Tue Jan 29, 2013 4:06 pm

Hi,

Version: Sublime Text build 3007, Portable Windows 64 bit
OS: Windows 7 Enterprise

I cannot seem to get file association to work in the ST3 beta. ST2 worked fine (also portable). I removed ST2 to make sure Windows didn't think it was a mere duplicate but still when I select "Open with.." and then browse for ST3's sublime_text.exe it doesn't show up in the list of applications to choose from. So far I've had to use the Open dialog or drag n' drop files to ST3 to open them.

Thanks,
Eric
ericripa
 
Posts: 6
Joined: Fri Jul 27, 2012 9:17 am

Re: ST3: File association doesn't work properly in Windows 7

Postby jmoniatte on Mon Mar 04, 2013 12:39 pm

Having the same issue. Did you figure it out?

Thanks,
Jean
--
Jean Moniatte
UGAL
jean@ugal.com
http://www.ugal.com
jmoniatte
 
Posts: 1
Joined: Mon Mar 04, 2013 12:37 pm

Re: ST3: File association doesn't work properly in Windows 7

Postby rynti on Tue Mar 05, 2013 6:50 pm

The problem can easily be solved by editing the Windows Registry.

Just open regedit (Open the startmenu and enter "regedit.exe"), go to:
HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
And replace the (Default) value with the corresponding new path. In my case that would be:
"C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"

I hope this was helpful.

Best regards,
rynti
rynti
 
Posts: 1
Joined: Tue Mar 05, 2013 6:45 pm

Re: ST3: File association doesn't work properly in Windows 7

Postby ericripa on Wed Mar 13, 2013 8:08 am

rynti wrote:The problem can easily be solved by editing the Windows Registry.

Just open regedit (Open the startmenu and enter "regedit.exe"), go to:
HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
And replace the (Default) value with the corresponding new path. In my case that would be:
"C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"

I hope this was helpful.

Best regards,
rynti


Thanks for the suggestion rynti. This doesn't fully solve the problem though, this would require me to first register the file types using ST 2 and then manually switch them to ST 3. The root issue is that Windows doesn't seem to register ST 3 as a valid application for file association so if there is no association (for example a new Windows install) then Windows will blatantly ignore me selecting Sublime Text.exe (in ST 3 folder).

I should probably try to register my files with ST 2 and then do this trick though..
ericripa
 
Posts: 6
Joined: Fri Jul 27, 2012 9:17 am

Re: ST3: File association doesn't work properly in Windows 7

Postby schlamar on Wed Mar 13, 2013 1:04 pm

There is probably more in the registry pointing to ST2.

Following workflow helped (ST 2 was previously registered):

- Rename sublime_text.exe from ST 2 (e.g. to sublime_text2.exe) or delete it
- Run CCleaner Registry Cleaner (might require multiple runs)
- Register ST 3 sublime_text.exe as file associations
schlamar
 
Posts: 45
Joined: Tue Feb 19, 2013 2:11 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 14 guests