Hari Kiran
Hari Kiran

Reputation: 111

How to install Windows store app programmatically in UWP?

I want to install an windows store application programmatically from UWP application. I am able to redirect to the Windows store application page but what i want is the application should install automatically from store. Is there any to achieve this in UWP?

Thanks in advance.

Upvotes: 3

Views: 1459

Answers (1)

wallycz
wallycz

Reputation: 308

Yes it is, but such app need Package Policy Control capability (see https://msdn.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations). Also you must have direct access to appx package of app to install. Then you can use PackageManager class. But this app can't be pushed to Windows store without special permission from MSFT or you must use sideloading (installing without Windows store). So it's almost unusable...

Upvotes: 2

Related Questions