top of page

Cursor update fails on Windows and says "Access is denied (os error 5)": every cause and fix

7 hours ago
8 min read
Cursor update fails on Windows with Access is denied (os error 5): causes and fixes. Data Studios original cover

Last verified: December 4, 2026


When Cursor tries to install an update on Windows, it sometimes stops with a dialog saying it could not move or delete a folder called "resources", followed by "Access is denied. (os error 5)" and a request to make sure no Cursor processes are still running. The message points at Cursor itself, but in most reported cases Cursor is already closed. Another program is holding a file inside the Cursor install folder open, so close that program and click Retry, or reinstall from the official download page if the app no longer starts. Your settings, extensions and chats are stored outside the install folder, so a reinstall does not erase them.


The problem affects the standard Windows installers of Cursor (the per-user and system-wide setups) on Windows 10 and Windows 11, and it has been reported on the Cursor forum since at least July 2026, from version 3.11 through the 3.2x releases of October. Cursor staff have acknowledged it repeatedly as a known bug in the Windows updater and changed the updater in September so that a failed update rolls back to the previous version instead of leaving a broken install. The lock itself still has to be released by hand, and as of the latest staff replies Cursor has not announced a complete fix.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣

THE CURSOR UPDATER MESSAGES AND WHERE THEY APPEAR.


The dialog appears after you click "Restart to Update" or when Cursor installs an update in the background at launch. Windows uses "os error 5" for a refused file operation, which here means the updater asked Windows to move or delete part of the old installation and Windows said no because something else had the file open. The updater retries the operation several times (logs posted on the forum show 11 attempts) before giving up. Depending on the version and on how far the update got, readers see one of the following texts.


........


Message on screen

When it appears

What it means

There was an error while Moving: "resources". Access is denied. (os error 5)

During the update, recent versions

The updater could not move the old install aside; it rolls back

There was an error while Deleting a directory: ...\cursor_bak\resources. Access is denied. (os error 5)

After an update that otherwise finished

The new version installed, but the old backup folder is locked

Failed to install Cursor update. Updates may fail due to anti-virus software and/or runaway processes

Older versions, before the September rework

The update stopped halfway

CreateProcess failed; code 2. The system cannot find the file specified

When launching Cursor after a failed update

The install folder is incomplete and Cursor.exe is missing


........


Every variant ends with the line "Please verify there are no Cursor processes still executing." Forum reports show that the line is often misleading: the process holding the folder is frequently a different application, or a helper started by Cursor that keeps running after Cursor closes.


··········


WHY CURSOR CANNOT REPLACE ITS OWN FILES ON WINDOWS.


The Windows updater works by moving the current installation into a backup folder, putting the new files in place and then deleting the backup. Cursor staff explained on the forum that if any process has a file handle open inside the install folder, Windows refuses the move or the delete. The folder most often reported as locked is resources\app\bin, which holds the command-line launcher that Cursor adds to the Windows PATH, and resources\app\resources\helpers, which holds the copy of node.exe that Cursor ships with.


........


Cause

How to check

Fix

Leftover node.exe started by an MCP server in Cursor (confirmed by Cursor staff)

Task Manager, Details tab: node.exe running from the Cursor install folder after Cursor is closed

End those node.exe processes, then retry the update

VS Code is open and holds the Cursor bin folder (confirmed by a user with Process Explorer and accepted by staff)

Code.exe appears in the handle search for "cursor"

Close VS Code completely, including its terminals, then retry

Another app holds the folder, such as the Google app for Windows (reported by one user with LockHunter)

Resource Monitor handle search for "cursor" shows a non-Cursor process

Quit that app and click Retry

Cursor, node.exe or rg.exe still running in the background or in the tray (staff)

Task Manager shows Cursor.exe, node.exe or rg.exe after you closed the window

Quit from the tray icon or end the processes, or restart Windows

Antivirus or endpoint security scanning the new files (staff suggestion)

The lock disappears when protection is paused, or your IT team sees the folder in scan logs

Ask for an exclusion for the Cursor install folder

Restart or shutdown while an update was being applied (staff)

Cursor will not start and shows CreateProcess failed; code 2

Reinstall from cursor.com/download


........


The first two causes are the best documented. In a thread opened on July 31, a Cursor support engineer wrote that the problem "isn't caused by anything in your setup" and traced it to an MCP server process running on the bundled node.exe that Cursor does not stop when it exits. A later report from October showed the same pattern with a MongoDB MCP server launched through npx. The VS Code case was confirmed in September, when a user found Code.exe holding a handle on the Cursor bin folder; staff suggested that the VS Code integrated terminal, which loads the PATH entry for the Cursor launcher, was the most likely way it ended up there.


··········


HOW TO FIX THE CURSOR "ACCESS IS DENIED" UPDATE ERROR STEP BY STEP.


Work through these steps in order and stop as soon as the update goes through. Steps 1 to 4 keep your current installation; steps 5 and 6 replace it.


1. Leave the error dialog open. In the thread about the Google app, both the reporter and Cursor staff found that quitting the locking program and then clicking Retry, instead of Cancel, let the same update finish.


2. Close VS Code completely, including any integrated terminal windows, and close other editors or tools that may have the Cursor launcher on their PATH. Then click Retry.


3. Open Task Manager, switch to the Details tab and end any Cursor.exe, node.exe or rg.exe processes that are still running after you closed Cursor. Check the tray area of the taskbar as well, because Cursor can keep running there after its window is closed.


