I am developing a UWP in which i need to get list of all installed packages on system is there any API for this ?
Here is a sample for doing this. It should also work for UWP Apps.
These are the lines you need:
Windows.Management.Deployment.PackageManager packageManager = new Windows.Management.Deployment.PackageManager();
IEnumerable<Windows.ApplicationModel.Package> packages = (IEnumerable<Windows.ApplicationModel.Package>) packageManager.FindPackages();
Then you can iterate through the packages and get the info you need.
Now there is a problem with this code: this cannot run within an UWP app (see here). You will get an access denied exception. Now an option would be to outsource this code to some component which is allowed to do this and trigger it from the UWP app.