Can we install an app through Microsoft store and get installation parameters?

Nikhil Trikutam 20 Reputation points
2023-06-01T19:17:16.85+00:00

I need to install a UWP app from the store (using a link) and get the installation parameters present in the link after installation. While researching regarding this I found I can get the installation parameters using the app installer through protocol redirection and accessing them in OnActivation() of App.xaml.cs.
However, I do not wish to sideload my application. Is there a way I can do this directly through the store? i.e. is there a way to get the parameters directly from the link without an app installer, or can I publish an app installer to the store and get the parameters using it?

Note: I have already tried the ms-windows-store way and it hasn't worked for me.

ms-windows-store://pdp/?ProductId=<product-id>&CustomUri=<custom-protocol-uri>&CustomParameter=<parameter-value>
Microsoft Partner Center | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.