Mac Office 2011

(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.

(imported comment written by SystemAdmin)

Here is the action script from our Office 2011 deployment task.

Note that we download from our own web location and don’t pre-upload to the BigFix server.

The BigFix server and relays will download the dmg from you download location and cache/distribute to the clients. Your clients will not download directly from the url in the action script, only the server.

  • Aaron

    // download the DMG that holds the PKG installer download http:
    //

    continue

    if
    {(size of it = 456110189 AND sha1 of it =
    “a51c55e5761c98fcf8d0af42f01295898dbeca70”) of file
    "Office.2011.dmg" of folder
    "__Download"
    }
    // move the DMG file to a temp directory move
    "{posix path of file “Office.2011.dmg
    ” of folder “__Download
    ” of client folder of current site}"
    "/tmp/Office.2011.dmg"
    // mount the disk image wait hdiutil attach -quiet -nobrowse -mountpoint
    "/tmp/Office2011"
    "/tmp/Office.2011.dmg"
    // run the installer wait installer -pkg
    "/tmp/Office2011/MicrosoftOffice2011.pkg" -target /
    // unmount the volume wait /bin/sh -c
    "hdiutil detach -force mount | grep /tmp/Office2011 | cut -f 1 -d \ | cut -f 3 -d /
    // delete the disk image file wait sh -c
    "rm ‘/tmp/Office.2011.dmg’”

(imported comment written by mjcarr91)

How did you create your dmg? Was if straight from the office 2011 dvd using the mpkg file?

I am confused as to how you are referencing the MicrosoftOffice2011.pkg?

(imported comment written by JackCoates91)

Hi,

The DVD holds a DMG that holds a PKG. This script downloads the DMG, moves it to a temp space, mounts it, installs the PKG, unmounts the DMG, and deletes the DMG.

Jack

(imported comment written by SystemAdmin)

We’re a volume license customer, so we get a DMG from Microsoft. If you are installing from DVD media, you’ll need to create a DMG from the installation DVD using Disk Utility (in /Applications/Utilities).

  • Aaron