I need to deploy Cisco anyconnect VPN client on MAC endpoints, however post installation, it gives prompt to end user to allow the app from system preferences.
I want to bypass this step so that post deployment end user does not have to go to system pref to allow the app
Xattr command i am using is
sudo xattr -d -r com.apple.quarantine /Users/username/Downloads/AnyConnectClient
where the AnyConnectClient is a folder where the anyconnect.dmg file resides
However, the command is not working for me. post installation, it still asks for user to allow the app from system preferences
Does xattr work on .dmg file?
Do i need to install the app first then run the command and then give path to some app system file?
If so, how do it create package of the installer which is free of this restriction?