Hi All,
I am having some problems with installing MS Office 2008- site license. There was an earlier post, I found that helped alot (39 replies). After taking the MPKG out of the DMG, I found the /Contents/Plugins/InstallerSections.plist and removed the 1st 2 items in the plist, which actually allowed InstaDMG, to install (those 2 pieces were Introduction and Read Me). After that install, I got stuck in loops of launching any office program, and it would ask for registration and license info, and eventually get to the auto update, which I would quit, out of, and then when I launch it again same thing.
I eventually found out that the installation put the SetupInfo.plist file at the root of the image /Office/Setupinfo.plist instead of at /Applications/Microsoft Office 2008/Office/Setupinfo.plist . I also found out that the OfficePID.plist did not exist at all on the installation.
So that led me to this file /Contents/Packages/Office2008_en_required.pkg --> Show contents /Contents/Resources/Postflight ---> Here is the original unchanged
#!/bin/sh
# Get the installed path of the custom icon file
icon_filename=`printf "Icon\r"`
# $RECEIPT_PATH does not give the full path to the receipts, so must prepend installation volume
bom_path="$3/$RECEIPT_PATH/../Archive.bom"
icon_path_partial=`lsbom -s -f "$bom_path" | grep "/$icon_filename"`
icon_path_full="$2${icon_path_partial:1}"
# Set the custom icon of the Microsoft Office 2008 folder
parent_dir=`dirname "$0"`
fix_icon_path="$parent_dir/fix_custom_icon"
office_root_folder=`dirname "$icon_path_full"`
"$fix_icon_path" "$office_root_folder"
/usr/bin/touch "$office_root_folder"
# Move the OfficePID.plist to the installed location
source_pid_file="$HOME/Library/Caches/TemporaryItems/Microsoft Office 2008/Office/OfficePID.plist"
target_pid_file="$office_root_folder/Office/OfficePID.plist"
target_pid_dir=`/usr/bin/dirname "$target_pid_file"`
if [ -e "$source_pid_file" ]; then
/bin/mkdir -p "$target_pid_dir"
/bin/cp -f -v "$source_pid_file" "$target_pid_file"
/bin/rm -v "$source_pid_file"
fi
/bin/chmod 0664 "$target_pid_file"
# Copy the SetupInfo.plist to the installed location
source_setup_file="$1/../../Plugins/ProductKey.bundle/Contents/Resources/Office/SetupInfo.plist"
target_setup_file="$office_root_folder/Office/SetupInfo.plist"
target_setup_dir=`/usr/bin/dirname "$target_setup_file"`
/bin/mkdir -p "$target_setup_dir"
/bin/cp -f -v "$source_setup_file" "$target_setup_file"
/bin/chmod 0664 "$target_setup_file"
exit 0
so because I could not see the OfficePID.plist file I changed the code to this. I also placed a copy of a good OfficePID.plist and put it in the same location as the SetupInfo.plist file.
#!/bin/sh
# Get the installed path of the custom icon file
icon_filename=`printf "Icon\r"`
# $RECEIPT_PATH does not give the full path to the receipts, so must prepend installation volume
bom_path="$3/$RECEIPT_PATH/../Archive.bom"
icon_path_partial=`lsbom -s -f "$bom_path" | grep "/$icon_filename"`
icon_path_full="$2${icon_path_partial:1}"
# Set the custom icon of the Microsoft Office 2008 folder
parent_dir=`dirname "$0"`
fix_icon_path="$parent_dir/fix_custom_icon"
office_root_folder=`dirname "$icon_path_full"`
"$fix_icon_path" "$office_root_folder"
/usr/bin/touch "$office_root_folder"
# Move the OfficePID.plist to the installed location
source_pid_file="$1/../../Plugins/ProductKey.bundle/Contents/Resources/Office/OfficePID.plist"
target_pid_file="$office_root_folder/Office/OfficePID.plist"
target_pid_dir=`/usr/bin/dirname "$target_pid_file"`
if [ -e "$source_pid_file" ]; then
/bin/mkdir -p "$target_pid_dir"
/bin/cp -f -v "$source_pid_file" "$target_pid_file"
/bin/rm -v "$source_pid_file"
fi
/bin/chmod 0664 "$target_pid_file"
# Copy the SetupInfo.plist to the installed location
source_setup_file="$1/../../Plugins/ProductKey.bundle/Contents/Resources/Office/SetupInfo.plist"
target_setup_file="$office_root_folder/Office/SetupInfo.plist"
target_setup_dir=`/usr/bin/dirname "$target_setup_file"`
/bin/mkdir -p "$target_setup_dir"
/bin/cp -f -v "$source_setup_file" "$target_setup_file"
/bin/chmod 0664 "$target_setup_file"
exit 0
Which at least got both files onto the image, however they are still in the wrong location, /Office/SetupInfo.plist.
So what is wrong with Microsofts Postflight code that is not seeing the paths correctly or (what just came to my mind) is this related to the chroot issue? What should I do to fix this? I also believe I need to remove the line of code /bin/rm -v because my OfficePID.plist file keeps getting deleted from the MPKG file where I place it. However, if I can figure out what is truly happening here, maybe I do not need to muck with their code at all.
Thanks,
Steven Stuart