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
- Perform a manual installation of Antigravity IDE to a custom folder path (e.g.,
A:\_bin\AntigravityIDE). - Allow a silent auto-update to trigger in the background.
Actual Result
- The background updater launches silently without specifying the custom directory (no
/dirparameter). - It defaults to
%LOCALAPPDATA%\Programs\Antigravity IDE, creating files in a temporary subdirectory (...\Antigravity IDE\_). inno_updater.exeis 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- The user receives a dialog error: “Failed to install Visual Studio Code update.”
- The registry uninstall key under
HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\{AA73B3E3-C6C8-45C8-B1DC-4AE56C7514..}_is1is 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
/dirparameter when invoking the setup installer (e.g.,setup.exe /verysilent /dir="A:\_bin\AntigravityIDE"). - Verify registry queries: Ensure Inno Setup installer’s
UsePreviousAppDircorrectly reads the previous path underHKCUeven when run in user/silent mode.