Scripting Adobe Remote Update Manager

wayfaircasper
New Contributor II

Hello JAMF Nation,

Currently, I have Adobe RUM setup in Self Service so our end users can update their Adobe CC apps anytime. The experience is not very friendly. The process kicks off but the user is never notified if updates have run or not.

I am attempting a script that will first check for updates, then give the user some actions based on whether or not available updates are found. My bash scripting is limited but I have even less experience with AppleScript. I currently, have 2 problems:

  1. No matter the result of the remoteupdatemanager --action=list command the "Updates Available" dialog is always given. It's almost as if the grep is being ignored.

  2. When the Run Updates button is clicked I get the following result: 598:649: execution error: System Events got an error: RemoteUpdateManager exiting with Return Code (1) (1)
    When running the script from Terminal I have to sudo. But with Self Service sudo should't be necessary.

Any help would be appreciated. Thanks!

#!/bin/bash

/usr/bin/osascript << EOF

tell application "System Events"

    set grepResults to 0

    #Checks if there are available Adobe updates.
    try

        set grepResults to do shell script "usr/local/bin/remoteupdatemanager --action=list | grep Following Updates are applicable on the system"

    end try

    #If Updates are found. User is prompted and give the option to run the updates. If no updates found user is noitified ad given the option to click OK and exit.
    if grepResults = 0 then
        display dialog "Updates Availalbe!" buttons {"Run Updates", "Cancel"} default button 1
        if result = {button returned:"Run Updates"} then
            do shell script "usr/local/bin/remoteupdatemanager"

        else
            display dialog "No updates available from Adobe at this time." buttons {"OK"} default button "OK"


        end if

    end if
end tell

eof
1 ACCEPTED SOLUTION

mpeski
New Contributor III

Have a look at this: https://github.com/jmahlman/uarts-scripts/blob/master/Adobe-RUMWithProgress.sh. We use this in our environment and it works very well.

View solution in original post

12 REPLIES 12

mpeski
New Contributor III

Have a look at this: https://github.com/jmahlman/uarts-scripts/blob/master/Adobe-RUMWithProgress.sh. We use this in our environment and it works very well.

wayfaircasper
New Contributor II

@mpeski This is amazing! Thank you. Cocoa dialog is handy tool. Much much smother than trying to have apple script involved.

Kedgar
Contributor

@mpeski That looks super awesome!!!!!!! Thanks

kstrick
Contributor III

I have been doing something similar to that script, but without grabbing the status from the logs....
may switch to this one :)

CocoaD is great, next version of jamfHelper should steal some ideas from it

pete_c
Contributor III

I use this as an EA to return Remote Update Manager's version:

/usr/local/bin/RemoteUpdateManager --help 2>&1 | awk ' NR==1{ print $5 } '

jwojda
Valued Contributor II

Oddly, when I try it, if Adobe is fully updated and it will exit w/o errors, but if there are updates available, it prompts to install, then goes into limbo, the adobe RemoteUpdateManager.log shows errors. If I use my old script that has no progress bar/cD, it works fine.

