Cursor Crash - requires re-installation

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Windows keeps deleting cursor and its execution file which requires a re-installation of the program. There is an error that pops up when closing cursor that it can’t read it’s db file then cursor has to be re-installed.

Steps to Reproduce

Random. Click Exit from Cursor and unable to read local file message pops up. When attempting to re-launch cursor the application can not longer be found. Now when trying to re-install cursor I get a windows protection error.

Expected Behavior

Application closes and re-launches

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Cursor version 3.7.21

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known Windows auto-updater bug. When you exit, it starts removing the old version, but the new install doesn’t finish in time. This often happens because Windows Defender or another antivirus is holding files, or the system shuts down too quickly, and Cursor ends up fully removed. The “can’t read db file” error is a side effect of the same process.

How to recover right now:

  1. Download the latest installer from Cursor · Download
  2. If you see a Windows SmartScreen or protection warning, click More info, then Run anyway. This is expected and safe for the official build from cursor.com.
  3. If reinstall fails again or the app folder disappears, add the Cursor install folder to Windows Defender exclusions: Windows Security > Virus & threat protection > Manage settings > Exclusions. It’s usually C:\Users\<your_user>\AppData\Local\Programs\cursor.

This reduces the chance Defender deletes files during the next update.

We’re tracking this bug, but I can’t share an exact fix timeline yet. I’ll follow up when there’s an update. Let me know if reinstalling worked.

Re-installing worked and I added the cursor folder to the defenders exclusion list. Thanks for the quick feedback.