agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

Bug: Windows installer creates broken Start menu shortcut (wrong exe name + missing icon) — app silently fails to launch

Open OrcInc opened this issue 5 months ago • 2 comments

Bug: Windows installer creates broken Start menu shortcut — silent launch failure

Summary

The Windows installer (Agent.Orchestrator.Setup.0.10.2.exe) creates a Start menu shortcut pointing to Agent Orchestrator.exe (with spaces), but the actual installed binary is agent-orchestrator.exe (lowercase, hyphenated). This causes silent launch failure — clicking the Start menu icon does nothing, no error, no window.

Additionally, the shortcut has no IconLocation set, so the Start menu shows a generic Windows document icon instead of the AO robot icon (even though the exe has the icon embedded correctly).

Environment

  • OS: Windows 11
  • AO Version: v0.10.2
  • Installer: Agent.Orchestrator.Setup.0.10.2.exe

Reproduction Steps

  1. Download and run Agent.Orchestrator.Setup.0.10.2.exe on Windows
  2. Complete installation
  3. Click "Agent Orchestrator" from the Start menu
  4. Nothing happens — no window, no error, no process

Root Cause

1. Filename mismatch in shortcut:

  • Shortcut TargetPath: ...\Agent Orchestrator\Agent Orchestrator.exe ❌ (does not exist)
  • Actual binary: ...\Agent Orchestrator\agent-orchestrator.exe ✅

2. Missing icon:

  • Shortcut IconLocation is empty
  • The actual agent-orchestrator.exe has the icon embedded correctly

Evidence

Confirmed by user Deepak Modi on Discord:

PS> $resolved = (New-Object -ComObject WScript.Shell).CreateShortcut("...\Agent Orchestrator.lnk").TargetPath
C:\Users\deepa\AppData\Local\Programs\Agent Orchestrator\Agent Orchestrator.exe

PS> & "...\Agent Orchestrator.exe"
# Error: not recognized

PS> Get-ChildItem "$env:LOCALAPPDATA\Programs\Agent Orchestrator"
# Shows: agent-orchestrator.exe (not "Agent Orchestrator.exe")

Workaround (for affected users)

$ws = New-Object -ComObject WScript.Shell
$lnk = $ws.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Agent Orchestrator.lnk")
$lnk.TargetPath = "$env:LOCALAPPDATA\Programs\Agent Orchestrator\agent-orchestrator.exe"
$lnk.IconLocation = "$env:LOCALAPPDATA\Programs\Agent Orchestrator\agent-orchestrator.exe,0"
$lnk.Save()

taskkill /f /im explorer.exe
Remove-Item "$env:LOCALAPPDATA\IconCache.db" -Force -ErrorAction SilentlyContinue
Remove-Item "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\iconcache*" -Force -ErrorAction SilentlyContinue
Start-Process explorer.exe

Suggested Fix

The Electron Forge / electron-builder config should ensure:

  1. The shortcut TargetPath matches the actual binary name (agent-orchestrator.exe, not Agent Orchestrator.exe)
  2. The shortcut IconLocation is explicitly set

Affects every Windows user on a fresh install of v0.10.2.

Reported by: Deepak Modi (@deepakmodidev)

OrcInc avatar Jul 04 '26 10:07 OrcInc

Hey maintainers 👋 — I'd like to pick this up and fix it. Can someone assign this issue to me (@deepakmodidev)? I have a Windows machine to test the installer fix.

cc @harshitsinghbhandari

OrcInc avatar Jul 04 '26 10:07 OrcInc

@deepakmodidev is working on this

codebanditssss avatar Jul 06 '26 16:07 codebanditssss