• AppleCentral Network:
  • Tech Support
  • |
  • Open Source
  • |
  • Apple News
  • |
  • Register Domains
  • |
  • SSL Certificates
  • |
  • iPod Deals
  • |
  • Mac Deals
  • |
  • Mac Book Shelf
  • AppleCentral Home
  • MacTech Magazine
    • About MacTech in Print
    • Issue Table of Contents
    • Subscribe
    • Risk Free Sample
    • Back Issues
    • MacTech DVD
    • MacTech Archives
    • MacTech Print Archives
    • MacMod
    • MacTutor
    • FrameWorks
    • develop
  • MacNews.com
    • MacNews News
    • Blog
    • MacTech Reviews and KoolTools
    • Whitepapers, Screencasts, Videos and Books
    • News Scanner
    • Rumors Scanner
    • Documentation Scanner
  • Apple Expo
    • by Category
    • by Company
    • by Product
  • MacForge.net
  • Job Board
  • Advertising
    • Benefits of MacTech
    • Mechanicals and Submission
    • Dates and Deadlines
    • Submit Apple Expo Entry
  • User
    • Register for Ongoing Raffles
    • Register new user
    • Edit User Settings
    • Logout
  • Contact
    • Customer Service
    • Webmaster Feedback
    • Submit News or PR
    • Suggest an article
  • Connect Tools
    • MacTech Live Podcast
    • RSS Feeds
    • Twitter
You are not logged in. [Log In] AppleCentral » Forums » Mac » Programming, Web Dev & Scripting » How to tell if Office 2011 is installed
Register User    Forum List        Active Topics    FAQ
Topic Options
Hop to:
#544367 - 11/16/10 02:30 AM How to tell if Office 2011 is installed
Dominion Software Inc. Offline
n00b

Registered: 03/13/10
Posts: 1
Anyone have a robust way to check (via a shell script) if Office 2011 is installed?

Thanks,


Rick

Top
#544376 - 11/16/10 03:01 AM Re: How to tell if Office 2011 is installed [Re: Dominion Software Inc.]
NucleusG4 Offline
Master•Blaster

Registered: 04/20/02
Posts: 12486
Loc: Miami, Fl.
I just open the app folder and look.
Sorry.
_________________________
http://davidbearphotography.com/



Top
#544378 - 11/16/10 03:06 AM Re: How to tell if Office 2011 is installed [Re: NucleusG4]
yoyo52 Offline
Nothing comes of nothing.

Registered: 05/25/01
Posts: 30520
Loc: PA, USA
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

Top
#544469 - 11/16/10 10:50 PM Re: How to tell if Office 2011 is installed [Re: yoyo52]
the JoshMeister Offline
Producer and Host, Official MacTech Podcast

Registered: 10/24/07
Posts: 10
Loc: Alta Loma, California, USA
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

Top
#544521 - 11/17/10 03:27 AM Re: How to tell if Office 2011 is installed [Re: the JoshMeister]
NucleusG4 Offline
Master•Blaster

Registered: 04/20/02
Posts: 12486
Loc: Miami, Fl.
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...
_________________________
http://davidbearphotography.com/



Top
#544587 - 11/17/10 09:25 PM Re: How to tell if Office 2011 is installed [Re: NucleusG4]
John Rougeux Offline
Member # -1

Registered: 11/06/08
Posts: 6095
Loc: Louisville, KY
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.

Top
#544731 - 11/18/10 11:58 AM Re: How to tell if Office 2011 is installed [Re: John Rougeux]
NucleusG4 Offline
Master•Blaster

Registered: 04/20/02
Posts: 12486
Loc: Miami, Fl.
Ditto.

Hope he posts more often.
_________________________
http://davidbearphotography.com/



Top
#544819 - 11/19/10 04:59 AM Re: How to tell if Office 2011 is installed [Re: NucleusG4]
MacBozo Offline
Nut Dood

Registered: 04/21/02
Posts: 17704
Loc: Pinellas Park, Florida
Just wait for the "performed an illegal action" dialog. laugh
_________________________

Top
#544994 - 11/21/10 11:00 AM Re: How to tell if Office 2011 is installed [Re: MacBozo]
padmavyuha Offline
Trans Tomboy™

Registered: 09/03/03
Posts: 4921
Loc: Dawlish, Deepest Darkest Devon
That's not version-specific enough grin.
_________________________
If it's brokenless, don't suffix it...

Top
Previous Topic
View All Topics Index
Next Topic

Tweet

Preview

Moderator:  Acumowchek, MacGizmo, Reboot 
Print Topic
Switch to Threaded Mode
Publications, Articles and Industry Discussion
   »MacTech/MacNews Article Discussions
   »Apple World
Marketplace
   »Deals and Special Offers
      »Expired Offers
   »Trading Warehouse
Mac
   »Hardware
   »Software
   »Servers, Security, and Networking
   »Programming, Web Dev & Scripting
   »Windows and Virtualization
   »Cloud and Online Services
Mobile Technologies
   »iPhone Apps, AppStore, and iTunes
   »iPad, iPhone, iPod and Apple TV Hardware
Mods and Hacks
   »General Mods
      »Techniques
      »Miscellaneous
      »Mod Logs
   »Laptop Mods
      »Case Mods
      »Hardware Mods
      »Misc. Mods
   »Desktop Mods
      »Case Mods
      »Hardware Mods
      »Misc. Mods
   »Peripheral Mods
      »iPod Mods
      »Misc Mods
   »Software Hacks & Mods
General Discussion
   »Site Feedback & Issues
   »Stan's Lounge
   »Soapbox
Now Software Support
   »Announcements
   »Now X
      »FAQs
      »Discussion
   »Now Up-to-Date & Contact
      »Community Help
      »Tips and tricks
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
Board Rules · Mark all read
Contact Us · AppleCentral · Top

MacTech Only Search:
Community Search:

 
 
 

 
 
 
 
 
  • SPREAD THE WORD:
  • Slashdot
  • Digg
  • Del.icio.us
  • Reddit
  • Newsvine
  • Generate a short URL for this page:



AppleCentral. www.applecentral.com
Main office: 805-494-9797
Xplain's use of MacNews, AppleCentral and AppleExpo are not affiliated with Apple, Inc. MacTech is a registered trademark of Xplain Corporation. AppleCentral, MacNews, Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, MacTech Central, MacTech Domains, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corp. Sprocket is a registered trademark of eSprocket Corp. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.
All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.
Generated in 0.058 seconds in which 0.043 seconds were spent on a total of 13 queries. Zlib compression enabled.
Powered by UBB.threads™ PHP Forum Software 7.5.8