[Windows] Installer & Auto-Updater Hardcode Default C:\AppData Path When Installed to Custom Directory

Summary

When Antigravity IDE is installed to a custom directory on Windows (e.g., D:\Program Files\Antigravity IDE), both the in-app auto-updater (vscode-inno-updater) and the standalone .exe installer’s post-install launch step still look for the executable in the hardcoded default path (C:\Users\<username>\AppData\Local\Programs\Antigravity IDE\Antigravity IDE.exe), causing updates and post-install launches to fail.

Environment

  • OS: Windows 11
  • App Version: latest
  • Custom Install Path: D:\Program Files\Antigravity IDE

Steps to Reproduce

  1. Run the official Windows .exe installer and choose a custom installation directory (e.g., D:\Program Files\Antigravity IDE).
  2. Ensure no leftover files exist under C:\Users\<username>\AppData\Local\Programs\Antigravity IDE (also cleaned up old C: drive entries from PATH and the HKCU\...\Uninstall\{...}_is1 registry key).
  3. Trigger either of the following:
    • Case A (Auto-Update): Inside Antigravity IDE, click Restart to Update.
    • Case B (Fresh / Overwrite Install): Complete the .exe installer wizard to D:\Program Files\Antigravity IDE with the launch option enabled.

Actual Behavior

  • Case A (Auto-Update): Fails with a dialog: “Failed to install Visual Studio Code update. Updates may fail due to anti-virus software and/or runaway processes.”
  • Case B (Installer Finish): Fails with:

    Unable to execute file: C:\Users\<username>\AppData\Local\Programs\Antigravity IDE\Antigravity IDE.exe
    CreateProcess failed; code 2. The system cannot find the file specified.

Relevant Updater Log (vscode-inno-updater-*.log)

Nov 24 03:44:50.160 INFO Starting: C:\Users\<username>\AppData\Local\Programs\Antigravity IDE\Antigravity IDE.exe, false, 正在更新 Antigravity...
Nov 24 03:44:50.160 ERRO Bad arguments: Code path doesn't seem to exist: C:\Users\<username>\AppData\Local\Programs\Antigravity IDE\Antigravity IDE.exe