OSX Custom Inventory Rules
We've been trying to deploy Lotus Notes 8.5.3 for MAC through KACE but the package in question is a MPKG file, through regular ziping and "installer -pkg filename.pkg -target /" it wouldn't install, so I did the windows batch-job approach to it and made a shell script to perform the same thing basically.
Adding the .sh file to the zip and targeting it through the MI it would deploy and install properly, however the software ID wouldn't register the installation and just keep on trying the full 3 attempts.
So I've tried making a custom software entry for the lotus notes 8.5.3 but now I'm stuck on how to make the inventory rulings, pointing towards FileExists() isn't really working as all our versions seem to name the file "Lotus Notes.app" So I would need something unique to point towards.
Anyone with any experience using the values of say PlistValueReturn(fullpath, entry, type) or FileInfoEquals(fullpath, attribute, type, value) ?
Otherwise what would be a wise choice to use?
Or is there any other simple way to deploy MPKG files?
Community Chosen Answer
PlistValueReturn(/Library/Application Support/Dell/KACE/department-info.plist, Department, TEXT)
Here's a copy of my plist file. This one reads the 1005 for department ID.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Department</key> <string>1005</string> </dict> </plist>