Commands for installing Screenbox 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 Starpine.Screenbox -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Starpine.Screenbox -e --silentwinget uninstall --id Starpine.Screenbox -e --silentBy installer
Any CPU · MSIX · Current user
Silent install
Add-AppxPackage -Path Screenbox_0.24.0.0_neutral.msixbundleUninstall
Get-AppxPackage -Name 18496Starpine.Screenbox | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-screenbox.ps1
$url = 'https://github.com/huynhsontung/Screenbox/releases/download/v0.24.0/Screenbox_0.24.0.0_neutral.msixbundle'
$sha256 = '6D6F03595120D6EE1042E8E7550EE2ADFA3C3C6B51BECBCBF454DB08AEE0D5CF'
$file = Join-Path $env:TEMP 'Screenbox_0.24.0.0_neutral.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file