有没有办法从Windows 10中的PowerShell启动已安装的应用程序? [英] Is there a way to start an installed app from powershell in Windows 10?

查看:246
本文介绍了有没有办法从Windows 10中的PowerShell启动已安装的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我还没有找到从Windows 10的PowerShell启动UWP应用程序的方法。有办法吗? 


作为背景我已经创建了应用程序(.appx)并将其加载到系统中。应用程序从开始菜单启动很好,但现在我需要从powershell启动它。



有人可以帮助我吗?

解决方案

您应该能够使用协议激活,如下例所示:

 explorer。 exe yourapp:// 

您可以在appx的应用清单中定义此应用的"地址"。



希望这会有所帮助。



Jesse


Currently I haven't found a way to start an UWP application from powershell of Windows 10. Is there a way to do it? 

As a background I've created application (.appx) and sideloaded it into system. Application launches fine from start menu, but now I need to start it also from powershell.

Could someone help me?

解决方案

You should be able to use protocol activation like the below example:

explorer.exe yourapp://

You can define the 'address' of this app in the app manifest of the appx you made.

Hope this helps.

Jesse


这篇关于有没有办法从Windows 10中的PowerShell启动已安装的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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