K1000 - Custom Invetory Rule to test a file version on a Mac
Hi,
I am trying to test for Flash versions greater than 10.0 on our Macs. The Custom Inventory Rule I am using is:
FileInfoGreaterThan(/Library/Internet Plug-ins/Flash Player.plugin, Version, NUMBER, 10)
Sadly this does not work. Has anyone got something like this to work.
Answers (2)
I can use this Inventory Item to return the major version number (eg 11).
ShellCommandTextReturn(/usr/bin/defaults read /Library/Internet\ Plug-Ins/Flash\ Player.plugin/Contents/version CFBundleShortVersionString | sed 's/\..*$//')
I am not to sure if that gets me where I need to be. All I really want is to do what you can with Windows and insatll Flash and then prevent it re-installing everytime it gets updated. this is simp-le enough in Windows
http://www.kace.com/support/resources/kb/article/Custom-Inventory-Rule-Applications
However I a stuck trying it with a mac.