Middlebury

Slipstreaming Office 2008 for Mac

Minimal Modification Method

  1. (Using a Mac) Create a folder somewhere on the computer, name it "Office 2008 - Mac"
  2. Copy the Office Installer.mpkg from the install CD (or the disk image) to that folder.
  3. Download the first service pack, and the last combo update (get them directly from the Microsoft Mactopie site, do not use Microsoft AutoUpdate) :
  4. You'll need to visit http://www.microsoft.com/mac/downloads and check the system requirements for the latest updates. The idea is to grab the most recent combined update to help minimize the amount of updates that the customer needs to do.
  5. The updates will probably arrive in the shape of a disk image. Open the disk image and you should see an "mpkg" file in it.
  6. Inside "Office 2008 - Mac", create a subfolder and call it "Updates". Copy the mpkg from each disk image into the Updates folder.
  7. Create a simple readme file and place it next to the Office Installer.mpkg
  8. The readme file should:
  9. Iinstruct the user to double-click "Office Installer.mpkg" and follow the instructions that the installer provides.
  10. When the installation finishes, the user should open the Updates folder and double-click the first update, follow on-screen instructons, repeat with remaining updates.
  11. The contentes of your Office 2008 - Mac folder should look like this:
Office 2008 - Mac
  Office Installer.mpkg
  README.txt
  Updates

In this shape, the folder can be burned to a CD, or copied on a network drive.

The advantage of this method is that it requires no scripting or modification of the installer packages.

The disadvantage is that it leaves a lot of work for the end-user. Also, if you are distributing this via ARD, you need to push multiple packages - the base install (Office Install.mpkg), and each update package needs to go separately.

You will also need to provide documentation that instructs the user how to change the default file formats from docx, xlsx, pptx, to the older doc, xls, ppt formats.

Hacking the Installer Provided by Microsoft

  1. (Using a Mac) Create a folder somewhere on the computer, name it "Office 2008 - Mac"
    # Copy the Office Installer.mpkg from the install CD (or the disk image) to that folder.
    # Download the first service pack, and the last combo update (get them directly from the Microsoft Mactopie site, do not use Microsoft AutoUpdate) :
    # You'll need to visit http://www.microsoft.com/mac/downloads and check the system requirements for the latest updates. The idea is to grab the most recent combined update to help minimize the amount of updates that the customer needs to do.
    # The updates will probably arrive in the shape of a disk image. Open the disk image and you should see an "mpkg" file in it.
  2. Right-click the Office Insaller.mpkg and select "Show Package Contents", then open Contents => Packages <-- copy the mpkg updates into this folder. Once they are inside here, it will be useful to rename the mpkg updates using simple filenames. E.g. office2008sp1.mpkg  or   office12.1.5.mpkg
  3. Now right-click Office2008_en_dock.pkg (it's inside the Packages folder) and select "Show Package Contents", then open Contents => Resources
  4. Inside the Resources folder there will be a file called "postflight". Open postflight with TextEdit or another plain text editor.
  5. At the end of the postflight file, BEFORE "exit 0", paste a line, such as the one below, for each mpkg update that you copied over (the line below is just an example, make sure you replace "Office2008-12.1.0.mpkg" with whatever is the name of the first update you'd like to slipstream. Add a new line for each new update you want to slipstream.
    sudo installer -dumplog -verbose -pkg "$1/Contents/Packages"/Office2008-12.1.0.mpkg -target /

The advantage of this method is that it does a lot of work for the end-user -- it automates the installation of the updates. A package created this way can be easily pushed via ARD.

The disadvantage is that you need to be comfortable with these short hacking tricks. Also, while the updates are being installed, the installer progress bar is extremely inaccurate, and a few of Microsoft's updates take a long, long time (15+ minutes). You will also need to provide documentation that instructs the user how to change the default file formats from docx, xlsx, pptx, to the older doc, xls, ppt formats. It is possible to add a few more lines to the postflight script to automate this as well. Here are the lines that you need to add to the postflight script, if you want to change the default file formats:

dock_plist_path="/Users/$USER/Library/Preferences/"
current_user=$USER

# Check if we're running at the login screen
top -l 1 | grep "Finder"
if (( $? > 0 ))
then
dock_plist_path="/System/Library/User Template/English.lproj/Library/Preferences/"
current_user="root"<br>fi

echo "$dock_plist_path"com.apple.dock.plist

# Set default save file formats
sudo -u $current_user defaults write "$dock_plist_path"com.microsoft.Word "2008\\Default Save\\Default Format" "Doc97"
sudo -u $current_user defaults write "$dock_plist_path"com.microsoft.Excel "2008\\Default Save\\Default Format" -int 57
sudo -u $current_user defaults write "$dock_plist_path"com.microsoft.Powerpoint "2008\\Default Save\\Default Save\\Default Format" "Microsoft PowerPoint 98 Presentation"


Creating an AI package for Macs

  • Basically, you'll be using PackageMaker from Apple's Developer Tools to "capture" and monitor all changes that happen during the installation of office. PackageMaker can then easily create a package with all the things/updates you did/installed.
  • You will need a Mac with Leopard that does not have Office 2008 installed.
  1. Insert the Office 2008 install disk (or disk image). Don't run it yet.
  2. Download and install the XCode tools (Developer tools), for Leopard. They are available on our XServe, as well as on developer.apple.com (need to sign up, but it's free).
  3. After the XCode tools are installed, open /Developer/Applications/Utilities/PackageMaker
  4. At the first prompt enter "edu.middlebury" (it doesn't really matter), leave other options as they are and click OK
  5. Put in "Office 2008 - Mac" under title.
  6. Click Project => Add snapshot then click Start - leave PackageMaker open and start your office installation.
  7. Install Office 2008 (when prompted for a name, enter Middlebury College)
  8. After the install is done, do all the updates (you will be prompted at one point).
  9. Switch back to Package Mager, click "Stop", then "Next".
  10. You will be given a list of all the changes that PackageMaker is about to package. It is very wise to go through the list and remove "junk"
  11. Folders named Caches or tmp, Anything that obviously doesn't relate to Microsoft Office. Do NOT include the "Users" folder!
  12. When done pruning, name the snapshot (e.g. office2008-snap), click Save.
  13. Click "Build" and this will create the package.
  14. To be continued...


Powered by MediaWiki