Skip to main content

I want to deploy the Windows App.  I have downloaded the .msix 

https://apps.microsoft.com/detail/9N1F85V9T8BN?hl=en-us&gl=US&ocid=pdpshare

 

I am copying it to C:\Installs using this command - 

Copy-Item "Windows_App_2.0.704.0_X64_msix_en-US.msix" "C:\Installs\Windows_App_2.0.704.0_X64_msix_en-US.msix" -Force

That works fine but I can’t get it to install using Add-AppPackage with this command - 

Add-AppPackage -Path "C:\Installs\Windows_App_2.0.704.0_X64_msix_en-US.msix"

Does anyone have any idea how I can have Automox install this .msix? 

Thanks!

Hi ​@jtrendel , here this should help it. 

 

Evaluation Code:

exit 1

 

Remediation Code:

#Installer package name
$msixFile = "WindowsApp_x64_Release_2.0.704.0.msix" #Replace package name

# Install app for all users
Write-Host "Installing $msixFile silently for all users..."
dism /Online /Add-ProvisionedAppxPackage /PackagePath:$msixFile /SkipLicense | Out-Null

# Print Output
if ($LASTEXITCODE -eq 0) {
Write-Host "'Windows App' installation succeeded."
exit 0
} else {
Write-Host "'Windows App' installation failed. DISM exit code: $LASTEXITCODE"
exit 1
}

 

Thanks


Thanks!  That was very helpful!