Cookie-Einstellungen (Datenschutzerklärung)
Alle annehmen Ablehnen / Konfigurieren
catch Write-Host "Error: $_" -ForegroundColor Red exit 1
Add-AppxProvisionedPackage -Online -FolderPath "C:\Downloads\MyApp" -SkipLicense Save as install-app.ps1 : msix silent install
✅
param( [string]$PackagePath = ".\MyApp.msix" ) if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) Write-Host "Please run as Administrator for machine-wide install." -ForegroundColor Red exit 1 catch Write-Host "Error: $_" -ForegroundColor Red exit 1