2

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.

NSouth
  • 5,067
  • 7
  • 48
  • 83
  • https://blogs.msdn.microsoft.com/appconsult/2018/03/22/handling-auto-updates-for-sideloaded-uwp-and-desktop-bridge-apps/ – magicandre1981 Jul 12 '19 at 13:51
  • @magicandre1981, I cannot find anything in this article which addresses my need to determine where an installed app is pointed to for updates. – NSouth Jul 12 '19 at 14:07
  • you have XY problem, ask a different question about your real issue. follow the steps to get your apps updated – magicandre1981 Jul 12 '19 at 14:43
  • @magicandre1981 could you help me understand what is not clear in my original question? I feel that it fairly clearly says that I'm looking for a way to know where an app is pointed for updates. I'm not asking about how to *configure* updates. We already have that working. – NSouth Jul 12 '19 at 14:52
  • If the automatic updates works, You could update one of services and then check which app get the update then determine the service. – Nico Zhu Jul 15 '19 at 07:02
  • In the app you can find the install Uri using this https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.package.getappinstallerinfo?view=winrt-19041, I do not think the URL is accessible in Window. – marv51 Sep 01 '20 at 09:59

1 Answers1

1

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
marv51
  • 366
  • 1
  • 11