Hi everyone,
I’d like to share a small community contribution that might be useful for schools and parents who run Veyon on Windows devices (especially student BYOD devices without local admin rights).
GitHub repository:
h tt ps://github . com/Railsimulatornet/VeyonAutoupdateforWindows
What it does
The script package provides an automatic Veyon update mechanism on Windows using WinGet.
It:
runs at system startup as a scheduled task (SYSTEM account)
checks the online Veyon version via winget
only updates when a newer version is actually available
creates a configuration backup before updating (with rotation of recent backups)
writes a detailed log file under C:\ProgramData\Veyon\Update\
The goal is to keep Veyon up to date on many devices without manual intervention, while preserving the existing configuration.
Key features
Version check instead of blind updates
The script compares the installed Veyon version with the version reported by WinGet and only triggers an update when the online version is newer.
Silent upgrade via WinGet
Uses winget upgrade VeyonSolutions.Veyon with silent and non-interactive switches, so students don’t see any installers popping up.
No unwanted Veyon Master installation
If Veyon Master was not installed before, it will not be installed by the updater. A custom parameter is appended so the existing component selection is respected.
Configuration backup + rotation
Before an actual upgrade, the script exports the configuration (JSON via veyon-cli config export or a registry backup as fallback) and keeps only the last few backups to avoid uncontrolled growth.
Robust logging & log trimming
A central log file records each run including exit codes. When the log reaches a certain size, older entries are trimmed so it doesn’t grow indefinitely.
Idempotent / safe to run repeatedly
If the machine is already on the latest version, nothing is changed (no backup, no reinstall, no UI). If a PC is turned off during an upgrade, the check simply runs again at the next boot and retries if still outdated.
Requirements
Windows 10/11 with App Installer / WinGet available
Veyon 4.x / 4.9.x installed (Master optional)
Installation (short version)
Download the ZIP from the GitHub Releases section.
Unzip it and run Install-Veyon-AutoUpdate.cmd as Administrator.
This copies the files to C:\ProgramData\Veyon\Update\ and creates a scheduled task that runs at system startup (with a short delay).
From the next reboot on, Veyon will be checked and – if needed – updated automatically.
To remove everything again, run Remove-Veyon-AutoUpdate.cmd as Administrator (task + files are cleaned up).