1. 命令行格式
explorer.exe shell:AppsFolder{PackageFamilyName}\!{PackageId}
以uwp版的windbg为例
2. 获取PackageFamilyName
在powershell中运行命令
get-appxpackage | select PackageFamilyName,InstallLocation
输出结果
PackageFamilyName InstallLocation
----------------- ---------------
Microsoft.NET.Native.Framework.1.3_8wekyb3d8bbwe C:\Program Files\WindowsApps\Microsoft.NET.Native.Framework.1.3_1.3.24201.0_x64__8wekyb3...
Microsoft.NET.Native.Framework.1.6_8wekyb3d8bbwe C:\Program Files\WindowsApps\Microsoft.NET.Native.Framework.1.6_1.6.24903.0_x64__8wekyb3...
Microsoft.WinDbg_8wekyb3d8bbwe C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2103.1004.0_neutral__8wekyb3d8bbwe
得到windbg的PackageFamilyName
Microsoft.WinDbg_8wekyb3d8bbwe
3. 获取PackageId
打开appxmanifest.xml文件
notepad "C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2103.1004.0_neutral__8wekyb3d8bbwe\appxmanifest.xml"
得到PackageId
Microsoft.WinDbg
4. 通过命令行打开windbg
explorer.exe shell:AppsFolder\Microsoft.WinDbg_8wekyb3d8bbwe!Microsoft.WinDbg