* Fixed the script so that it _actually_ works now...
* Been meaning to do this for ages, just have had higher priority items to deal with
* This script is actually used on my AutoPkg Recipe `com.github.mlbz521.pkg.MicrosoftOfficeResetOptions`
This script is now used in an AutoPkg recipe.
The recipe builds a pkg and uses this script as a postinstall script to provide a similar functionality as the previous revision.
This change will allow for quicker and easier support for updates to the Office Reset utility.
+ Fixed issue where subprocess was returning bytes-like objects instead of string objects
+ Fixed incorrect argument check in an if statement
+ Switched to requests
+ Minor logic improvements
AutoCAD patches will not install from command line, only via GUI. This because they have a script that runs on launch of the .pkg (via GUI) that locates the base .app that needs to be upgraded, and then creates a symlink to that .app in /tmp.
This updated "fixes" this issue with the usual trickery.
+ Added a check to verify and create the `licenses` folder if it doesn't exist -- popped up with R2021a
+ Setting file permissions
+ Updated style and other improvements
+ Fixed the `sdkmanager --install` logic
+ Verifying if `sdkmanager --install` & `sdkmanager --update` are successful
+ Adjusted case-sensing logic for some passed parameters
+ Added a "default" LaunchAgent label value in case one is not passed
+ Updated to include "ongoing maintenance" functionality
+ Configured to pass parameters to the script instead of being included in the install .pkg (e.g. in a Jamf Pro environment)
+ Will now agree to licenses
+ Ability to install SDK components
+ Ability to update already installed SDK components
+ Fixed one if comparison statement
+ Adding a tag to track if device is running Mojave, this will be used, with additional logic, to prevent devices that upgrade from Mojave -> Big Sur from auto-upgrading its Falcon Sensor
+ Switched osascript calls to use System Events and passing via heredoc
+ Added "instance" variable for use to designate "prod" vs "dev" instances
- Removed the `Reset` action option -- provides duplicate functionality as just passing `production` as a group
+ Fixed some bugs due to the order of logic
+ Fixed some stderr issues to properly collect now
+ Added a catch to not error out incase a maintenance token is applied
+ Added support to re-run the script without erasing current sensor version test group tag, this for in instances where the script is not run via Self Service and a forced group is not used
+ Added new action option to force reset the sensor version test group tag
+ Added error dialog boxes to user with ran via Self Service
+ Updated exit code values
+ Updated logic for local license to utilize new licensing method....guess I failed to test this previously?
+ Tweaked method for "removing" local license if network license is used