Silent Managed Installation of Office 2011 for Mac and first removing Office 2008 (plus Outlook 2011)
I've been googling and searching itninja all day and not getting the info I need, so I'm putting out this question in the hopes of a KBOX Mac deployment veteran helping me (I consider myself something of a KBOX Windows deployment veteran in that I've got it to install quite a few things with quite a bit of custom code).
Unfortunately, I know very little on Macs (I'm purchasing and downloading books on Mac and Bash right after I post this and complete the other 100 things to do today), for example, I see "scripts" mentioned a lot, sometimes even with examples, unfortunately I have no idea HOW to USE those scripts, for example, if I see a Windows command line script for use with kbox, I know to stick it in a .bat file and just specify it's name (or use "call nameoffile.bat" without quotes unless there's a space in the name), I know's yet know the Mac equivalent, I hear "bash" mentioned, is that the Mac language equivalent?
I've got the VL Mac 2011 install, I'm setup a manage install (I had to make a "guess" one, since this is the first install so it's not listed in KBOX, in fact.. looking at the 2008 install, I'm worried there won't be a "Office" one, and just the individual components.
The problem I also have is most of these Macs have Office 2008 with Outlook 2011 on... don't know how they got them, but regardless I want to just end up with Office 2011, so I probably need to run a script to remove them first?
So far, I've discovered that 10622 isn't unzipping, so I understand you have to do sudo unzip ./filename.zip && rest of your commands (which I thought would be installer -pkg "Office Installer.pkg" -target / but maybe I need the equivalent of call setup.bat for Mac and add this line into, and do the removal stuff before?
On the Windows side, I basically always set it to configure manually, then I create a setup.bat and put it in the zip with the files, inside this bat I can do all the things I need to, call .msi files copy config files, delete shortcuts, add shortcuts, all kinds of things, as well as install.
How do I do the same for Mac basically?
You are on the right track. You are correct that the Mac client won't first unzip the archive so your install command has to include that first. Here is my install command for Microsoft Office 2011:
unzip "Office Installer.zip"; installer -pkg "Office Installer.pkg" -target /
I wasn't worried about removing Office 2008 first so I didn't need a script, but if you do need a script then you could put everything in script.sh and then call that script instead. For instance, we use Druva InSync as our backup solution and here's the install command in KACE:
tar -zxvf druvamacinstall5_2_2.tar.gz && install.sh
Typically a shell script on Mac can use either the bash shell or the sh shell and there can be a header on the first line indicating which shell to use but in my experience scripts run through KACE do not require it. Also, the managed install runs in the system context so there is no need to sudo the commands.