4. If you cannot tell which program holds the folder, open Resource Monitor (type resmon in the Start menu), go to the CPU tab and type "cursor" into the Associated Handles search box. Any process listed there that is not part of Cursor is the one to close. Cursor staff asked users for exactly this check when diagnosing the bug.


5. If the updater keeps failing, restart Windows before launching anything else and run the update again. A restart clears orphaned helper processes that survived the last session.


6. If Cursor no longer starts, download the latest installer from cursor.com/download and run it. Cursor staff said repeatedly on the forum that settings and extensions are kept, because they live in %APPDATA%\Cursor and in the .cursor folder of your user profile, not in the program folder. The installer also asks you to close conflicting processes, which the in-app updater does not do.


Users who saw the "Deleting a directory: ...\cursor_bak\resources" variant usually still had a working, updated Cursor. One user reported that renaming the leftover cursor_bak folder and clicking Cancel cleared the dialog, and a staff member said this was acceptable. The leftover backup can be removed later, once nothing holds it open.


··········


[[ADPLUS_300x250_1]]

WHERE CURSOR KEEPS ITS INSTALL, BACKUP AND LOG FILES ON WINDOWS.


Knowing where the files are makes the error easier to read. The paths below are the default per-user locations that appear in Cursor's own error dialogs and in the logs users shared with staff; a custom install folder (for example on drive D) replaces the first line.


........


Item

Default location

Notes

Cursor program files

%LOCALAPPDATA%\Programs\cursor

Replaced on every update

Backup made during an update

%LOCALAPPDATA%\Programs\cursor_bak, or a _bak folder next to the install

Deleted at the end of a successful update

Settings and extensions

%APPDATA%\Cursor and %USERPROFILE%\.cursor

Kept when you reinstall

Updater log

%TEMP%\cursor-inno-updater-<number>.log

Shows each retry and the final os error 5

Setup log

%TEMP%\Setup Log *.txt

Useful if the reinstall fails

Leftover installer

%TEMP%\CodeSetup-stable-<version>.exe

Staff said it can be deleted by hand


........


If you report the problem to Cursor, attach the updater log and the Setup Log, give your Cursor version from Help > About, and name your antivirus or endpoint product. Those are the items Cursor staff asked for when diagnosing this bug.


··········


STOPPING AUTOMATIC CURSOR UPDATES UNTIL THE LOCK IS FIXED.


If your machine runs MCP servers all day or you keep VS Code open alongside Cursor, the same failure can come back with every release. Cursor staff suggested switching off automatic updates and installing new versions with the downloaded installer, which handles open processes better. The setting names below are the ones quoted by Cursor staff and users on the forum; the snippet is illustrative and goes in Cursor's user settings.json.


{
  "update.mode": "none",
  "update.enableWindowsBackgroundUpdates": false
}

With "none", Cursor stops checking for updates, so you need to install new versions yourself from cursor.com/download. One user in the August thread used "manual" instead, together with switching off background updates, and Cursor staff told that user to keep those settings while updating by hand. Either way, quit Cursor from the tray icon before running the installer.


On corporate machines, an antivirus or endpoint detection product can hold the newly written files long enough for the updater to give up. Cursor staff suggested an exclusion for the install folder, usually %LOCALAPPDATA%\Programs\cursor, but no reporter confirmed that this alone fixed the problem, so treat it as a request for your IT team rather than a guaranteed fix.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁤

WHAT CURSOR HAS CONFIRMED AND WHAT USERS HAVE ONLY REPORTED.


Cursor staff confirmed four things across at least six forum threads between July and October 2026: the error comes from the Windows updater and is a bug on Cursor's side; a process holding the install folder open triggers it; leftover MCP node.exe processes are one confirmed source; and the updater was reworked in September with a journal, a backup and a rollback, so that a failed update now restores the previous version. In mid-October staff added that recent versions also clean up more of Cursor's own background processes before updating, while any other program holding the folder still has to be closed for the update to finish.


The VS Code case rests on one user's Process Explorer capture, which staff accepted as a confirmed data point. The Google app for Windows case rests on one user's LockHunter output. The rename-and-cancel trick for the cursor_bak variant was confirmed by a single user, and the "manual" update mode comes from one user's report. A separate failure reported at the end of October, where the updater logged "Could not write update journal" and left Cursor in a half-moved state, was passed to the Cursor team without a published cause. A user asked for a status update on November 23 and had no reply at the time of writing, so readers should assume the bug is still open in current builds.



··········


CURSOR OS ERROR 5 ON WINDOWS: THE PRACTICAL ANSWER.


The "Access is denied (os error 5)" dialog means the Cursor updater found part of its own install folder in use by another process, and on current versions it leaves the previous working version in place when that happens. The quickest recovery is to keep the dialog open, close VS Code and any stray node.exe or rg.exe processes, and click Retry; Resource Monitor's handle search identifies the program when it is not obvious. A Cursor that no longer launches is repaired with the official installer without losing settings or extensions. People who run MCP servers or keep VS Code open all day avoid the repeat failures by turning off automatic updates and installing each release with the downloaded installer until Cursor ships an updater that releases those locks on its own.


··········


FOLLOW US FOR MORE.


·····


DATA STUDIOS


·····


datastudios.org


bottom of page