With this code below:
await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-windows-store://review/?ProductId=9wzdncrfj2wl"));
I am opening Facebook app in Microsoft Store. There is a Launch button on that page. With it user runs the application.
How can I run the application with it's product ID?
I managed to open app with this code:
await Windows.System.Launcher.LaunchUriAsync(new Uri("fb:post?text=foo"));
But I want to open it with ID.
I have found this code, but it is not working:
await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-windows-store://pdp/?ProductId=9wzdncrfj2wl"));
How to open installed app with ID? Or, if there is another way to check if App is installed, if it is then launch it, if it is not then show it in store, so user can install it manually. The app I am developing is Windows 10 UWP...
I have a situation where there is no URI for application, so I have to open it via it's ProductID or ProductFamily...
So, this is the shortcut's target that is opening that app: C:\Windows\explorer.exe shell:AppsFolder\A88BB54F.N1info_gvc78jvcn5cg0!App
Is there any chance I can use this in UWP app to launch app?
Does anyone got the link from LAUNCH button in Windows Store? So, I would put that in URI, just like link from GET button:
ms-windows-store:PDP?PFN=A88BB54F.N1info_gvc78jvcn5cg0&referrer=unistoreweb&webig=39694073-f9af-436f-a82b-abb9d9f644f0&muid=097C7AA3CA2C6EE22D237359CE2C689A&websession=c9916902dd014ec2b5a9e0390a28c26d
I am using it like this:
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:PDP?PFN=A88BB54F.N1info_gvc78jvcn5cg0&referrer=unistoreweb&webig=39694073-f9af-436f-a82b-abb9d9f644f0&muid=097C7AA3CA2C6EE22D237359CE2C689A&websession=c9916902dd014ec2b5a9e0390a28c26d"));
and it is showing app in store.
Thanx.