Posted on 10-19-2018 10:43 AM
Wondering if anyone had a EA that looks to see if the feature to allow non-admin users to install updates is enabled or not. I know its in the ServiceConfig file, I just don't know how to create an EA to read this.
Mac OS: /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml
In the file, locate the <feature> element and set the content of the <enabled> childelement to True or False (Default) to enable or disable Elevated privileges.
<feature>
<name>SelfServeInstalls</name>
<enabled>true</enabled>
</feature>
Solved! Go to Solution.
Posted on 10-19-2018 11:45 AM
Great idea, hadn't thought of an EA to monitor that. Here's something I just threw together, happy to take suggestions of making it cleaner!
#!/bin/sh
if [ ! -f /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml ]; then
echo "<result>Not Installed</result>"
else
adminEnabled=$(cat /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml | sed -ne '/enabled/{s/.*<enabled>(.*)</enabled>.*/1/p;q;}')
echo "<result>$adminEnabled</result>"
fi
Posted on 10-19-2018 01:20 PM
Just a slight modification to my post above, which gets rid of the cat
as it's not necessary for this. This avoids using 2 utilities and a pipe for one command.
/usr/bin/xpath /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml '/config/feature[name="SelfServeInstalls"]/enabled/text()' 2>/dev/null
Posted on 10-19-2018 10:45 AM
I don't use the product, but if you can post an example of what the entire file looks like, we can probably help build a script to grab that info. I just don't know what the rest of the xml(?) looks like so it's hard to know how to script it from the bits in your post.
Posted on 10-19-2018 11:42 AM
Is this what your file looks like?
<config><panel><name>AppsPanel</name><visible>true</visible></panel><feature><name>SelfServeInstalls</name><enabled>true</enabled></feature></config>
Posted on 10-19-2018 11:45 AM
Great idea, hadn't thought of an EA to monitor that. Here's something I just threw together, happy to take suggestions of making it cleaner!
#!/bin/sh
if [ ! -f /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml ]; then
echo "<result>Not Installed</result>"
else
adminEnabled=$(cat /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml | sed -ne '/enabled/{s/.*<enabled>(.*)</enabled>.*/1/p;q;}')
echo "<result>$adminEnabled</result>"
fi
Posted on 10-19-2018 12:08 PM
Something like this, if the data posted above is accurate, should be able to grab just that "enabled" string (true or false)
cat /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml | xpath '/config/feature[name="SelfServeInstalls"]/enabled/text()'
I can't effectively test since I don't have it installed.
Posted on 10-19-2018 01:10 PM
Thanks @kendalljjohnson and @mm2270 I'll give those a go and see what I get. Never ceases to amaze me how awesome this community is. I'll let you know what I get.
@poormatt yeah that is exactly what it looks like
Posted on 10-19-2018 01:20 PM
Just a slight modification to my post above, which gets rid of the cat
as it's not necessary for this. This avoids using 2 utilities and a pipe for one command.
/usr/bin/xpath /Library/Application Support/Adobe/OOBE/Configs/ServiceConfig.xml '/config/feature[name="SelfServeInstalls"]/enabled/text()' 2>/dev/null
Posted on 10-22-2018 01:12 PM
Those both worked! Thanks for the assist.