Posted on 11-26-2021 02:16 AM
Hi there, need assistance in scripting as have modified a script to download the creative cloud cleaner tool to /tmp/ and to run then delete after it has run. I am wanting this to run before the installer will run the Latest version of Adobe products as there are some Macs with two versions already installed:
#!/bin/sh
VendorDMG="AdobeCreativeCloudCleanerTool.dmg"
curl https://swupmf.adobe.com/webfeed/CleanerTool/mac/$VendorDMG -o /tmp/$VendorDMG
# Mount the DMG Installer file
hdiutil attach /tmp/$VendorDMG -nobrowse
#Copy App to tmp
sudo cp -pPR /Volumes/CleanerTool/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app /tmp/
#Run creative tool app
echo "Running the CC Cleaner app with 'removeAll=All' option"
/tmp/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app/Contents/MacOS/Adobe\ Creative\ Cloud\ Cleaner\ Tool --removeAll=All --eulaAccepted=1
#delete app
sudo rm -rf /tmp/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app
# Unmount the DMG Installer file
hdiutil detach -force /volumes/cleanerTool
# Delete the DMG Installer file
rm -f /tmp/$VendorDMG
My problem I'm having is that it fails to run the below at the loginwindow:
"/tmp/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app/Contents/MacOS/Adobe\ Creative\ Cloud\ Cleaner\ Tool --removeAll=All --eulaAccepted=1"
The error I get is see below:
Adobe Creative Cloud Cleaner Tool[4440:45981] Console user name found to be loginwindow, Exiting CT with ERROR_CT_INVALID_CONSOLE_USERNAME Exception
"disk3" ejected.
Any scripting assistance would be greatly received to get the creative cloud cleaner tool to work at login window if possible.
Posted on 11-28-2021 09:29 AM
This is a limitation of this version of the Cleaner Tool. Create a temporary user, log in as that, run your script above, log out, delete the temporary user. It'd be nice if more vendors recognized that utilities deployed at fleet scale should work from the loginwindow ("headless").