Adobe AIR installation

(imported topic written by mdb2691)

I have recently came across the need to install Adobe air applications using BigFix.

I have figured the complete process out for Windows, but still working on the MAC action script.

First thing you need to do is apply for a Redistribution License from Adobe.

(http://www.adobe.com/products/air/runtime_distribution1.html)

Once Approved (Takes maybe 30 min) you will be emailed a link to download the adobe air installer files.

The installer files are necessary to silently install Adobe AIR apps.

Here is the Action Script for silently installing the Yammer Adobe AIR app.

Note: I renamed the AIR APP INSTALLATION file to airappinstaller, and created a folder called yammer which included the airappinstaller and the Yammer.air app. I then used the Windows Software deployment wizard to upload the folder.

download URL Of Folder Containing The AIR APP INSTALLER and the AIR APP to install/yammer.tmp

continue if {(size of it = 1825990 AND sha1 of it = “3c2b4bb5ce675cb5b123955b96ac6aeecb2032d0”) of file “yammer.tmp” of folder “__Download”}

extract yammer.tmp

copy “__Download\airappinstaller.exe” “C:\airappinstaller.exe”

copy “__Download\Yammer.air” “C:\Yammer.air”

wait “C:\airappinstaller.exe” -silent -eulaAccepted “C:\Yammer.air”

delete “C:\airappinstaller.exe”

delete “C:\Yammer.air”

The Adobe AIR Installer requires the FULL path to execute the installation which is the purpose of the copy.

*Does anyone know of a way to download to a different location than the defualt “__Download”???

The MAC command line is as follows:

/macairappinstaller.app/Contents/MacOS/Adobe\ AIR\ Installer -silent -eulaAccepted /yammer/Yammer.air

The first argument is the path to the Adobe AIR app installer. “-silent” and “eulaAccepted” are the options for the installer to eliminate and user interface. and the last argument is the path to the AIR Application to be installed.

Note: The paths above have been shortened and are not the full path as required.

I haven’t been able to test the mac with BigFix yet as the Wizard is having an issue uploading the folder with the ADOBE AIR Installer application in it.

Once I get the folder uploaded I will be able to write the actionscript to run the commands above. Once tested successfully I will include an if statement to check the Operating system and carry out the appropriate scripts accordingly. I will also script the relevance to check for computers that have the Yammer app already installed and run the script to update the application when needed. (Monthly)

If anyone has any suggestions or experience with Adobe AIR applications please comment.

(imported comment written by jessewk)

Hi mdb26,

There is a Mac Software Distribution wizard. I believe it is part of the Patches for Mac site. It should be able to create the most of the installation task for you and then you’ll want to edit it to add your custom command line options.

You can’t specify an alternate download folder, but you can easily specify the whole path on the command line using relevance. Your install line would like something like this:

wait “{pathname of client folder of current site}/__Download/macairappinstaller.app/Contents/MacOS/Adobe AIR Installer” -silent -eulaAccepted “{pathname of client folder of current site}/__Download/Yammer.air”

Hope that helps.

Jesse

(imported comment written by mdb2691)

The mac Distribution wizard is giving me an error when I try to upload the folder.

And I tried specifying the path for the site but it wasn’t working as efficiently as desired.

Thanks for the input though.

Any other ideas/suggestions are greatly welcome.

(imported comment written by jessewk)

Can you post your entire action script?

(imported comment written by mdb2691)

Here is the current Action Script in Progress:

if {name of operating system = “WinXP”}

download http://www.outreach.psu.edu/OTS/bigfix/yammer/airappinstaller.exe

download http://www.outreach.psu.edu/OTS/bigfix/yammer/Yammer.air

copy “__Download\airappinstaller.exe” “C:\airappinstaller.exe”

copy “__Download\Yammer.air” “C:\Yammer.air”

wait “C:\airappinstaller.exe” -silent -eulaAccepted “C:\Yammer.air”

delete “C:\airappinstaller.exe”

delete “C:\Yammer.air”

//This begins the MAC OS check

elseif {name of operating system = “Mac OS X”}

download http://www.outreach.psu.edu/OTS/bigfix/yammer/yammer.dmg

wait hdiutil attach “__Download/yammer.dmg”

wait “/Volumes/Yammer/macairappinstaller.app/Contents/MacOS/Adobe AIR Installer” -silent -eulaAccepted “/Volumes/Yammer//Yammer.air”

(imported comment written by jessewk)

Try this:

if {name of operating system = “WinXP”}

download http://www.outreach.psu.edu/OTS/bigfix/yammer/airappinstaller.exe

download http://www.outreach.psu.edu/OTS/bigfix/yammer/Yammer.air

delete "C:\airappinstaller.exe"
copy “__Download\airappinstaller.exe” "C:\airappinstaller.exe"
delete "C:\Yammer.air"
copy “__Download\Yammer.air” “C:\Yammer.air”

waithidden “C:\airappinstaller.exe” -silent -eulaAccepted “C:\Yammer.air”

delete “C:\airappinstaller.exe”

delete “C:\Yammer.air”

//This begins the MAC OS check

elseif {name of operating system = “Mac OS X”}

download http://www.outreach.psu.edu/OTS/bigfix/yammer/yammer.dmg

wait hdiutil attach -quiet -private -mountpoint “/Volumes/yammer” “{posix path of file “yammer.dmg” of folder “__Download” of client folder of current site}”

wait “/Volumes/yammer/macairappinstaller.app/Contents/MacOS/Adobe AIR Installer” -silent -eulaAccepted “/Volumes/yammer/Yammer.air”

wait /bin/sh -c "devname=mount | grep yammer | cut -f1-1 -d \ | cut -f3-3 -d / | tail -1; hdiutil detach -force $devname;"
endif

Very Important

You should replace the ‘download’ commands with a ‘prefetch’ command and specify the size and sha1 of your downloads. If you don’t specify the sha1 there are number of implications, most importantly you lose out on all of our caching schemes, and you expose yourself to somebody spoofing the download location and tricking you into installing something malicious.

(imported comment written by mdb2691)

Thanks for your input. Can you explain a little about the prefetch?

I plan to include the size and sha1 checks, I was just testing the main action scripts first.

I am currently running into an issue with the adobe air app installer not working. The command I had before ran in terminal, but for unknown reasons I cannot get the AIR app installer to work anymore.

(imported comment written by jessewk)

Hi mdb26,

prefetch is a newer download command that combines the older ‘download’ followed by ‘continue if’ sytnax. It’s a lot easier to use and it’s the recommend syntax for version 6 thru 7.1.

For version 7.2 and higher, there is an even better syntax, which is to create a ‘prefetch block’ and use ‘add prefetch item’ for each download. For details, please see the authoring guides available at http://support.bigfix.com/fixlet and consider taking one of our custom content training courses.

Jesse

(imported comment written by mdb2691)

Thank you very much