@@ -23,10 +23,13 @@ systemctl --user enable --now onevox
2323
2424** Windows:**
2525``` powershell
26+ $onevoxDir = "$env:LOCALAPPDATA\onevox"
2627$asset = "onevox-windows-x86_64.zip"
2728Invoke-WebRequest -Uri "https://github.com/kssgarcia/onevox/releases/latest/download/$asset" -OutFile $asset
28- Expand-Archive -Path $asset -DestinationPath "$env:LOCALAPPDATA\onevox" -Force
29- & "$env:LOCALAPPDATA\onevox\onevox.exe" --version
29+ Expand-Archive -Path $asset -DestinationPath $onevoxDir -Force
30+ [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$onevoxDir", [EnvironmentVariableTarget]::User)
31+ $env:Path += ";$onevoxDir"
32+ & "$onevoxDir\onevox.exe" --version
3033```
3134
3235---
@@ -244,23 +247,24 @@ Download installer from [Releases](https://github.com/kssgarcia/onevox/releases)
244247- Models: ` %LOCALAPPDATA%\onevox\onevox\cache\models\ `
245248- Logs: ` %APPDATA%\onevox\onevox\data\logs\onevox.log `
246249
247- ** Daemon Management (Windows 11 ):**
250+ ** Service Management with SCM (run PowerShell as Administrator ):**
248251``` powershell
249- # Start daemon (foreground )
250- onevox daemon --foreground
252+ # Register service (one-time )
253+ sc.exe create Onevox binPath= "\"$env:LOCALAPPDATA\ onevox\onevox.exe\" daemon --foreground" start= auto
251254
252- # Start daemon in background shell/session
253- onevox daemon
255+ # Start / Stop / Restart
256+ sc.exe start Onevox
257+ sc.exe stop Onevox
258+ sc.exe stop Onevox; sc.exe start Onevox
254259
255- # Stop daemon
256- onevox stop
260+ # Status
261+ sc.exe query Onevox
257262
258- # Check daemon status
259- onevox status
263+ # Remove service
264+ sc.exe delete Onevox
260265```
261266
262- ** Auto-start on login (recommended):** Use Windows Task Scheduler to run
263- ` onevox daemon ` at user logon.
267+ ** Auto-start:** The ` start= auto ` flag above configures startup with SCM.
264268
265269** View Logs:**
266270``` powershell
0 commit comments