How to silent install an UWP appx?

这一生的挚爱 提交于 2019-12-10 05:23:50

问题


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:


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


来源:https://stackoverflow.com/questions/49567498/how-to-silent-install-an-uwp-appx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!