Antigravity IDE windows updater ignores custom installation directories and causes crash

When Antigravity IDE is installed in a custom directory (e.g., A:\_bin\AntigravityIDE), subsequent background updates ignore the custom path. The silent installer defaults to %LOCALAPPDATA%\Programs\Antigravity IDE\, fails to complete the update, and corrupts the uninstall registry entries.

Steps to Reproduce

  1. Perform a manual installation of Antigravity IDE to a custom folder path (e.g., A:\_bin\AntigravityIDE).
  2. Allow a silent auto-update to trigger in the background.

Actual Result

  1. The background updater launches silently without specifying the custom directory (no /dir parameter).
  2. It defaults to %LOCALAPPDATA%\Programs\Antigravity IDE, creating files in a temporary subdirectory (...\Antigravity IDE\_).
  3. inno_updater.exe is launched to finalize the installation but aborts with:
    ERRO Bad arguments: Code path doesn't seem to exist: C:\Users\<User>\AppData\Local\Programs\Antigravity IDE\Antigravity IDE.exe
  4. The user receives a dialog error: “Failed to install Visual Studio Code update.”
  5. The registry uninstall key under HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\{AA73B3E3-C6C8-45C8-B1DC-4AE56C7514..}_is1 is overwritten to point to the incorrect default path, breaking future updates and the Windows uninstaller.

Suggested Fix for Developers

  • Update the updater invocation: Ensure the IDE’s auto-update code explicitly passes the running executable’s folder via the /dir parameter when invoking the setup installer (e.g., setup.exe /verysilent /dir="A:\_bin\AntigravityIDE").
  • Verify registry queries: Ensure Inno Setup installer’s UsePreviousAppDir correctly reads the previous path under HKCU even when run in user/silent mode.
4 Likes