Office 2016 Preview block

jwojda
Valued Contributor II

Just as a heads up, the 2016 Office Public Preview is out...
http://products.office.com/en-US/mac/mac-preview

looking into how to block it now as a restricted process.

51 REPLIES 51

davidacland
Honored Contributor II
Honored Contributor II

Yep, definitely don't want users installing it at this stage!

Are you looking to block the installer?

jwojda
Valued Contributor II

Yes installer, though I'm having a hard time finding it.

I may just block the apps for now
Course, that makes it difficult because they are the same app names...

mm2270
Legendary Contributor III

Nice. We'll likely see a post on our internal company site from a user wondering why this isn't already showing up in Self Service for them to install and when the h3ll is IT going to start supporting this??? its been a whole hour since its been posted!!

I'm not even joking. The impatience around here from our user base is staggering at times.

davidacland
Honored Contributor II
Honored Contributor II

@jwojda we had the same thought but blocking the apps will probably be too late! The processes might also be called the same as the 2011 versions.

jwojda
Valued Contributor II

@mm2270 - i hear you, and know it all too well.

@davidacland - seems they are called the same. just different folder locations... (Installs into /Applications instead of /Applications/Office 2011

davidacland
Honored Contributor II
Honored Contributor II

Its a pkg installer unfortunately (OfficePreview.pkg) so the process would be the Apple installer. Blocking that would cause more problems.

How about a smart group that detects the new versions, then a policy that deletes them and re-installs 2011?

scottb
Honored Contributor

They claim you can:

Can I run this side by side with Office 2011?
Yes, you can use the preview builds of Word, Excel, PowerPoint, and Outlook for Mac alongside Office for Mac 2011.

And uninstall by:
1. Go to the Go Menu in your Finder Menu.
2. Go to the Applications Folder.
3. Navigate to the Word, Excel, PowerPoint, Outlook, or OneNote app that you want to delete.
4. Drag the relevant app to your trash.
5. Empty the file from your trash.

Now, with 2.5GB of files, is that really "uninstalling"? Nah...

mm2270
Legendary Contributor III

What if you blocked a process name like:

/Applications/Microsoft Word.app

and unchecked the "Restrict exact process name" option? Would that work since it should see the process only if it comes from that path instead of /Applications/Microsoft Office 2001/?
I will need to try that and see if it works.

davidacland
Honored Contributor II
Honored Contributor II

I would expect that to find both versions of Word and stop them from working, but you never know, could be an easy fix.

Are you still running software from 2001! ;)

mm2270
Legendary Contributor III

Opps! Haha! I meant 2011 of course. :) :)

dgreening
Valued Contributor II

It looks like blocking the 2016 Apps from running by putting /Applications/Microsoft Word.app in the restricted process works without killing Word 2011 which lives in /Applications/Microsoft Office 2011/Microsoft Word.app.

scottb
Honored Contributor

But I'd wager folks would make a new folder and put them in there after if they are OCD like me.
Or even move them to the Office folder or Desktop.
I"m more interested in blocking the actual install.

FYI, The installer did not ask me to quit Lync or Safari, only Word and Outlook.

LOL - first launch of Outlook - did not choose to import data:

Microsoft Error Reporting log version: 2.0 Error Signature: Exception: EXC_BAD_ACCESS Date/Time: 2015-03-05 18:46:51 +0000 Application Name: Microsoft Outlook Application Bundle ID: com.microsoft.Outlook Application Signature: OPIM Application Version: 15.8.150303 Crashed Module Name: OutlookCore Crashed Module Version: 15.8.150303 Crashed Module Offset: 0x0003d1c4 Blame Module Name: OutlookCore Blame Module Version: 15.8.150303 Blame Module Offset: 0x0003d1c4 Application LCID: 1033 Extra app info: Reg=en Loc=0x0409 Crashed thread: 1

dgreening
Valued Contributor II

Yes Outlook is bombing out on me with the same error. The previous 150225 beta build is stable though.

bentoms
Release Candidate Programs Tester

Office 2016 requires 10.10.. so if you're blocking that, then you're blocking this!

mm2270
Legendary Contributor III

@boettchs - indeed I thought of that even before I posted that possible solution. Since anyone that would install it is an administrator to start with, they can simply put them into a different path and bypass the restriction. Its by no means a perfect solution, but as of right now it doesn't seem like you can block the installation itself.

The only thing I can think of is to deploy a LaunchDaemon that watches the install.log and if it sees someone is running the OfficePreview.pkg installation it stops it by killing "installer". Seems like a hacky kludge, but I can't really think of anything else that would work at the moment.

scottb
Honored Contributor

We only block 10.10 installs, not new Macs placed into the JSS via enroll, and also, some testers have UAT for 10.10.
It's not critical like Yosemite blocks are, but I'd still like to nuke the installer if possible...

OTOH, if it works as well as it does for me, they'll delete it :)

mm2270
Legendary Contributor III

