$ErrorActionPreference = "Stop"
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$packages = @(
  "Microsoft.WindowsAppRuntime.DDLM.1.8.msix",
  "Microsoft.WindowsAppRuntime.Main.1.8.msix",
  "Microsoft.WindowsAppRuntime.Singleton.1.8.msix",
  "Microsoft.WindowsAppRuntime.1.8.msix"
)
foreach ($pkg in $packages) {
  $path = Join-Path $here $pkg
  if (Test-Path $path) {
    Add-AppxPackage -Path $path
  }
}
Write-Host "Windows App Runtime install done."
