title: PackageManager.FindPackageForUser(String, String) always returning null
body: <p>Why my following code example of <a href="https://docs.microsoft.com/en-us/uwp/api/windows.management.deployment.packagemanager.findpackageforuser" rel="nofollow noreferrer">this</a> method is returning?   </p>
  
  <pre><code>using Windows.Management.Deployment;
  …
  ...
  Windows.ApplicationModel.Package oPkg = oPkgManager.FindPackageForUser(string.Empty, "HoloCamera_1.0.0.5_neutral__cw5n1h2txyewy");
  </code></pre>
  
  <p><strong>Remark</strong>: To test the <code>FindPackageForUser(…)</code> method, you will need to first add following references to your <code>VS2017</code> project of any type (Winform, WPF, etc) as explained <a href="https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/" rel="nofollow noreferrer">here</a>:</p>
  
  <ol>
  <li>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd</li>
  <li>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\System.Runtime.WindowsRuntime.dll</li>
  </ol>
  
  <p><strong>NOTE</strong>: First using <code>VS2017</code> , I ran <a href="https://docs.microsoft.com/en-us/uwp/api/windows.management.deployment.packagemanager.findpackages" rel="nofollow noreferrer">this</a> sample code example for <code>FindPackages()</code> method to find all the packages installed on my <code>Windows 10</code>. And I found out several packages that are installed on windows by default. And, I tried the following two but both of them return null on the above code line.</p>
  
  <p><strong>Following are two of the packages that <a href="https://docs.microsoft.com/en-us/uwp/api/windows.management.deployment.packagemanager.findpackages" rel="nofollow noreferrer">FindPackages()</a> method returns. And, I tried both of them in my above code example</strong>:</p>
  
  <pre><code>1.
  
  Name: HoloCamera
  FullName: HoloCamera_1.0.0.5_neutral__cw5n1h2txyewy
  
  Version: 1.0.0.5
  
  Publisher: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  
  PublisherId: cw5n1h2txyewy
  
  IsFramework: False
  
  And
  
  2.
  
  Name: DesktopLearning
  
  FullName: DesktopLearning_1000.15063.0.0_neutral__cw5n1h2txyewy
  
  Version: 1000.15063.0.0
  
  Publisher: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  
  PublisherId: cw5n1h2txyewy
  
  IsFramework: False
  </code></pre>