Wrong slash at the front too. rm -r /Applications/NWEA Lockdown Browser.app
For bonus points, put this in a script that checks to see if the App is there before its deleted. Then you can log whether or not any action was taken.
#!/bin/bash
if [ -d /Applications/NWEA Lockdown Browser.app/ ];then
rm -r /Applications/NWEA Lockdown Browser.app/
echo "Removed NWEA Lockdown Browser"
else
echo "NWEA Lockdown Browser not found"
fi
Thank You all for seeing my errors, I am by no means a scripter. @cbrewer, that worked awesomely. I did not know I needed at the end of the application before the spaces. Is this so the space is recognized?
ow I need ot push out the newest NWEA exam v 4.0.0... but I assume that I can take the policy and increase the priority and the removal of one NWEA app, then install the newest version labeled NWEA Lockdown Browser 4.0.0.
will this work?
by the sounds, it will but I am not sure.
I was able to run the package, and the removal script in one policy with great success.
Thanks all
Script above still works if you're removing the older 3.0 versions. App name has changed in 4.0.
To clarify rhoopers post, you can put the package and script in the same policy, it will remove the old one and then install the new one. I don't know if its 100% necessary, but we have the script set to run Before. Good testing!