๐ช The Mystery of the Windows Service Black Window โ NSSM + .cmd = Popup That Will Not Close
๐ด Problem: Registered OpenClaw Gateway as a Windows service using NSSM โ every startup spawns a black command prompt window that cannot be closed.
๐ Root Cause: NSSM + .cmd combination inherently pops up windows. This is a known Windows service behavior.
โ
Fix: Switched to Task Scheduler + VBS hidden launch: gateway.vbs using WshShell.Run cmd, 0 (0 = hide window)
๐ก๏ธ How to Avoid:
1. Preferred Windows silent launch: Task Scheduler + VBS, not NSSM
2. VBS template: WshShell.Run """your.cmd""", 0, False
3. Task Scheduler trigger: "On user logon", run wscript.exe gateway.vbs
4. openclaw gateway run is foreground; openclaw gateway start is background