Airserver Deployment and Preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
06-12-2020
10:00 AM
- last edited on
03-04-2025
08:19 AM
by
kh-richa_mig
Just sharing basic methods for getting AirServer deployed that I ran into today...
1. Download the latest DMG from AirServer
2. Open the DMG and accept the EULA, then drag the App to your Applications folder (don't open it yet)
3. Drag the App in your Applications folder to Composer, which will make a new package and show the App there.
4. On the new package under Composer, open the expander arrow and right-click Scripts > Add Shell Script > PostInstall
5. Your shell script should have something like the following:
#!/bin/sh
## postinstall
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
LICENSE="xxxxxxx"
LICENSECOMMAND="/Applications/AirServer.app/Contents/MacOS/AirServer --activate"
#Check if AirServer is installed
if [ -e /Applications/AirServer.app/ ]; then
#Add license, store output to LOG variable
LOG="$( eval $LICENSECOMMAND $LICENSE )"
echo $LOG
#Launch
open /Applications/AirServer.app
fi
6. Make the .pkg file with the App and the Script, upload to Admin and deploy via policy
7. Once the settings are good, you can find the current preference file under /Users/x/Library/Preferences/com.pratikkumar.airserver-mac.plist, copy this to a workable location
8. Convert this file to xml with
'plutil -convert xml1 com.pratikkumar.airserver-mac.plist'
9. Edit down to just the preferences you need, mine ended up being only
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SUEnableAutomaticChecks</key>
<false/>
<key>autoLaunch</key>
<true/>
<key>com.airserverapp.AutoCheckForUpdates</key>
<false/>
<key>com.airserverapp.PasswordType</key>
<string>Ask me</string>
</dict>
</plist>
10. Then upload that to a new configuration profile with the preference domain of 'com.pratikkumar.airserver-mac', and deploy
A couple of notes--
- I'm not an expert, so there may be mistakes here
- The preference configuration profile didn't take until after AirServer was restarted
- Don't forget to actually put your license into the postinstall script where it says "xxxx"
- Labels:
-
Configuration Profiles
-
Jamf Pro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 06-14-2020 09:52 AM
You can also use ProfileCreator for your AirServer preferences. AirServer is an available option.
