Microsoft Office 2004
Packaging
Scripts
InstallCheck
Sample:
#!/usr/bin/perl
if (-e "/Applications/Microsoft Office 2004/Updater Logs/11.3.7 Update Log.txt")
{
exit 0;
} else {
exit 112;
}
InstallCheck.strings
To be really nice to the users and print out custom error messages when the install check fails, you need an InstallCheck.strings file to contain those error strings. It is a very simple file, but the procedure for getting the codes to line up is more than tricky. Apple’s Package Guidelines explains it in more detail, but here is the accompanying .strings file that goes with the above InstallCheck.
"16" = "This Update Cannot be Installed Until Microsoft Office 2004 11.3.7 is installed";
"17" = "Please Close all Office Applications Before Continuing";
A more in depth look at this system can be found in my expanded article here.