# Rg.exe non-clean state on cursor version updates

**URL:** <https://forum.cursor.com/t/rg-exe-non-clean-state-on-cursor-version-updates/163993>\
**Category:** Bug Reports\
**Tags:** installation, windows\
**Created:** [June 24, 2026, 1:50pm UTC](https://forum.cursor.com/t/rg-exe-non-clean-state-on-cursor-version-updates/163993 "2026-06-24T13:50:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgriede](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/cgriede/32/86119_2.png) [@cgriede](https://forum.cursor.com/u/cgriede)\
**Post date:** [June 24, 2026, 1:50pm UTC](https://forum.cursor.com/t/rg-exe-non-clean-state-on-cursor-version-updates/163993/1 "2026-06-24T13:50:31Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

After every update install I get an issue with the ripgrep / rg.exe process (windows 11)  
Windows x64 User installation

### Steps to Reproduce

Install any cursor update since the last 6 months.

### Expected Behavior

It should just resolve this rg.exe thing giving conflicts for installing updates (maybe not clean uninstall before reinstall I have no clue)

### Screenshots / Screen Recordings

 ![Screenshot 2026-06-24-cursor-update-bug.png](https://us1.discourse-cdn.com/cursor1/original/3X/f/5/f5976be85128f07058d2c97e8ea5d414532c26fb.png)

### Operating System

Windows 10/11

### Version Information

Install: 3.8.23 (also a bug in previous installs, somehow magically resolved after manual folder deletion)

### Additional Information

tried to stop the gr.exe process manually.  
(Access in task manager denied)

taskkill /F /PID 23664  
ERROR: The process with PID 23664 could not be terminated.  
Reason: There is no running instance of the task.

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [June 24, 2026, 7:45pm UTC](https://forum.cursor.com/t/rg-exe-non-clean-state-on-cursor-version-updates/163993/8 "2026-06-24T19:45:36Z")

</div>

Hi @cgriede Thanks for the forum post and sorry for the repeated hassle on updates.

It looks like a leftover `rg.exe` (ripgrep, the search helper Cursor bundles) process from your previous session is still holding a lock on its file inside the install folder. When the updater tries to replace that file, Windows refuses because it’s in use, which produces the `DeleteFile failed; code 5. Access is denied` error. Once `rg.exe` is in this stuck state, Task Manager and `taskkill` can’t end it, which is why you’re seeing the access denied and “no running instance” responses.

The most reliable way through it:

1. Fully close Cursor (File menu \> Exit, not just closing the window).
2. Open Task Manager and confirm there are no `Cursor.exe` or `rg.exe` entries still listed. End any that remain.
3. If `rg.exe` is stuck and won’t close, restart Windows. A reboot clears the locked process without you having to delete anything by hand.
4. After the reboot, run the latest installer from [cursor.com](http://cursor.com) over your existing install. It should now replace the files cleanly.

Your manual folder deletion works for the same underlying reason (it removes the locked file), so a reboot is just a less destructive way to reach the same result.

To lower the chance of it recurring on future updates: before installing an update, fully quit Cursor, give it a few seconds, then check Task Manager to make sure no `rg.exe` is lingering before you let the update run.

I’ve also logged this with our team so we can improve how that process is cleaned up on exit, so updates aren’t blocked like this. We’ll let you know any updates on this front.

---

<div class="post-metadata">

**Author:** ![Ron0x](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ron0x](https://forum.cursor.com/u/Ron0x)\
**Post date:** [August 12, 2026, 6:50am UTC](https://forum.cursor.com/t/rg-exe-non-clean-state-on-cursor-version-updates/163993/10 "2026-08-12T06:50:05Z")

</div>

I actually have this issue now. Can’t kill it in taskmanager and even after a Windows reboot it still is stuck and in use.
