Home Download Buy Blog Forum Support

Error When Updating: "DeleteFile failed; code 5"

Error When Updating: "DeleteFile failed; code 5"

Postby kgrote on Tue Aug 07, 2012 5:17 pm

I'm trying to update from build 2181 to v2.0.1 on Windows 7 64-bit. After downloading the .exe file and running the update wizard, I get this error about 1/3 of the way through:

An error occurred while trying to replace the existing file:
DeleteFile failed; code 5.
Access is denied.


I don't have a license for the software yet, but I doubt that has anything to do with this. Any thoughts? Thanks!
kgrote
 
Posts: 2
Joined: Tue Aug 07, 2012 5:11 pm

Re: Error When Updating: "DeleteFile failed; code 5"

Postby jcblais on Tue Aug 07, 2012 8:23 pm

I encountered the same problem and got the same message when I tried to update to 2.0.1.

I tried to delete the original version I had installed a few weeks earlier and could not do it.
I kept getting the following message.

"Error trying to parse settings: unexpected trailing characters in
C:\users\JohnC\appdata\roaming\sublimetext2\packages\user\preferences.sublime-sttings:5:1"

So now can't open it and can't update it.????
jcblais
 
Posts: 1
Joined: Tue Aug 07, 2012 8:12 pm

Re: Error When Updating: "DeleteFile failed; code 5"

Postby inkbiegel on Thu Sep 06, 2012 9:57 am

I have the exact same problem. Has anyone cleared this up yet?
inkbiegel
 
Posts: 4
Joined: Wed Feb 22, 2012 9:15 am

Re: Error When Updating: "DeleteFile failed; code 5"

Postby mwb1100 on Thu Sep 06, 2012 6:57 pm

Maybe try running the setup for 2.0.1 as administrator (right-click and select "Run as administrator").

Error code 5 is "Access denied".
mwb1100
 
Posts: 46
Joined: Mon Jun 25, 2012 5:40 pm

Re: Error When Updating: "DeleteFile failed; code 5"

Postby inkbiegel on Thu Sep 20, 2012 1:41 pm

Oh man i was sure I did this...
Running as administrator did the trick, both in fixing the error and in making me feel like a total noob..
inkbiegel
 
Posts: 4
Joined: Wed Feb 22, 2012 9:15 am

Re: Error When Updating: "DeleteFile failed; code 5"

Postby Caitelatte on Tue Aug 20, 2013 5:34 am

Hi,
I've just run into this issue when updating from 2.0.1 to 2.0.2 and it won't go away when I run as administrator. Any hints?
Thanks, Caitlin.
Caitelatte
 
Posts: 1
Joined: Tue Aug 20, 2013 5:32 am

Re: Error When Updating: "DeleteFile failed; code 5"

Postby warden on Fri Aug 30, 2013 1:54 pm

Caitelatte wrote:Hi,
I've just run into this issue when updating from 2.0.1 to 2.0.2 and it won't go away when I run as administrator. Any hints?
Thanks, Caitlin.

Same problem for me, even when I run the executable as Admin. Kind of annoying because I get the new version download prompt dozens of times a day. I have paid and am licensed.
warden
 
Posts: 1
Joined: Fri Aug 30, 2013 1:53 pm

Re: Error When Updating: "DeleteFile failed; code 5"

Postby sublimejackolantern on Fri Oct 25, 2013 6:02 pm

I had this issue just today. I downloaded subl for Windows 64 bit, and I could not get it to install.

However, in my case, I decided to download from the standard windows links, which I assume is the 32 bit version. It downloaded and installed fine on my system, which is 64 bit. That may work as a fix, especially when running as the install as administrator.
sublimejackolantern
 
Posts: 1
Joined: Fri Oct 25, 2013 5:56 pm

Re: Error When Updating: "DeleteFile failed; code 5"

Postby ferdelyszys on Wed May 07, 2014 8:11 am

Hi, in my situation i had already sublime installed so this is what I have done and it worked:
1. I uninstalled sublime.
2. Deleted sublime installation folder from program files ( I had to use Unlocker because explorer was holding sublime .. )
3. Start new Installation of sublime with administrative rights.

Good luck
ferdelyszys
 
Posts: 1
Joined: Wed May 07, 2014 8:08 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot], Yahoo [Bot] and 32 guests