Posted on 05-07-2015 03:46 PM
I'm trying to roll out Office for Mac 2011 SP1 aka 14.1, but keep getting the below error when I check the logs for the policy:
installer: Package name is Office 2011 14.1.0 Update
installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override.
All other Office for Mac 2011 updates deploy without any problems, so I don't understand why there is such an issue with SP1 ?
I downloaded it directly from the Microsoft site here
I don't know how I'm supposed to "Use -allowUntrusted to override" that the error message suggests as a fix?
Thanks
Posted on 05-07-2015 03:56 PM
Because that package probably was not signed or the cert that was used to sign it has expired. You have two options that I can think of:
If your copy of Office is a volume license version, you should be able to download the full installer from Microsoft that has SP3 rolled into it, leap frogging your current version.
Your other option is to use Composer or another program, put the SP1 installer somewhere like /tmp/, then drag the .pkg from that location into Composer, so the .pkg itself is the file that is going to get installed into /tmp/.
Then add a post-install script in Composer to the package and just have it run a simple shell script with the command like:
#!/bin/sh
installer -pkg /tmp/MSOfficeSP1.pkg -target / -allowUntrusted
Posted on 05-07-2015 03:58 PM
So first off, if you have a volume license of Office 2011 with Microsoft, you should be able to obtain a full installer package that is much more current, like 14.3.9 or something like that. You really shouldn't be trying to deploy/install Office 14.1 at this point as that is a very old version. Assuming you mean you are deploying it as a full installation and not an update to an existing install.
As you've found, the certificate that was being used for that installer is now no longer valid. I forget now if this has to do with Apple revoking some older developer certificates a while back due to some security issues, or if its just because its expired.
So before anything else, I'd really look into getting a more current installer version. The only reason you would need to use this 14.1 package is if you already have clients out there with versions like 14.0.2 or something horribly old and you are trying to update them to 14.1 first. In that case, you'll have no choices other than deploying 14.1, and then the current updates, or just re-installing Office cleanly on their Mac.
Just so I try to answer one of your questions above though, the Casper Suite's installation process doesn't use the -allowUntrusted flag when using the built in function, and there is no way I know of to make it use that flag. The only way to do it would be to build a package that actually deploys the 14.1.pkg into a location like /private/tmp/ and then uses a postinstall script to do something like:
installer -pkg /private/tmp/Office201_114.1.pkg -target / -allowUntrusted
Edit: Lol, @chriscollins and I posted nearly identical responses. :)
Posted on 05-07-2015 07:02 PM
It's all good :)
Posted on 05-10-2015 08:36 PM
The only reason you would need to use this 14.1 package is if you already have clients out there with versions like 14.0.2 or something horribly old and you are trying to update them to 14.1 first.
Yes, unfortunately this is exactly the situation I'm in.
I'd never use an out of date installer to install software from scratch as part of an SOE : )
I'll try using Composer combined with a script as you've (both) suggested - thanks.
I'm fairly new to packaging with OSX and Composer though. Do I just copy the SP1 .mpkg to the /private/tmp folder on the machine running Composer, then open Composer and drag the package into the left hand pane of the program? Or do I do this once I've started creating a new .pkg and the initial snapshot is complete?
Either method just seems to leave me with an empty .pkg file that doesn't do anything when I run it? Sorry for the noob question.
Posted on 05-11-2015 05:54 AM
Hi @jevans76 Yes, follow these steps:
/private/
/tmp/
Office 2011 14.1.0 Update.mpkg
Now, when that installer runs, it will drop the SP1 installer into /tmp/ and after the payload part is done, the postinstall script will actually install it on your boot drive, but will use the -allowUntrusted flag, which will bypass that expired certificate error.
One thing that might be a good idea to add to the script is an rm line at the end to clean up the installer mpkg. Something like:rm -f "/private/tmp/Office 2011 14.1.0 Update.mpkg"
That should clean up the installer after its done installing it, or attempting to install it.
Posted on 05-11-2015 03:18 PM
Great, thanks for that @mm2270 - I'll try this today.
Posted on 05-11-2015 04:08 PM
OK, so not sure if I'm doing something wrong, but I've copied the mpkg to the /private/tmp folder, and then dragged it in to Composer 9.7
However, I don't get the /private/tmp folder structure I was expecting. It just seems to have copied the package, as below:
I noticed that you mentioned "source" in your instructions above, so I clicked the "Convert to Source" button. That gives me the folders, including "scripts", but not the parent folder structure of /private/tmp ??
Not sure what I'm doing wrong here?
Posted on 05-11-2015 04:21 PM
OK, my bad here. Yes, Composer will try to turn any packages you drag into it into a "convert to source" item. That's the behavior you're seeing. You did nothing wrong.
Here's what you do then:
Drag the entire /tmp/ directory into Composer instead of the package. You'll need to go back in and clean out a bunch of other stuff that it copies into Composer, so you're only left with your .mpkg file before creating the script and building the final pkg.
Or, you can create a new folder in /tmp/, place the Office SP1 installer in that and then drag that custom folder into Composer. You'll only end up with the custom directory and the installer in it (as well as other folders that lead to it, like /private/tmp/
If you decide to use the latter method, just make sure you include that custom folder in the path to the installer command. So for example, if I made a new directory in /tmp/ called "installer" and put the Office installer in it. then in the postinstall script I would use something like
installer -pkg "/private/tmp/installer/Office 2011 14.1.0 Update.mpkg" -tgt / -allowUntrusted
Make sense?
Posted on 05-12-2015 08:38 PM
Yes, that makes sense. I've dragged the /tmp/ directory and I'm getting the desired result now.
I've deleted the surplus files it copied across as you advised.
When I went to create the bash script, I wasn't 100% sure where to paste the code you provided without stuffing up the syntax, but it advised "the script seemed to compile properly" when I ran the check on it. It looks like this:
Would this run OK, or have I stuffed up the syntax, as I know nothing about bash scripting.
I'm getting success logs when I check the policy deploying the uploaded package, i.e.:
Executing Policy Office for Mac 2011 - Update from 14.0.0 to 14.1.0...
Copying Copy_Office_for_Mac_SP1_to_tmp.pkg...
Installing Copy_Office_for_Mac_SP1_to_tmp.pkg...
Successfully installed Copy_Office_for_Mac_SP1_to_tmp.pkg.
..but at the same time, the smart group I have reporting on OSX clients with Office for Mac SP1 installed isn't increasing in size?
Posted on 05-12-2015 08:58 PM
@jevans76 Are you running a recon/update inventory as a part of your policy?
Edit: Also you will be wanting brackets around the file path.
"/private/tmp/Office 2011 14.1.0 Update.mpkg"
Posted on 05-12-2015 09:08 PM
https://managingosx.wordpress.com/2012/03/24/fixing-packages-with-expired-signatures/
Posted on 05-13-2015 06:25 AM
Hey @gregneagle I'm curious, but would the method you outline on your blog post work with the SP1 Office updater? That package still shipped in bundle style metapackage format, so pkgutil --expand doesn't work on it since there isn't anything to expand. I have not tried the python utility/script you built, but I suspect it may not work as well since you specifically mention it working on flat packages.
However, after going through all this with @jevans76 above, I had one of those forehead slapping moments where I realized there's a much easier solution to this. No need for all this rigmarole of dropping the bad installer into tmp and then installing it. @jevans76, just redownload the SP1 installer directly from Microsoft, which was rebuilt with a valid certificate. You can get it off of http://www.microsoft.com/mac/downloads, or just go here:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=17198
I just downloaded it and took a look to confirm that it contains a valid certificate. Look:
Posted on 05-13-2015 07:11 AM
I'd go with the different approach suggested by @mm2270. I'm doing a new deployment this week so grabbed 14.4.2 from the MS portal and the 14.5.0 patch. The client did try to give me their original Office 2011 CD at first. Even if I could find a Mac with a CD drive, its not likely it would install smoothly.
If you're still deploying 14.1.x I would expect problems. Best suggestion is to keep on top of your packages, making sure you're deploying the newest, patched versions you can.
Posted on 05-13-2015 08:30 AM
I agree that getting a new version of the package from Microsoft with a valid signing certificate is the best approach.
Posted on 05-13-2015 09:08 AM
If you have clients with older versions than SP1, shouldn't installing the Office SP4 (14.4.x) ISO provided from Microsoft at the moment upgrade the computer just fine to the appropriate version and do all the database upgrades it needs to do? I wouldn't think there's a need to go to SP1 -> SP4 -> SP5 if you're using the full installer. If you're using the update installers, yes you do need at least SP1, but I would definitely test using the full Office installer which as mentioned takes you to 14.4.x. Test that out if you can.
Posted on 05-13-2015 09:21 AM
@bpavlov No, unfortunately, SP1 (14.1.0) is a required update for clients still running versions like 14.0.4, basically anything prior to 14.1.0. You need to install that first, then any current update out there can be applied on top.
At one time, it was actually worse. If I recall, a 14.2.4 update or something like that was also required before moving up to 14.3 and so on, but Microsoft fixed that by rolling the db changes made with that 14.2.x update into all subsequent ones, so you can jump from 14.1.x to the current release.
Edit: sorry, didn't read what you posted fully, as you basically said the same thing. If you look up the thread, I had asked the same question of the OP, but turns out they have some clients still on 14.0.x versions out there that the SP1 update is needed for.
Posted on 05-13-2015 04:01 PM
Yes, as I said in my original post, I'd never use an outdated installer. I'm having to find a way to perform an in place upgrade of the existing Office 2011 14.0 installation on my client machines because there is no other choice.
If it was an Office install under Windows I could just run an msiexec uninstall to uninstall the old version, then roll out the updated installer after that.
However, the biggest problem with the Mac version of Office is that there's no clean way to automate a clean and complete uninstall AFAIK.
Posted on 10-13-2015 02:31 PM
@mm2270 I'm afraid re-downloading 14.1.0 doesn't work. Despite the certificate being newer, it still isn't trusted.
Despite the cert looking exactly the same as in your screenshot, and reporting as being valid, I still get the same error as I did before when trying to deploy the update:
"Certificate used to sign package is not trusted. Use -allowUntrusted to override."