Skip to content

Instantly share code, notes, and snippets.

@jeremy4971
Last active January 6, 2024 10:30
Show Gist options
  • Save jeremy4971/d4f99625824242419ab2fa128d39eb41 to your computer and use it in GitHub Desktop.
Save jeremy4971/d4f99625824242419ab2fa128d39eb41 to your computer and use it in GitHub Desktop.
#!/bin/sh
###
#
# Created : 2022-08-30
# Last Modified : 2022-11-19
# Version : 1.01
# Tested with : macOS 12.6 / macOS 13.0
#
###
# Antidote activation
cleActivation="F0" # Keep F0
compagnie="XXX"
noDeSerie="XXX-XXX-XXX-XXX-A11"
nom="XXX"
prenom="XXX"
# Quota code
# You can't use the plain-text quota code. You have to use an encoded one.
# To get the encoded quota code, manually install Antidote and activate it on a computer.
# Use the following Terminal command to get the encoded string :
# /usr/libexec/PlistBuddy -c "Print :'enregistrement-11':'codeQuota'" /Library/Preferences/com.druide.Antidote.plist
# Finally, use the string in the codeQuota variable below.
codeQuota="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# Close Antidote 11
sleep 3
killall "Antidote 11"
killall "Connectix 11"
# Delete Antidote 10 if installed
if [ -e "/Applications/Antidote/Antidote 10.app" ]; then
rm -rfv "/Applications/Antidote/Antidote 10.app"
fi
if [ -e "/Applications/Antidote/Connectix 10.app" ]; then
rm -rfv "/Applications/Antidote/Connectix 10.app"
fi
# Register Antidote
defaults write /Library/Preferences/com.druide.Antidote enregistrement-11 -dict cleActivation "$cleActivation" codeQuota "$codeQuota" compagnie "$compagnie" noDeSerie "$noDeSerie" nom "$nom" prenom "$prenom"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment