(imported topic written by mjcarr91)
Has anyone pushed this from BigFix yet?
I tried using the Mac Deployment wizard to create a mac office install. I copied the mpkg file to a smb share. The deployment wizard went through the process, but ended with an illegal filename. So I am nowhere.
Update - I changed the mpkg file to a dmg and was aple to upload it. Not it fails when I try to run it.
I am new to mac apps so here is my script:
download http://<>:<>/Uploads/5ffb7b20410996bb21ac830288ca63ee5d910227/Microsoft%20Office%202011dmg.tmp
continue if {(size of it = 954752606 AND sha1 of it = “5ffb7b20410996bb21ac830288ca63ee5d910227”) of file “Microsoft Office 2011dmg.tmp” of folder “__Download”}
extract Microsoft%20Office%202011dmg.tmp
wait sh -c “rm ‘/tmp/Microsoft Office 2011.dmg’”
move “{posix path of file “Microsoft Office 2011.dmg” of folder “__Download” of client folder of current site}” “/tmp/Microsoft Office 2011.dmg”
wait hdiutil attach -quiet -private -mountpoint “/tmp/BESMNTPT33047918307702384” “/tmp/Microsoft Office 2011.dmg”
if {not active of action OR (exists folder whose (name of it ends with “.mpkg”) of folder it OR exists folder whose (name of it ends with “.pkg”) of folder it) of ("/tmp/" & “BESMNTPT33047918307702384”)}
wait installer -pkg “{(if (exists folder whose (name of it ends with “.mpkg”) of folder it) then (it & “/” & name whose (it ends with “.mpkg”) of folders of folder it) else (it & “/” & name whose (it ends with “.pkg”) of folders of folder it)) of (”/tmp/" & “BESMNTPT33047918307702384”) }" -target /
elseif {exists folder whose (name of it ends with “.app” AND exists folder “Contents” whose (exist file “PkgInfo” whose (exists line whose (it = “APPLVISX”) of it) of it) of it) of folder ("/tmp/" & “BESMNTPT33047918307702384”)}
appendfile tell application “{name of folder whose (name of it ends with “.app”) of folder (”/tmp/" & “BESMNTPT33047918307702384”)}"
appendfile DoInstall
appendfile quit
appendfile end tell
wait /bin/sh -c "iconv -f UTF-8 -t macintosh {concatenation "\ " of substrings separated by " " of pathname of client folder of current site}/__appendfile > {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/doinstall.txt”
run “{posix path of framework folder & “/Carbon.framework/Versions/Current/Support/LaunchCFMApp”}” “{(pathname of parent folder of it & “/” & name of it & “/Contents/MacOSClassic/” & preceding text of first “.app” of name of it) of folder whose (name of it ends with “.app”) of folder (”/tmp/" & “BESMNTPT33047918307702384”)}"
wait /bin/sh -c "osascript {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/doinstall.txt”
elseif {exists folder whose (name of it ends with “.app”) of folder ("/tmp/" & “BESMNTPT33047918307702384”)}
wait sh -c “rm '/Applications/{name whose (it ends with “.app”) of folders of folder (”/tmp/" & “BESMNTPT33047918307702384”)}’"
wait cp -Rfp “{pathname of folder whose (name of it ends with “.app”) of folder (”/tmp/" & “BESMNTPT33047918307702384”)}" “/Applications”
else
wait cp -Rpn /tmp/BESMNTPT33047918307702384/* /Applications
endif
wait /bin/sh -c "hdiutil detach -force mount | grep /tmp/BESMNTPT33047918307702384 | cut -f 1 -d \ | cut -f 3 -d / | head -1
"
wait sh -c “rm ‘/tmp/Microsoft Office 2011.dmg’”
Success Criteria
This action will be considered successful when all lines of the action script have completed successfully.