Add windows install scripts

This commit is contained in:
2026-01-06 21:32:52 +01:00
parent 8ae35c974c
commit 4282fed13c
8 changed files with 298 additions and 178 deletions

View File

@@ -87,42 +87,46 @@ Keep token/config on uninstall:
Notes:
- Installs to `/opt/luxtools-client/luxtools-client`
- Creates `/etc/systemd/system/luxtools-client.service`
- Stores config (including the generated token) in `/etc/luxtools-client/luxtools-client.env`
- Installs to `~/.local/share/luxtools-client/luxtools-client`
- Creates a systemd *user* unit at `~/.config/systemd/user/luxtools-client.service`
- Stores config (including the token) in `~/.config/luxtools-client/luxtools-client.env`
### Windows (Service)
### Windows (Scheduled Task at logon)
Run from an elevated (Administrator) Command Prompt.
Because this tool needs to open File Explorer (a GUI app) in the *current user session*, it should run as a per-user Scheduled Task triggered “At log on” (similar to a systemd *user* service).
Install / update:
```bat
install-windows.bat
install-windows-task.bat
```
Optional flags:
```bat
install-windows.bat --listen 127.0.0.1:9000
install-windows-task.bat --listen 127.0.0.1:9000
REM Restrict allowed folders (repeatable)
install-windows-task.bat --allow "%USERPROFILE%" --allow "D:\Data"
```
Uninstall:
```bat
uninstall-windows.bat
uninstall-windows-task.bat
```
Keep token/config on uninstall:
```bat
uninstall-windows.bat --keep-config
uninstall-windows-task.bat --keep-config
```
Notes:
- Installs to `%ProgramFiles%\LuxtoolsClient\luxtools-client.exe`
- Stores the generated token in `%ProgramData%\LuxtoolsClient\token.txt`
- Installs to `%LOCALAPPDATA%\luxtools-client\luxtools-client.exe`
- Stores config (including the token) in `%LOCALAPPDATA%\luxtools-client\config.json`
- Re-running the install script updates the EXE in place and restarts the task.
## API