Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Veyon Community Forum

  1. Home
  2. Success stories & community contributions
  3. Veyon Auto-Update for Windows (WinGet, runs at startup)

Veyon Auto-Update for Windows (WinGet, runs at startup)

Scheduled Pinned Locked Moved Success stories & community contributions
1 Posts 1 Posters 32 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RailsimulatornetR Offline
    RailsimulatornetR Offline
    Railsimulatornet
    wrote last edited by
    #1

    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)

    1. Download the ZIP from the GitHub Releases section.
    2. Unzip it and run Install-Veyon-AutoUpdate.cmd as Administrator.
    3. This copies the files to C:\ProgramData\Veyon\Update\ and creates a scheduled task that runs at system startup (with a short delay).
    4. 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).

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Powered by NodeBB | Contributors
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups