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: 106
Joined: Tue Feb 19, 2013 2:11 pm

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

Postby sc5i on Tue May 28, 2013 3:17 pm

I have a similar issue. I cannot set ST3 as the default program for some files.

When I right click on a file, go to Open With, then "Choose Default Program," from there I click Browse, go to my Sublime Text 3 directory and select "sublime_text.exe" after pressing the "Open" button in that dialog, Windows will not show Sublime Text as an option in the "Open With" dialog, and it reverts back to what ever was set previously. (Notepad++ in my case.)

Windows version:
Windows 7 Enterprise 64bit SP1
ST3: Build 3033

I view this as a bug in ST3, and something that should be fixed. A registry hack doesn't exactly fit with my expectations.
sc5i
 
Posts: 3
Joined: Wed Dec 12, 2012 6:21 pm

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

Postby Oliv on Tue Jul 09, 2013 9:12 am

Hi,

uninstall ST2, then run a CCleaner registry check and all should be fine

Regards,
Oliv
 
Posts: 1
Joined: Tue Jul 09, 2013 9:10 am

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

Postby bjamesatwork on Fri Aug 02, 2013 3:28 pm

FIX:
Open Regedit
Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command

The Data field in this string key is probably mapped to the old version.
Change this to the correct filepath

C:\Program Files\Sublime Text 3\sublime_text.exe

And all is golden!
bjamesatwork
 
Posts: 1
Joined: Fri Aug 02, 2013 3:25 pm

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

Postby gregrobson on Tue Nov 26, 2013 5:10 pm

Previous post works should anyone be stuck like me.

I'm guessing that when you select the exe as the program, it's finding the path to be wrong and is ignoring the selection.
gregrobson
 
Posts: 1
Joined: Fri Sep 28, 2012 11:10 am

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

Postby lostcitizen on Mon Mar 31, 2014 3:30 pm

bjamesatwork wrote:FIX:
Open Regedit
Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command

The Data field in this string key is probably mapped to the old version.
Change this to the correct filepath

C:\Program Files\Sublime Text 3\sublime_text.exe

And all is golden!

worked for me thanks
lostcitizen
 
Posts: 3
Joined: Tue Mar 18, 2014 5:05 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 31 guests