Removing MAS app as Standard User

klaus
New Contributor

Hi all,

Long time lurker first time poster, I'm fairly new here, did my 200 a few months back! 

We use WhatsApp Desktop App on Mac fairly extensively, I was using Installomator to deploy it but had problems with the Helper Tool pop-up so I switched to deploying it via MAS. Now, WhatsApp released a new version which differs from the old one so I need to remove the old one and replace it with the new without too much fuss. I have both available to install on SS but new wont install over old, it just fails. 

Is there someway Standard users can remove MAS apps?

Is there an way to script it to remove old and install new?

Any other solutions?

Thanks.

1 REPLY 1

mschlosser
Contributor

a couple thoughts, before attempting to upgrade the app, you may want to ensure that it is not open, this could be accomplished by using the following command:

osascript -e 'quit app "<NameofApptoClose">'

 After this has ran, the new version could more than likely one pushed to the boxes or installed via self service. If you'd like to remove the app after it was closed you could do so via: 

rm -Rf <pathtoapptoremove>

hope that helps,

M