在 PowerShell 中,如果我运行获取AppxPackage,我得到一个列表UWP apps安装了,包括我的。
例如:
Name : TonyHenrique.tonyuwpteste
Publisher : CN=tTony
Architecture : X64
ResourceId :
Version : 1.1.12.0
PackageFullName : TonyHenrique.tonyuwpteste_1.1.12.0_x64__h3h3tmhvy8gfc
InstallLocation : C:\Program Files\WindowsApps\TonyHenrique.tonyuwpteste_1.1.12.0_x64__h3h3tmhvy8gfc
IsFramework : False
PackageFamilyName : TonyHenrique.tonyuwpteste_h3h3tmhvy8gfc
PublisherId : h3h3tmhvy8gfc
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
Dependencies : {Microsoft.NET.CoreRuntime.2.1_2.1.25801.2_x64__8wekyb3d8bbwe, Microsoft.VCLibs.140.00.Debug_14.0.25805.1_x64__8wekyb3d8bbwe,
TonyHenrique.tonyuwpteste_1.1.12.0_neutral_split.scale-100_h3h3tmhvy8gfc}
IsPartiallyStaged : False
SignatureKind : Developer
Status : Ok
现在我想启动这个应用程序。
如何执行此操作电源外壳, or in cmd?
在开发过程中,我遇到过应用程序家族名称偶尔发生变化的情况。您可以通过简单的查找按名称可靠地启动应用程序:
-
Cmd
powershell.exe explorer.exe shell:AppsFolder\$(get-appxpackage -name YourAppName ^| select -expandproperty PackageFamilyName)!App
-
电源外壳
explorer.exe shell:AppsFolder\$(get-appxpackage -name YourAppName | select -expandproperty PackageFamilyName)!App
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)