If you happen to have a more strict environment that doesn't allow anyone to be local admin, then you probably don't need to deal with anything like this, but for those of us that aren't in that position, being able to do proper version checking and not rolling someone back to a previous release is important. ![]() Yeah, admin users being able to install what they want throws wrenches into the works. Local i currentVersion=($1) localVersion=($2) # N/A = Local app was not found at provided pathĪPP_PATH="/Applications/Adobe Acrobat DC/Adobe Acrobat.app"ĪPP_VERSION_KEY="CFBundleShortVersionString" # F = Local app version is less than provided current version # N = Local app version is newer than provided current version # T = Local app version is equal to provided current version Will return 'F' if Adobe Acrobat DC is less than 15.010.20056, 'T' if the version equals 15.010.20056, and 'N' if the version is more than 15.010.20056. track the version you're targeting within the extension attribute. Not sure if this helps at all, have used a similar technique to not overwrite newer versions before. If parse_version(app_target_version) = parse_version(app_version):Įlif parse_version(app_target_version) %s' % result Version is greater than target version, and N/A if the plist is not found.Īpp_plist_path = app_path + "/Contents/ist"Īpp_info_plist = plistlib.readPlist(app_plist_path)Īpp_version = app_info_plist Local app version is less than target version, N if the local app Reports T if the local app version is equal to target version, F if the ![]() N/A = Local app plist was not found at provided pathĪPP_PATH = "/Applications/Adobe Acrobat DC/Adobe Acrobat.app"ĪPP_VERSION_KEY = "CFBundleShortVersionString"ĭef get_version_check_result(app_path, app_version_key, app_target_version): N = Local app version is newer than provided current versionį = Local app version is less than provided current version T = Local app version is equal to provided current version This script checks whether the installed version of Adobe Acrobat DC isĮqual, less, or more than the target version defined by APP_TARGET_VERSIONĪnd reports the result in Casper Suite extension attribute style. More python-ey way of doing the same thing as the script above.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |