Previous Thread
Next Thread
Print Thread
Hop To
How to tell if Office 2011 is installed #544367 11/16/10 02:30 AM
Joined: Mar 2010
Posts: 1
D
Dominion Software Inc. Offline OP
n00b
OP Offline
n00b
D
Joined: Mar 2010
Posts: 1
Anyone have a robust way to check (via a shell script) if Office 2011 is installed?

Thanks,


Rick

Re: How to tell if Office 2011 is installed [Re: Dominion Software Inc.] #544376 11/16/10 03:01 AM
Joined: Apr 2002
Posts: 12,486
NucleusG4 Offline
Master•Blaster
Offline
Master•Blaster
Joined: Apr 2002
Posts: 12,486
I just open the app folder and look.
Sorry.

Re: How to tell if Office 2011 is installed [Re: NucleusG4] #544378 11/16/10 03:06 AM
Joined: May 2001
Posts: 30,520
yoyo52 Offline
Nothing comes of nothing.
Offline
Nothing comes of nothing.
Joined: May 2001
Posts: 30,520
Me too, Nuc. If there's a doubt, open one of the apps and see if it cooks. If it doesn't, it's not installed properly.


MACTECH ubi dolor ibi digitus
Re: How to tell if Office 2011 is installed [Re: yoyo52] #544469 11/16/10 10:50 PM
Joined: Oct 2007
Posts: 10
the JoshMeister Offline
Producer and Host, Official MacTech Podcast
Offline
Producer and Host, Official MacTech Podcast
Joined: Oct 2007
Posts: 10
Try this command in the Terminal:

Code:
test -d "/Applications/Microsoft Office 2011" && echo Yep || echo Nope

That will return "Yep" if the folder exists, and "Nope" if the folder doesn't exist. You can put something else in place of the echo commands, if you want.

This, of course, isn't foolproof. If a user moves the folder you'll get "Nope" even if the applications exist elsewhere on the computer. Similarly, if someone deletes all the applications from that folder, or if they just create an empty folder named "Microsoft Office 2011" inside the Applications folder, the command will return "Yep". These scenarios are unlikely but possible.

You're welcome. I accept PayPal donations. ;o)


Subscribe to MacTech Live — Official Podcast of MacTech Magazine
Re: How to tell if Office 2011 is installed [Re: the JoshMeister] #544521 11/17/10 03:27 AM
Joined: Apr 2002
Posts: 12,486
NucleusG4 Offline
Master•Blaster
Offline
Master•Blaster
Joined: Apr 2002
Posts: 12,486
JOSH!!!
Where ya been? You joined 3 years ago and now have 9 posts. Stop it dude.. yer killin me.

I'd say welcome aboard.. but you beat me to it...

Re: How to tell if Office 2011 is installed [Re: NucleusG4] #544587 11/17/10 09:25 PM
Joined: Nov 2008
Posts: 6,150
J
John Rougeux Offline
Member # -1
Offline
Member # -1
J
Joined: Nov 2008
Posts: 6,150
That's not Josh. That's the JoshMeister, here to spin all the hits for you. laugh

I was surprised to see a registration date of 07 and 9 posts. this was the first one I have seen.

Re: How to tell if Office 2011 is installed [Re: John Rougeux] #544731 11/18/10 11:58 AM
Joined: Apr 2002
Posts: 12,486
NucleusG4 Offline
Master•Blaster
Offline
Master•Blaster
Joined: Apr 2002
Posts: 12,486
Ditto.

Hope he posts more often.

Re: How to tell if Office 2011 is installed [Re: NucleusG4] #544819 11/19/10 04:59 AM
Joined: Apr 2002
Posts: 17,706
MacBozo Offline
Nut Dood
Offline
Nut Dood
Joined: Apr 2002
Posts: 17,706
Just wait for the "performed an illegal action" dialog. laugh


[Linked Image from dl.dropbox.com]
Re: How to tell if Office 2011 is installed [Re: MacBozo] #544994 11/21/10 11:00 AM
Joined: Sep 2003
Posts: 4,921
padmavyuha Offline
Trans Tomboy™
Offline
Trans Tomboy™
Joined: Sep 2003
Posts: 4,921
That's not version-specific enough grin.


If it's brokenless, don't suffix it...

Moderated by  Acumowchek, MacGizmo, Reboot