I can confirm that putting in a restriction like "/Applications/Microsoft Excel.app" as the restriction stops the new versions without blocking the 2011 versions (it requires 4 in total; one for each new app, or 5 if you want to block OneNote also), but as I said, its pretty easily bypassed and could lead to issues if for some reason someone decides to move one of the legit 2011 apps outside of the Microsoft Office 2011 folder for any reason.
Wish there was a better way, but this one could be tricky.

I like the idea of detecting the new versions in an Extension Attribute or some other script, and then targeting those Macs with a deletion script (and optional message that comes up) I may whip something together to do that and post back here with it if I have any success.

mm2270
Legendary Contributor III

Not the best solution by far, but something like this, run as an Ongoing offline policy on the recurring check-in trigger might help

#!/bin/bash

jhPath="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper"

restricted="Microsoft Office 2015 applications are currently restricted. These applications have been shut down and removed from your Mac.

Once the final version of Office 2015 is released, IT will evaluate these applications for use in the environment. Please do not attempt to install and use the public beta release at this time."

icon="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/Resources/restrictedSoftware.png"

O2015Apps=$( mdfind 'kMDItemVersion == "15.8*" && kMDItemCFBundleIdentifier == "com.microsoft.*"')

while read app; do
    if [[ $(echo "$app" | egrep "Outlook|Excel|PowerPoint|Word|OneNote") != "" ]]; then
        echo "Found Office 2015 app - $app"

        PID=$(ps axww | grep "$app" | grep -v grep | awk '{print $1}')
        if [ ! -z "$PID" ]; then
            kill -9 "$PID"
        fi

        rm -Rfd "$app"

        removal="yes"
    fi
done < <(echo "${O2015Apps}")

if [ "$removal" == "yes" ]; then
    "$jhPath" -windowType utility -title "" -heading "Office 2015 applications are restricted" -description "$restricted" -button1 "OK" -defaultButton 1 -defaultButton 1 -icon "$icon"

    exit 0
else
    echo "No removals were done at this time. Exiting..."

    exit 0
fi

It locates the new Office applications by the new "15.8" version they show up with as well as their general bundle identifier, then loops over anything found, figures out if the application is running and if so, shuts it down and deletes it from its actual path it was located in, as well as any that aren't running (also from their paths). Then sends up a jamfHelper message that they are restricted. Along with using the standard Restricted Software process, this should help stop most usage, even if someone places them into a different sub directory. In my tests, it safely left the original Office 2011 versions alone and running (if they were open) I also tested moving the apps into a sub folder in /Applications/ called "New" I was able to run them from there with the JAMF Restricted Software processes in place, but when running this script it successfully found, shut down and removed the apps.

Again, less than ideal, but may help. For the moment, I think we'll only use the standard Restricted Software process and see how that goes, but if we need to take an extra step, we can utilize something like this.

pbetancourth
New Contributor

SO Glad I'm not the only one looking for this. I thought I was losing my mind when I couldn't block the installer.

alexjdale
Valued Contributor III

Since the preview does not interfere with any of our existing apps, I'm not planning to treat it any differently than any other arbitrary app that a user with admin rights can download and install. We simply won't support it if there are problems, like with any other arbitrary app.

If this impacted Office 2011 I would be singing a different tune. Our users place a very high value on this sort of freedom so I do as well. I'm not saying it's wrong to block it, I'm just curious what the motivation is (I assume to stop users from requesting support for it since it is likely to be buggy?).

nessts
Valued Contributor II

Now there is a voice of reason, thanks @alexjdale

pbetancourth
New Contributor

@alexjdale I don't wish to speak ill of my users...as most of us are want to do, but your reasoning is correct. It's to try and put a stop from getting an innumerable amount of support tickets that will come in and because it is a Microsoft product, the users will demand support of it's fine and buggy new product.

Also, to avoid the eventual internal politics.

emily
Valued Contributor III
Valued Contributor III

I'm blocking the apps for now because I don't know how they'll impact our E3 licensing yet. It says the apps will be included for subscribers to Office 365 but I don't want to worry about audits or headaches with Microsoft for having preview clients running as main apps on machines in our environment…

That being said, I do have people using the Outlook beta, but not company wide. And I'm hesitant to let the use the Outlook 15.8 app in this release because it crashes repeatedly and once you "upgrade the profile database" or whatever you can't use it with the beta if you put it back on. You then find yourself trashing all sorts of Office settings and files deep within user library preference folders just to get email up and running again.

Also, no Lync included in this, which I find interesting. Maybe Microsoft is going to stop issuing it and just use Skype? If so, are they going to require a Live account to log in and add users? And not be able to sync with a user's offline/cached GAL? These are the things I lose sleep on every night.

scottb
Honored Contributor

Office is not a web browser or social media app. A beta could wreak havoc on Outlook calendars and shared data files. We've had issues with exec's and finance people in the past when some used a pre-release of 2011.

