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.

0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



I don't think that the Version that's returned is actually a number, so using GreaterThan doesn't work as intended. You could try using FileInfoReturn and then work with the data that's returned to the field to create a smart label.

Answered 11/01/2012 by: chucksteel
Red Belt

Please log in to comment

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


However I a stuck trying it with a mac.

Answered 11/02/2012 by: kongwak
Senior Yellow Belt

Please log in to comment