Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to silent install an UWP appx?

I develop an UWP appx, It could be installed in a cmd.exe prompt: C:\test>myapp.appx but a windows GUI pop up during installtion. Is there any method to install it with a Silent parameter like as: C:\test>myapp.appx /silent (or /s) in order to inhibit the GUI from pop up ? Thanks!

like image 910
Yong-Long Liu Avatar asked Mar 30 '18 02:03

Yong-Long Liu


1 Answers

Microsoft provides PowerShell cmdlets for controlling AppX and MSIX packages. The command you need is Add-AppxPackage.

[EDIT] Here is an updated list with all the PS commandlets useful for managing MSIX/APPX packages.

PS C:\> Add-AppxPackage -Path C:\Users\user1\Desktop\MyApp.appx
like image 125
Bogdan Mitrache Avatar answered Oct 06 '22 01:10

Bogdan Mitrache