Hello all! In Windows, I see we have an install_d...
# fleet
m
Hello all! In Windows, I see we have an install_date column for the programs table - is there a way to get something similar for the Mac side? I'd like to see when users apps were installed on a Mac box.
u
It looks like the apps table doesn't provide that information, but we might be able to grab it a different way.
f
partial solution for macos apps that were formally installed via packages
Copy code
SELECT * FROM package_receipts;
the install_time column specifically. for regular apps there may be some atime/ctime file metadata to be pulled form the Info.plist within a given .app/Contents/ folder?
m
That works pretty well, thank you! SELECT *, datetime(install_time, 'unixepoch') AS readable_install_time FROM package_receipts
f
Just be mindful this is not 100% coverage.
m
Fair enough, thank you! I'll still look at the plist angle you mentioned to see what's left.
One thing I'm curious about with the package_receipts option - I'm wondering if it detects package upgrades and updates the install_date value to reflect the upgrade date. I'll have to dig into that a little more.
f
let us know what you find out. i would imagine it does and the version value will be different as well.
u
Nice!