Install Msixbundle Powershell Verified File

catch Write-Host "Installation failed: $_" -ForegroundColor Red

if ($Force) $params.ForceApplicationShutdown = $true install msixbundle powershell

Add-AppxPackage @params Write-Host "Installed for current user." -ForegroundColor Green install msixbundle powershell

Add-AppxPackage -Path "app.msixbundle" -ErrorAction SilentlyContinue # Install-MSIXBundle.ps1 param( [Parameter(Mandatory=$true)] [string]$BundlePath, [switch]$AllUsers, [switch]$Force ) Elevate if needed for all users if ($AllUsers -and (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))) Start-Process PowerShell -Verb RunAs "-NoProfile -ExecutionPolicy Bypass -File "$PSCommandPath " -BundlePath "$BundlePath " -AllUsers" exit install msixbundle powershell