Commands for installing LabPlot2 (AppX) 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 KDE.LabPlot.AppX -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.LabPlot.AppX -e --silentwinget uninstall --id KDE.LabPlot.AppX -e --silentBy installer
64-bit · MSIX
Silent install
Add-AppxPackage -Path labplot-master-10343-windows-cl-msvc2022-x86_64-sideload.appxUninstall
Get-AppxPackage -Name KDEe.V.LabPlot | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-labplot2-appx.ps1
$url = 'https://origin.cdn.kde.org/ci-builds/education/labplot/master/windows/labplot-master-10343-windows-cl-msvc2022-x86_64-sideload.appx'
$sha256 = '985B2111D622EA657ACB0F3B124628BE562F6A5D9E0FF9A7FA0261F2F60A04F2'
$file = Join-Path $env:TEMP 'labplot-master-10343-windows-cl-msvc2022-x86_64-sideload.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file