2023年12月18日 星期一

Launch Microsoft Store apps from Command Prompt


Open Microsoft Store from Run

explorer.exe ms-windows-store:

Open Microsoft app from Run

explorer.exe shell:appsFolder\<PackageFamilyName>!<App ID>
explorer.exe appInstallLocation\executable file (various location by app version)


find out apps name in shortcut detail properties

e.g.  minecraft launcher is Microsoft.4297127D64EC6_8wekyb3d8bbwe 



find appInstallLocation:

1.using powershell type  get-appxpackage > c:\findout.txt

2.find  app’s PackageFamilyName (Microsoft.4297127D64EC6_8wekyb3d8bbwe)
copy InstallLocation paste to file browser

3. open AppxManifest.xml in InstallLocation


find Application Id & Executable file in AppxManifest.xml



launch minecraft

explorer.exe shell:appsFolder\Microsoft.4297127D64EC6_8wekyb3d8bbwe!Minecraft
or

explorer.exe C:\Program Files\WindowsApps\Microsoft.4297127D64EC6_1.3.7.0_x64__8wekyb3d8bbwe\Minecraft.exe



reference:

https://www.auslogics.com/en/articles/how-to-open-microsoft-store-apps-from-command-prompt/


8wekyb3d8bbwe is Microsoft's PublisherId, which is why all Package Names for apps released by them end in it.

Apps released by other publishers will have other IDs 


for example:

HP has v10z8vjag6ke6

intel has 8j3eq9eme6ctt 

You can see a list of all of your installed packages by running 

Get-AppxPackage * in PowerShell. In the list, you can see that most apps are by Microsoft, and will have Package IDs ending in 8wekyb3d8bbwe. 

You also might be able to find some released by other companies, with other Publisher IDs.

沒有留言:

張貼留言