Detecting UWP apps

For detecting UWP apps, BigFix has the winrt package inspector. However, it seems to be very expensive:

q: not exist (winrt packages whose (family name of id of it starts with "WavesAudio.MaxxAudioProforDell") ) whose (version of id of it as version >= "4.0.47.0" as version)
A: True
T: 2084.684 ms
I: singular boolean

Has anyone found a computationally efficient way of doing this?

2 Likes

A while back I did find a way to parse the AppManifest which maybe an option.

Q: unique values of (((select "/Package/Properties/DisplayName" of it as text) & " " & (node value of attribute "Version" of select "/Package/Identity" of it)) of xml documents of files "AppxManifest.xml" of folders whose (name of it contains "Ookla") of folder "C:\Program Files\WindowsApps")
A: Speedtest by Ookla 1.15.163.0
T: 108.830 ms
I: plural string with multiplicity
3 Likes

Thanks for the inspiration! I turned it around and came up with:

Q: not exist (((folders of folder "C:\Program Files\WindowsApps") whose (name of it contains "MaxxAudioProforDell")) whose ((( "4.0.47.0" as version >= maximum of it) of (unique values of it as version)) of (node value of attribute "Version" of select "/Package/Identity" of it) of (xml documents of files "AppxManifest.xml" of it)))
A: True
T: 12.000 ms
3 Likes