uwpwindows-10windows-10-universalappxappinstaller

How to determine location from which Windows 10 UWP app was installed with App Installer


We have an app installed via the Windows 10 App Installer. We have multiple environments, so the installer could point to different servers to get download updates. How can we determine in Windows what server our app is looking to for updates?

We would like to be able to do this in Windows via PowerShell or something similar. We are aware that the app itself can use the PackageManager and Package classes to determine this at runtime, but we do not want to change our app's code.

Edit: To clarify, we have automatic updates working. But we need a way to determine whether an installed app is pointing to Server1 vs Server2 for its updates.


Solution

  • I'm pretty sure this didn't exist years ago, when this question was asked, but now the answer is as simple as:

    Get-AppxPackageAutoUpdateSettings -PackageFamilyName xyz
    

    The output contains the row: AppInstallerUri: https://example.com[...]

    I guess you could isolate that by running:

    (Get-AppxPackageAutoUpdateSettings -PackageFamilyName xyz).AppInstallerUri