Config Windows 2026-03-07

๐ŸชŸ 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