FileWave Alliance

The Official Community Forum
  • Page:
  • 1

TOPIC: Flash query

Flash query 17 Jul 2017 15:16 #2608

  • Dave Nitz
  • Dave Nitz's Avatar Topic Author
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 2
  • Thank you received: 0
Hi all. I'm relatively new to the FIlewave platform. I'm trying to create a query to update flash. Problem is, I'm getting everyone's flash update installers as a result. (See attached) So while there are only 29 macs, 79 show up in my query as needing updates!
Any help would be appreciated. Dave N.
Attachments:
Last Edit: by Dave Nitz. Reason: Wrong Attachment

Flash query 17 Jul 2017 17:41 #2611

  • Bao Tran
  • Bao Tran's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 103
  • Karma: 4
  • Thank you received: 13
It might be easier and faster to handle this as a Requirements Script. Your shell script should check for the presence of /Library/Internet\ Plug-Ins/Flash\ Player.plugin/Contents/Info.plist. If it doesn't find it then exit 0. If it does find it that means Flash is present. In that case use defaults to read the CFBundleShortVersionString key. If that value equals whatever the latest version of Flash is return exit 0. Otherwise return exit
defaults read /Library/Internet\ Plug-Ins/Flash\ Player.plugin/Contents/Info.plist CFBundleShortVersionString
Then in your fileset for the latest version of Flash for Mac, set the system requirements to Mac OS only and assign to a smart client group that contains all your devices. The OS restriction prevents it from installing on the Windows computers and the requirements script stops it from installing on Macs that don't have Flash or the latest version of Flash installed.
Last Edit: by Bao Tran.

Flash query 17 Jul 2017 18:40 #2612

  • Dave Nitz
  • Dave Nitz's Avatar Topic Author
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 2
  • Thank you received: 0
So can the return from this script be used in a query? And from that create a smart group?

Flash query 17 Jul 2017 19:41 #2615

  • Bao Tran
  • Bao Tran's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 103
  • Karma: 4
  • Thank you received: 13
Yes, in a somewhat roundabout way. What you'd have to do is create a fileset that includes this script that populates a custom field. Then you would create a smart group based on an inventory query that uses the custom field as one of its selection criteria. Hopefully that wasn't too confusing and made sense.

Ultimately it comes down to what your purpose for creating this smart group is. Is it to

  1. Find the devices that have an outdated version of Flash?
  2. Find devices with outdated Flash plus the devices that don't have Flash at all on them?
  3. Find the devices that have an outdated version of Flash and update them?
  4. Make sure all devices have the latest version of Flash on them, regardless of whether they currently have Flash installed?
If your end goal is to deploy Flash like in 3 or 4 then my previous suggestion allows you to do this automatically without needing a list of what devices have an outdated Flash on them. The OS requirements for the Flash fileset and requirements script attached to your Flash fileset will take care of that for you. If your end goal is just to get a listing of devices and their Flash status without taking any kind of remedial action then the smart group based on a custom field makes more sense.
Last Edit: by Bao Tran.
  • Page:
  • 1