Windows Inno updater _bak causes os error 183 update loop

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Windows Inno updater stages previous install under %LOCALAPPDATA%\Programs\cursor_bak (~950MB) and often never deletes it. Next update fails with Win32 error 183 (file already exists) after 16 retries on _bak\Cursor.exe. Until _bak is manually deleted, every update fails. Reproduced across many days of logs (Oct 18–23 2026 alone) and earlier for months.

Also: registry DisplayVersion can show 3.27.12 while on-disk Cursor.exe stays 3.26.16. Full UserSetup while Cursor is open fails replacing tools\inno_updater.exe (DeleteFile access denied 5) and aborts.

Steps to Reproduce

  1. Use Windows Cursor user install (%LOCALAPPDATA%\Programs\cursor).
  2. Let auto-update run so _bak is created.
  3. Leave _bak in place (updater often does).
  4. Trigger another update → %TEMP%\cursor-inno-updater-*.log ends with os error 183.
  5. Repeat without deleting _bak → infinite failure loop.

Expected Behavior

  1. Delete or rotate existing _bak before staging a new backup.
  2. Delete _bak after successful promotion.
  3. Treat error 183 on _bak as recoverable (remove stale bak + retry), not fatal.
  4. Keep registry DisplayVersion = product.json = Cursor.exe ProductVersion.
  5. Do not leave ~1GB orphaned _bak that breaks the next update.

Operating System

Windows 10/11

Version Information

On-disk Cursor.exe / product.json: 3.26.16
Registry Uninstall DisplayVersion: 3.27.12 (desynced)
Update feed offered: 3.27.12
Inno Updater v0.16.0
Install: user-setup under %LOCALAPPDATA%\Programs\cursor

For AI issues: which model did you use?

N/A — installer/updater bug, not an AI model issue

For AI issues: add Request ID with privacy disabled

N/A

Additional Information

Actual log pattern:
INFO Reading directory: “…\cursor_bak”
INFO Get file handle: “…\cursor_bak\Cursor.exe” (attempt 1..16)
ERRO … (os error 183)

Workaround: quit Cursor, delete _bak (~950MB), then update. This should not be required.
Please fix _bak lifecycle in inno_updater. Happy to attach full cursor-inno-updater-*.log set + Setup Log tails.
Tag suggestion: installation

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @Zoltan_Geczi,

You’ve read it correctly: when an earlier update leaves the _bak backup folder inside the install folder, the next update can’t make its own backup there. It stops with os error 183 and keeps the old version on disk. That is most likely also why Windows lists 3.27.12 while Cursor itself is still 3.26.16: the installer records the new version before the final file swap, and the swap is the step that failed. This is a known issue the team is already tracking, and I’ve added your report to it.

In the meantime, clearing the leftover folder is still the way out, but you can avoid fighting a locked folder:

  1. Quit Cursor completely, then open Task Manager and end any remaining Cursor, inno_updater or Node.js JavaScript Runtime processes.
  2. In %LOCALAPPDATA%\Programs\cursor, rename _bak (for example to _bak_old). Renaming usually works even when deleting is blocked.
  3. Start Cursor and run the update again.
  4. Delete the renamed folder afterwards, or after a reboot if it is still locked.

For the full installer failing on tools\inno_updater.exe: most likely an updater process is still running from the install folder and holding that file. Running the installer only after step 1, with nothing Cursor-related left in Task Manager, should get it past that file.

If an update still fails after that, please attach the newest cursor-inno-updater-*.log from %TEMP% and say whether inno_updater.exe was still listed in Task Manager when it failed.