This article describes how to launch a store app via command line and Win32 API.
Read here for the Chinese version of this article if you are not good at English. (Translation: 如果你不擅长英文,可以点击本段话中的链接阅读中文版)
Get the available Windows Store app entries First, paste the following command in PowerShell to get the available Windows Store app entries on your machine.
$installedapps = get-AppxPackage foreach ($app in $installedapps ) { foreach ($id in (Get-AppxPackageManifest $app ).package.applications.application.id) { $app .packagefamilyname + "!" + $id } }
Calling these on my Windows 11 machine returned the following available entries for launching the Windows Store app.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 Microsoft.XboxGameOverlay_8 wekyb3 d8 bbwe!App Microsoft.XboxSpeechToTextOverlay_8 wekyb3 d8 bbwe!App Microsoft.Xbox.TCUI_8 wekyb3 d8 bbwe!Microsoft.Xbox.TCUI Microsoft.XboxApp_8 wekyb3 d8 bbwe!Microsoft.XboxApp Microsoft.WindowsSoundRecorder_8 wekyb3 d8 bbwe!App Microsoft.People_8 wekyb3 d8 bbwe!x4c7a3b7dy2188y46d4ya362y19ac5a5805e5x Microsoft.MicrosoftStickyNotes_8 wekyb3 d8 bbwe!App Microsoft.MixedReality.Portal_8 wekyb3 d8 bbwe!App RivetNetworks.KillerControlCenter_rh07 ty8 m5 nkag!RivetNetworks.KillerControlCenter RealtekSemiconductorCorp.RealtekAudioControl_dt26 b99 r8 h8 gj!App Microsoft.MicrosoftOfficeHub_8 wekyb3 d8 bbwe!Microsoft.MicrosoftOfficeHub Microsoft.MicrosoftOfficeHub_8 wekyb3 d8 bbwe!LocalBridge Microsoft.MicrosoftOfficeHub_8 wekyb3 d8 bbwe!OfficeHubHWA AppUp.IntelGraphicsExperience_8 j3 eq 9 eme6 ctt!App AppUp.ThunderboltControlCenter_8 j3 eq 9 eme6 ctt!App Microsoft.XboxIdentityProvider_8 wekyb3 d8 bbwe!Microsoft.XboxIdentityProvider Microsoft.WebMediaExtensions_8 wekyb3 d8 bbwe!App Microsoft.BingWeather_8 wekyb3 d8 bbwe!App Microsoft.GetHelp_8 wekyb3 d8 bbwe!App Microsoft.WebpImageExtension_8 wekyb3 d8 bbwe!App Microsoft.BioEnrollment_cw5 n1 h2 txyewy!App Microsoft.Windows.CloudExperienceHost_cw5 n1 h2 txyewy!App Microsoft.AAD.BrokerPlugin_cw5 n1 h2 txyewy!App Microsoft.Windows.OOBENetworkConnectionFlow_cw5 n1 h2 txyewy!App Microsoft.Windows.OOBENetworkCaptivePortal_cw5 n1 h2 txyewy!App Microsoft.Windows.StartMenuExperienceHost_cw5 n1 h2 txyewy!App Microsoft.Windows.ShellExperienceHost_cw5 n1 h2 txyewy!App windows.immersivecontrolpanel_cw5 n1 h2 txyewy!microsoft.windows.immersivecontrolpanel Microsoft.Windows.Search_cw5 n1 h2 txyewy!CortanaUI Microsoft.Windows.Search_cw5 n1 h2 txyewy!ShellFeedsUI Microsoft.Windows.Search_cw5 n1 h2 txyewy!FESearchUI Microsoft.MicrosoftEdge_8 wekyb3 d8 bbwe!MicrosoftEdge Microsoft.MicrosoftEdge_8 wekyb3 d8 bbwe!PdfReader Microsoft.Windows.ContentDeliveryManager_cw5 n1 h2 txyewy!App Microsoft.SecHealthUI_8 wekyb3 d8 bbwe!SecHealthUI Microsoft.Windows.CallingShellApp_cw5 n1 h2 txyewy!Microsoft.Windows.CallingShellApp Microsoft.Windows.AssignedAccessLockApp_cw5 n1 h2 txyewy!App Microsoft.Windows.CapturePicker_cw5 n1 h2 txyewy!App Microsoft.Windows.Apprep.ChxApp_cw5 n1 h2 txyewy!App Microsoft.Windows.NarratorQuickStart_8 wekyb3 d8 bbwe!App Microsoft.Win32 WebViewHost_cw5 n1 h2 txyewy!DPI.PerMonitorAware Microsoft.Win32 WebViewHost_cw5 n1 h2 txyewy!DPI.SystemAware Microsoft.Win32 WebViewHost_cw5 n1 h2 txyewy!DPI.Unaware Microsoft.Windows.ParentalControls_cw5 n1 h2 txyewy!App 1527 c 705 -839 a-4832 -9118 -54 d4 Bd6 a0 c 89 _cw5 n1 h2 txyewy!Microsoft.Windows.FilePicker Windows.PrintDialog_cw5 n1 h2 txyewy!Microsoft.Windows.PrintDialog Windows.CBSPreview_cw5 n1 h2 txyewy!Microsoft.Windows.CBSPreview NcsiUwpApp_8 wekyb3 d8 bbwe!App Microsoft.XboxGameCallableUI_cw5 n1 h2 txyewy!Microsoft.XboxGameCallableUI Microsoft.Windows.XGpuEjectDialog_cw5 n1 h2 txyewy!Microsoft.Windows.XGpuEjectDialog Microsoft.Windows.SecureAssessmentBrowser_cw5 n1 h2 txyewy!App Microsoft.Windows.PinningConfirmationDialog_cw5 n1 h2 txyewy!App Microsoft.Windows.PeopleExperienceHost_cw5 n1 h2 txyewy!App Microsoft.PPIProjection_cw5 n1 h2 txyewy!Microsoft.PPIProjection Microsoft.MicrosoftEdgeDevToolsClient_8 wekyb3 d8 bbwe!App Microsoft.LockApp_cw5 n1 h2 txyewy!WindowsDefaultLockScreen Microsoft.ECApp_8 wekyb3 d8 bbwe!App Microsoft.CredDialogHost_cw5 n1 h2 txyewy!App Microsoft.AsyncTextService_8 wekyb3 d8 bbwe!App Microsoft.AccountsControl_cw5 n1 h2 txyewy!App F46 D4000 -FD22 -4 DB4 -AC8E-4 E1 DDDE828 FE_cw5 n1 h2 txyewy!App E2 A4 F912 -2574 -4 A75 -9 BB0 -0 D023378592 B_cw5 n1 h2 txyewy!Microsoft.Windows.AppResolverUX c 5e2524 a-ea46 -4 f67 -841 f-6 a9465 d9 d515 _cw5 n1 h2 txyewy!App Microsoft.ZuneVideo_8 wekyb3 d8 bbwe!Microsoft.ZuneVideo Microsoft.ZuneMusic_8 wekyb3 d8 bbwe!Microsoft.ZuneMusic Microsoft.GamingApp_8 wekyb3 d8 bbwe!Microsoft.Xbox.App Microsoft.BingNews_8 wekyb3 d8 bbwe!AppexNews Microsoft.Getstarted_8 wekyb3 d8 bbwe!App Microsoft.DesktopAppInstaller_8 wekyb3 d8 bbwe!App Microsoft.DesktopAppInstaller_8 wekyb3 d8 bbwe!PythonRedirector Microsoft.DesktopAppInstaller_8 wekyb3 d8 bbwe!winget Microsoft.WindowsNotepad_8 wekyb3 d8 bbwe!App Microsoft.WindowsMaps_8 wekyb3 d8 bbwe!App MicrosoftTeams_8 wekyb3 d8 bbwe!MicrosoftTeams MicrosoftTeams_8 wekyb3 d8 bbwe!msteamsupdate Microsoft.Paint_8 wekyb3 d8 bbwe!App Microsoft.549981 C3 F5 F10 _8 wekyb3 d8 bbwe!App Microsoft.LanguageExperiencePackzh-CN_8 wekyb3 d8 bbwe!App 40174 MouriNaruto.NanaZip_gnj4 mf6 z9 tkrc!NanaZipC 40174 MouriNaruto.NanaZip_gnj4 mf6 z9 tkrc!NanaZipG 40174 MouriNaruto.NanaZip_gnj4 mf6 z9 tkrc!NanaZip 9426 MICRO-STARINTERNATION.MSICenter_kzh8 wxbdkxb8 p!App Microsoft.HEIFImageExtension_8 wekyb3 d8 bbwe!App NVIDIACorp.NVIDIAControlPanel_56 jybvy8 sckqj!NVIDIACorp.NVIDIAControlPanel Microsoft.VP9 VideoExtensions_8 wekyb3 d8 bbwe!App MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!PackageMetadata MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.Accounts MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.AppListBackup MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.FileExplorerExtensions MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.HardwareConfirmator MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.SnapLayout MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.SystemTray MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.Taskbar MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!InputApp MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.IrisService MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!ScreenClipping MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!MiniSearchUI MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!CortanaUI MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!FESearchUI MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.StartMenu MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.ValueBanner MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!WebExperienceHost MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.ExperienceExtensions MicrosoftWindows.Client.CBS_cw5 n1 h2 txyewy!Global.WsxPackManager Microsoft.PowerAutomateDesktop_8 wekyb3 d8 bbwe!PAD.Console Microsoft.RemoteDesktop_8 wekyb3 d8 bbwe!App Microsoft.ScreenSketch_8 wekyb3 d8 bbwe!App Microsoft.StorePurchaseApp_8 wekyb3 d8 bbwe!App Microsoft.WindowsTerminal_8 wekyb3 d8 bbwe!App Microsoft.WindowsCamera_8 wekyb3 d8 bbwe!App Microsoft.WindowsAlarms_8 wekyb3 d8 bbwe!App Microsoft.WindowsCalculator_8 wekyb3 d8 bbwe!App Microsoft.MicrosoftSolitaireCollection_8 wekyb3 d8 bbwe!App microsoft.windowscommunicationsapps_8 wekyb3 d8 bbwe!microsoft.windowslive.mail microsoft.windowscommunicationsapps_8 wekyb3 d8 bbwe!microsoft.windowslive.calendar microsoft.windowscommunicationsapps_8 wekyb3 d8 bbwe!microsoft.windowslive.manageaccounts Microsoft.Todos_8 wekyb3 d8 bbwe!App Microsoft.Windows.Photos_8 wekyb3 d8 bbwe!App Microsoft.Windows.Photos_8 wekyb3 d8 bbwe!SecondaryEntry Microsoft.WindowsFeedbackHub_8 wekyb3 d8 bbwe!App Microsoft.WindowsStore_8 wekyb3 d8 bbwe!App MicrosoftWindows.Client.WebExperience_cw5 n1 h2 txyewy!PackageMetadata MicrosoftWindows.Client.WebExperience_cw5 n1 h2 txyewy!App Microsoft.YourPhone_8 wekyb3 d8 bbwe!App Microsoft.MicrosoftEdge.Stable_8 wekyb3 d8 bbwe!App Microsoft.OneDriveSync_8 wekyb3 d8 bbwe!OneDrive Microsoft.XboxGamingOverlay_8 wekyb3 d8 bbwe!App
Command line usage To launch a Windows Store application via the command line, the common usage is using explorer.exe
via command line.
explorer.exe “shell:AppsFolder\The Windows Store app entry you want to launch”
Win32 API usage You can launch a Windows Store application elegantly from your application through the IApplicationActivationManager
interface, here is the code example.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 #include <Windows.h> #include <shobjidl.h> int main () { HRESULT hr = ::CoInitializeEx (nullptr , COINIT_APARTMENTTHREADED); if (SUCCEEDED (hr)) { IApplicationActivationManager* pApplicationActivationManager = nullptr ; hr = ::CoCreateInstance ( CLSID_ApplicationActivationManager, nullptr , CLSCTX_LOCAL_SERVER, IID_IApplicationActivationManager, (LPVOID*)&pApplicationActivationManager); if (SUCCEEDED (hr)) { hr = ::CoAllowSetForegroundWindow ( pApplicationActivationManager, nullptr ); if (SUCCEEDED (hr)) { DWORD dwProcessId = 0 ; hr = pApplicationActivationManager->ActivateApplication ( L"The Windows Store app entry you want to launch" , nullptr , AO_NONE, &dwProcessId); } pApplicationActivationManager->Release (); } ::CoUninitialize (); } return hr; }
References See also Windows Research Notes