Welcome policy broken in Yosemite

Contributor II

Or at least parts of it. Quick background: I have a welcome policy that runs once per user. It runs scripts that kill the app store helper, remove and add some dock icons and put Self Service in the dock. In Yosemite it's generating some errors, probably because some things have been changed or moved. Can anybody help me sort it out?

Here is the log for the Welcome policy in Yosemite:

Executing Policy Welcome... Running script Break store helper... Script exit code: 1 Script result: mv: rename /System/Library/PrivateFrameworks/CommerceKit.framework/Resources/store_helper.app/Contents/MacOS/store_helper to /System/Library/PrivateFrameworks/CommerceKit.framework/Resources/store_helper.app/Contents/MacOS/store_helper.backup: No such file or directory Running script Welcome... Script exit code: 1 Script result: 0LSOpenURLsWithRole() failed for the application /Applications/Self Service.app with error -10810.

So the Break Store Helper is supposed to prevent the app store from constantly bugging people about things in the app store. Here is the script for that:

mv /System/Library/PrivateFrameworks/CommerceKit.framework/Resources/store_helper.app/Contents/MacOS/store_helper /System/Library/PrivateFrameworks/CommerceKit.framework/Resources/store_helper.app/Contents/MacOS/store_helper.backup

Based on the error it looks like there is either no more store_helper, or it moved. Does anybody know how to accomplish the same thing in Yosemite? I found a file in the same Resources directory called "appstoreupdateagent", would disabling that or renaming it accomplish the same thing? Or is there a better way to handle this?

The Welcome script is just this:


/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType hud  -title "Welcome to Caesars Entertainment" -heading "Welcome to Caesars Entertainment" -description "To get started, click the button below to launch Self Service. Self Service is a portal to software, links and more." -alignHeading center -button1 "Get Started" -defaultButton 1

if [ $? -eq 0 ]; then
open -a /Applications/Self Service.app

And see above for the error message it generated. What actually happened is that jamfhelper did display the window correctly, but the Get Started button didn't launch Self Service. Running the Open line in the script, on its own in Terminal, did work to open Self Service.