How to silent install an UWP appx?

2019-04-29 11:05发布

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!

1条回答
可以哭但决不认输i
2楼-- · 2019-04-29 11:50

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

PS C:\> Add-AppxPackage -Path C:\Users\user1\Desktop\MyApp.appx
查看更多
登录 后发表回答