如何静默安装UWP appx? [英] How to silent install an UWP appx?

查看:238
本文介绍了如何静默安装UWP appx?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个UWP appx,可以将其安装在cmd.exe提示符下: C:\ test> myapp.appx 但是在安装过程中会弹出一个Windows GUI. 有什么办法吗 使用如下的Silent参数安装它: C:\ test> myapp.appx/silent(或/s) 为了禁止GUI弹出? 谢谢!

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!

推荐答案

Microsoft提供了用于控制AppX和MSIX程序包的powershell cmdlet.您需要的命令是 Add-AppxPackage .

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

这篇关于如何静默安装UWP appx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