/build/static/layout/Breadcrumb_cap_w.png

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.


0 Comments   [ + ] Show comments

Answers (2)

Posted by: chucksteel 11 years ago
Red Belt
0

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.

Posted by: kongwak 11 years ago
Senior Yellow Belt
0

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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