06/19/17 13:09:00:085 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ##################################################
06/19/17 13:09:00:085 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ##################################################
06/19/17 13:09:00:085 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Launching the RemoteUpdateManager...
06/19/17 13:09:00:085 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | RemoteUpdateManager version is : 2.0.0.15
06/19/17 13:09:00:100 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:00:100 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Initializing AcrobatUpdateHelper...
06/19/17 13:09:00:116 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | AcrobatUpdateHelper library initialized successfully
06/19/17 13:09:00:116 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:00:116 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Starting ARM CheckForUpdate...
06/19/17 13:09:00:728 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ARM CheckForUpdates completed successfully for (com.adobe.ARMDCHelper), but no updates were found available
06/19/17 13:09:01:339 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ARM CheckForUpdates completed successfully for (com.adobe.acrobat.dc), but no updates were found available
06/19/17 13:09:01:960 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ARM CheckForUpdates completed successfully for (com.adobe.acrobat.2015), but no updates were found available
06/19/17 13:09:02:571 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ARM CheckForUpdates completed successfully for (com.adobe.acrobat.servicesupdater.dc), but no updates were found available
06/19/17 13:09:03:181 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ARM CheckForUpdates completed successfully for (com.adobe.acrobat.servicesupdater.2015), but no updates were found available
06/19/17 13:09:03:182 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No new updates are available for Acrobat/Reader
06/19/17 13:09:03:182 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:03:182 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:03:182 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Initializing UpdaterCore Library...
06/19/17 13:09:03:532 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | UpdaterCore library initialized successfully.
06/19/17 13:09:03:533 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | FFC override file does not exist ... (/Library/Application Support/Adobe/AAMUpdater/1.0/AdobeUpdater.Overrides)
06/19/17 13:09:03:536 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  | HDPIM | 822419 | Inside hdpimCreateSession
06/19/17 13:09:03:536 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  | HDPIM | 822419 | Entering into 'createHDPIMSession'
06/19/17 13:09:03:536 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  | HDPIM | 822419 | new session '05003B6E-6AA6-4932-BACC-B59B2C7B68D8' created 
06/19/17 13:09:03:536 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  | HDPIM | 822419 | Exiting hdpimCreateSession, new session ID is '05003B6E-6AA6-4932-BACC-B59B2C7B68D8'
06/19/17 13:09:03:536 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:03:536 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Starting UpdaterCore CheckForUpdate...
06/19/17 13:09:04:739 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | CheckForUpdates completed successfully.
06/19/17 13:09:04:739 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:04:739 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Starting UpdaterCore DownloadUpdates...
06/19/17 13:09:04:747 | [INFO] |  | AAMEE | HUM | HUMSessionManager |  | HUM | 822419 | Entering into 'createHUMSession'
06/19/17 13:09:04:747 | [INFO] |  | AAMEE | HUM | HUMSessionManager |  | HUM | 822419 | new session '523CEEB0-1C2D-4420-8D16-13CEFA6180B9' created 
06/19/17 13:09:04:747 | [INFO] |  | AAMEE | HUM | HUMInterface |  | HUM | 822419 | Exiting humCreateSession, new session ID is '523CEEB0-1C2D-4420-8D16-13CEFA6180B9'
06/19/17 13:09:07:233 | [INFO] |  | AAMEE | HUM | HUMInterface |  | HUM | 822419 | Exiting humDownloadProductFFC with status '1'
06/19/17 13:09:07:370 | [INFO] |  | AAMEE | HUM | HUMInterface |  | HUM | 822419 | Exiting humParseProductFFC with status '1'
06/19/17 13:09:07:371 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (ACR) (9.8) ...
06/19/17 13:09:07:372 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (COCM) (1.0) ...
06/19/17 13:09:07:372 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (COMP) (1.0) ...
06/19/17 13:09:07:372 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (CORE) (1.0) ...
06/19/17 13:09:07:373 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (CORG) (1.0) ...
06/19/17 13:09:07:373 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (KFNT) (1.0.0) ...
06/19/17 13:09:07:376 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (COPS) (1.0) ...
06/19/17 13:09:07:376 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | No dependent product found for installed product (PSTI) (1.3.1) ...
06/19/17 13:09:07:381 | [INFO] |  | AAMEE | HUM | HUMInterface |  | HUM | 822419 | Exiting humGetLatestUpdates with status '1'
06/19/17 13:09:07:382 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (ACR) (9.6) (osx10-64) (9.10.1) (9.10.1.60)...
06/19/17 13:09:07:382 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:383 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (AEFT) (14.0.0) (osx10-64) (14.2.1) (14.2.1.34)...
06/19/17 13:09:07:383 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:383 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (AME) (11.0.0) (osx10-64) (11.1.2) (11.1.2.35)...
06/19/17 13:09:07:383 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:384 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (ANMLBETA) (1.0.5) (osx10-64) (1.0.6) (1.0.6.161)...
06/19/17 13:09:07:384 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:384 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (AUDT) (10.0.0) (osx10-64) (10.1.1) (10.1.1.11)...
06/19/17 13:09:07:384 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:385 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (DRWV) (17.0.0) (osx10-64) (17.5.0) (17.5.0.9878)...
06/19/17 13:09:07:385 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:385 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (FLPR) (16.0) (osx10-64) (16.5) (16.5.0.100)...
06/19/17 13:09:07:385 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:386 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (IDSN) (12.0.0) (osx10-64) (12.1.0) (12.1.0.056)...
06/19/17 13:09:07:386 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:386 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (ILST) (21.0.0) (osx10-64) (21.1.0) (21.1.0.327)...
06/19/17 13:09:07:386 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:387 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (MUSE) (2017.0.0) (osx10-64) (2017.0.3) (2017.0.3.20)...
06/19/17 13:09:07:387 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:387 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (PHSP) (18.0) (osx10-64) (18.1.1) (18.1.1.252)...
06/19/17 13:09:07:387 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:388 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (PPRO) (11.0.0) (osx10-64) (11.1.2) (11.1.2.22)...
06/19/17 13:09:07:388 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:388 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (PRLD) (6.0.0) (osx10-64) (6.1.2) (6.1.2.14)...
06/19/17 13:09:07:388 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:388 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (PSTI) (1.3.0) (osx10-64) (1.3.2) (1.3.2)...
06/19/17 13:09:07:388 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:389 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Found a matching installed product with update (SPRK) (0.6.2) (osx10-64) (0.6.32) (0.6.32.12)...
06/19/17 13:09:07:389 | [INFO] |  | AAMEE | HUM | HUMInterface |  |  | 822419 | Adding this update to applicable updates set ...
06/19/17 13:09:07:391 | [WARN] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Failed to enumerate folder (/Users/<userid>/Library/Application Support/Adobe/RemoteUpdateManager_Downloads) while cleaning up downloaded HD updates ...
06/19/17 13:09:07:391 | [WARN] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Failed to cleanup some obselete update media downloaded at (/Users/<userid>/Library/Application Support/Adobe/RemoteUpdateManager_Downloads)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | HUM | HUMInterface |  | HUM | 822419 | Exiting humTerminateSession with status '1'
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Following Updates are applicable on the system : 
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (AdobeLightroom-6.0/6.10.1)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (ACR/9.10.1.60/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (AEFT/14.2.1.34/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (AME/11.1.2.35/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (ANMLBETA/1.0.6.161/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (AUDT/10.1.1.11/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (DRWV/17.5.0.9878/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (FLPR/16.5.0.100/osx10-64)
06/19/17 13:09:07:424 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (IDSN/12.1.0.056/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (ILST/21.1.0.327/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (MUSE/2017.0.3.20/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (PHSP/18.1.1.252/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (PPRO/11.1.2.22/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (PRLD/6.1.2.14/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (PSTI/1.3.2/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |    (SPRK/0.6.32.12/osx10-64)
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | 
06/19/17 13:09:07:425 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | **************************************************
06/19/17 13:09:07:436 | [WARN] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Failed to unload the AcrobatUpdateHelper library cleanly.
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  | HDPIM | 822419 | Inside hdpimTerminateSession
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  | HDPIM | 822419 | Exiting hdpimTerminateSession, successfully closed session '0'
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ##################################################
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | Ending the RemoteUpdateManager Return Code (0)
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ##################################################
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 | ##################################################
06/19/17 13:09:07:436 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 822419 |

pete_c
Contributor III

FYI the most recent version of RUM (2.1.0.11) doesn't seem to always show the current Adobe Camera RAW update; RUM definitely reported the new ACR on a machine that also had an available Photoshop update. Still testing.

jmahlman
Valued Contributor

Glad to see someone else besides my university is getting some milage out of the script.

I'm going to move it off CocoaDialog since it might not work in High Sierra. I was going to use jamfhelper but I want to make it something that works without jamf.

Andy_McCaskill
Contributor

@mpeski This script looks great. Is there any article for deployment? It referencing to policies you need created to continue and i've been trying to mimic those but with no success. Perhaps share some of that wisdom as well?

mpeski
New Contributor III

@mccaskill We have one policy that installs or updates the latest RemoteUpdateManager. We make sure all clients have the latest version. we download the latest version here: https://helpx.adobe.com/creative-cloud/kb/rum-update.html. With Composer we make a pkg of it that we then install.

We use this EA for checking the version of it: https://www.jamf.com/jamf-nation/third-party-products/files/876/adobe-remote-update-manager-version-ea.

And we use a Self Service policy that users can use to update the Adobe applications if they want to. It's just an ongoing policy that runs this script. That's all basically.

jmahlman
Valued Contributor

@mccaskill Hey, I wrote that script. I should probably add some notes to it for people to use it. Here's what I have setup to make it work.

  • Make sure users have cocoa dialog and RUM on their systems. We put it on our systems at image time but if someone doesn't have them the script will try to install it via policies (I install cocoadialog via pkg to /Applications/Utilities/ and just use the RUM installer created with the Adobe packager)
    10c67f0e5bd04711b42f4f0fecd264e4
    b703670b5fc346688a54a147c44d2dd9

  • Upload the script to the JSS and create a simple Self Service policy. I make it do an inventory update after it runs.
    ef668b6fb8bd434dab4bbf7f56bab570
    dd56632e0d804110aea6bd1d617a39e9

And that's all! We make it available to everyone all of the time.

I also have a quick and dirty EA that we use to show if machines have updates via RUM: EA-Adobe Updates available. We use this to automatically update labs and other public machines weekly.

Also note that the script has been slightly updated for Adobe CC 2018 Channel IDs and app names (Lightroom now comes through via RUM!)

imagnone
New Contributor II

I was having issues getting the Jamf listed EA pulling the version number so I combined @pete_c 's method and it's working again. Not sure if Adobe changed they way they listed it or what. Hopefully it helps someone.

#!/bin/bash

if [ -f /usr/local/bin/RemoteUpdateManager  ]; then
    chmod +x /usr/local/bin/RemoteUpdateManager
    S_VERSION=$(/usr/local/bin/RemoteUpdateManager --help 2>&1 | awk ' NR==1{ print $5 } ')
    EA_RESULT="${S_VERSION}"
elif [ -a /usr/sbin/RemoteUpdateManager ]; then
    S_VERSION="Pre 2015.5 Release"
    EA_RESULT="${S_VERSION}"
else
    EA_RESULT="Not installed"
fi

echo "<result>${EA_RESULT}</result>"