(imported comment written by rzm10291)
Ok, so I took a look at a different update supplied by the nice folks at BigFix and borrowed the code to do this.
Since I know whats in the dmg and which order they should be installed, I can create the correct syntax for it. Here is what I’ve got and is working:
download http://server.com
continue if { (size of it = 7406 and sha1 of it = “anysha”) of file “bigF90C.tmp” of folder “__Download”}
extract bigF90C.tmp
wait sh -c “rm ‘/tmp/BigFixTest1.dmg’”
move “{posix path of file “BigFixTest1.dmg” of folder “__Download” of client folder of current site}” “/tmp/BigFixTest1.dmg”
wait hdiutil attach -quiet -private -mountpoint “/tmp/BESMNTPT3402455595271649” “/tmp/BigFixTest1.dmg”
wait rm -rf “{posix path of client folder of current site & “/__Download/BigFix Test 01.pkg”}”
wait rm -rf “{posix path of client folder of current site & “/__Download/BigFix Test 02.pkg”}”
wait cp -r “/tmp/BESMNTPT3402455595271649/BigFix Test 01.pkg” “{posix path of client folder of current site & “/__Download/BigFix Test 01.pkg”}”
wait cp -r “/tmp/BESMNTPT3402455595271649/BigFix Test 02.pkg” “{posix path of client folder of current site & “/__Download/BigFix Test 02.pkg”}”
wait /bin/sh -c "hdiutil detach -force mount | grep /tmp/BESMNTPT3402455595271649 | cut -f 1 -d \ | cut -f 3 -d / | head -1
"
wait sh -c “rm ‘/tmp/BigFixTest1.dmg’”
wait installer -pkg “{posix path of client folder of current site & “/__Download/BigFix Test 01.pkg”}” -target / -lang en
wait installer -pkg “{posix path of client folder of current site & “/__Download/BigFix Test 02.pkg”}” -target / -lang en
Edited:
removed the server and hash of the dmg.