Not to mention, many clients will request this sort of block to avoid inevitable help desk calls and issues with the above.

I don't think the discussion to block these apps is wasteful and if some don't want to discuss or worry, that's awesome too.

Aaron
Contributor II

Argh. First Apple are allowing public betas, and now Microsoft?

Life as a Mac admin gets more interesting every day.

gregneagle
Valued Contributor

It seems to me that if you are giving admin rights to users of the computers you help manage, you've decided they are trustworthy adults.

I'd try sending the users of the computers you help manage a message like "Microsoft has released a preview of Office 2016. We don't recommend that you install it at this time. If you do install it, we can't offer any support for it at this time. We'll be sure to let you know when we are able to support this new version of Office for Mac!"

donmontalvo
Esteemed Contributor III

@boettchs][/url wrote:

They claim you can: Can I run this side by side with Office 2011? Yes, you can use the preview builds of Word, Excel, PowerPoint, and Outlook for Mac alongside Office for Mac 2011. And uninstall by: 1. Go to the Go Menu in your Finder Menu. 2. Go to the Applications Folder. 3. Navigate to the Word, Excel, PowerPoint, Outlook, or OneNote app that you want to delete. 4. Drag the relevant app to your trash. 5. Empty the file from your trash. Now, with 2.5GB of files, is that really "uninstalling"? Nah...

Yea, I'd forget the receipts too.

$ sudo pkgutil --forget com.microsoft.yadayada.pkg

Spinning up a VM to grab a snapshot, hoping Microsoft hired competent/capable developers who created true self contained apps. ;)

Don

--
https://donmontalvo.com

mm2270
Legendary Contributor III

For us the only real app of concern is the new Outlook. I don't necessarily care about the others since they don't interact directly with any of our servers. Outlook could present some problems though. We do intend to put out a message along the lines of "we know about it but please don't install it yet, and if you do you're on your own" but of course we'll get some that will ignore the warnings and go through with it anyway. It's just human nature.

donmontalvo
Esteemed Contributor III

@mm2270 we use SharePoint so the other apps would be a problem too. My Mac is running Adobe/Microsoft/Oracle free, but I don't mind blowing up a VM for this kind of yuk stuff. :)

--
https://donmontalvo.com

chriscollins
Valued Contributor

@mm2270 I have not verified this myself as I am currently running the Outlook 2016 app from office365 on my work machine but I saw lots of folks complaining to one of the MS office devs on Twitter that the version of Outlook included with the preview still requires 365 activation and the dev also said that it IS the same build as the latest non-beta version available to 365 members.

donmontalvo
Esteemed Contributor III

Kudos to Microsoft for drag-install apps, even though they're put into a PKG (why not a DMG?).

After install:

external image link

After launching the apps:

external image link

--
https://donmontalvo.com

scottb
Honored Contributor

Well, @donmontalvo, it also allows for installing single apps if that is wanted/needed.
Or even replacing a bad app. I hope they keep the format the same for the release version.

nessts
Valued Contributor II

@donmontalvo I would assume pkg format for the pre and post install scripts to kill things like web browsers, setup the licensing, hide MAU. I need pkg format anyway because I do not always have JAMF to manage all of my environments and it makes it simpler for me if they are all packages.

donmontalvo
Esteemed Contributor III

Good points, I guess I expected Microsoft to find a better way to keep their apps updated, like Sparkle:

http://en.wikipedia.org/wiki/Sparkle_(software))

MAU weighs in at 1.5 MB, heck they could have embedded this into each of their huge Office 2016 apps. Who would have thought Word 2016 would be 1.49 GB? Wow!

external image link

--
https://donmontalvo.com

gregneagle
Valued Contributor

Don wrote:

"Kudos to Microsoft for drag-install apps, even though they're put into a PKG (why not a DMG?)."

The post-install results tell why -- a drag-n-drop app install would not install the AutoUpdate app, the PrivilegedHelperTool, or the LaunchDaemon.

As for why the apps are so darn huge -- I haven't looked inside the bundles yet, but I expect that each application has a complete copy of what used to be installed as shared files under /Applications/Microsoft Office 2011/Office.

We can't really have it both ways. Vendors of application suites either have to have complex installers to install all the shared files used by the individual components of the suite, or have to duplicate the files many times in order to have "self-contained" applications that can be neatly removed by dragging to the trash.

triding
New Contributor III

@boettchs & @dgreening

You can eliminate the crashing issue but firing up Terminal and entering

defaults delete com.microsoft.Outlook

& then

killall cfprefsd

emily
Valued Contributor III
Valued Contributor III

@triding nice, worked like a charm. Thank you!

scottb
Honored Contributor

@triding - as well - thank you.

As for the installer, this is how it is built:

external image link

emily
Valued Contributor III
Valued Contributor III

I had one person install this today, aside from myself, and somehow the only app that DOES work is Outlook. None of the other ones load. Sweet.