[resolved] Installation of "msix" package

Antworten
bourhis
Beiträge: 144
Registriert: 07 Nov 2012, 15:57

[resolved] Installation of "msix" package

Beitrag von bourhis »

Hi,

how do I silently install an "msix" package using "Opsi" ?
I tried this in a "Dosbatch" or "Winbatch" section :

Code: Alles auswählen

Add-AppxProvisionedPackage -Online -SkipLicense -PackagePath "C:\tmp\mypackage.msix"
but it doesn't works because "Add-AppxProvisionedPackage" is not a recognized command (only with "PowerShell")...

Best regards
Zuletzt geändert von bourhis am 03 Sep 2026, 11:38, insgesamt 1-mal geändert.
bourhis
Beiträge: 144
Registriert: 07 Nov 2012, 15:57

Re: Installation of "msix" package

Beitrag von bourhis »

I find a solution by creating a PowerShell script containing :

Code: Alles auswählen

Add-AppxProvisionedPackage -Online -SkipLicense -PackagePath "\\myserver\myshare\myfile.msix"
and, in a Dosbatch section :

Code: Alles auswählen

PowerShell.exe -ExecutionPolicy Unrestricted -command "%ScriptPath%\myscript.ps1"
bourhis
Beiträge: 144
Registriert: 07 Nov 2012, 15:57

Re: [resolved] Installation of "msix" package

Beitrag von bourhis »

In this case (one line PowerShell script) you can execute it directly in the "Dosbatch" section :

Code: Alles auswählen

PowerShell.exe -ExecutionPolicy Unrestricted -command "Add-AppxProvisionedPackage -Online -SkipLicense -PackagePath '\\myserver\myshare\myfile.msix'"
Antworten