how to check app is installed or not unity

C++
List<PackageInfo> packs = getActivity().getPackageManager().getInstalledPackages(0);
Source

Also in C++: