Commands for installing ValTrainer without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Valtrainer.ValTrainer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Valtrainer.ValTrainer -e --silentwinget uninstall --id Valtrainer.ValTrainer -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
ValTrainer-1.22.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
ValTrainer-1.22.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\valtrainer"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8BC1A72E-9D6C-4649-AE20-032F14D7A1F5}_is1
- Install folder
- %LocalAppData%\Programs\ValTrainer
- DisplayVersion
- 1.22.0
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
ValTrainer-1.22.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
ValTrainer-1.22.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\valtrainer"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8BC1A72E-9D6C-4649-AE20-032F14D7A1F5}_is1
- Install folder
- %ProgramFiles%\ValTrainer
- DisplayVersion
- 1.22.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-valtrainer.ps1
$url = 'https://github.com/idoraz1/ValTrainer/releases/download/v1.22.0/ValTrainer-1.22.0-Setup.exe'
$sha256 = 'A6A696162DE5D7517EBDBA8B0BF2F5D7652E742C262EAB5CA01A3CA4D61AF0D2'
$file = Join-Path $env:TEMP 'ValTrainer-1.22.0-Setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-valtrainer.ps1
$url = 'https://github.com/idoraz1/ValTrainer/releases/download/v1.22.0/ValTrainer-1.22.0-Setup.exe'
$sha256 = 'A6A696162DE5D7517EBDBA8B0BF2F5D7652E742C262EAB5CA01A3CA4D61AF0D2'
$file = Join-Path $env:TEMP 'ValTrainer-1.22.0-Setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait