Just be going though the process of updating our Autodesk apps for 2026. its not a script I have written but I have updated for Maya & Mudbox 2026. I found on her somewhere.
Thought it was sharing to help other as a starting point.
#!/bin/bash
#Copy installer app from .dmg to /tmp
#Modify values below as necessary (Usually: year and pKey)
#Set variables
year="2026"
pkgPath1="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Maya/MayaUSD.pkg"
pkgPath2="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Maya/Maya_AdLMconf2026.pkg"
#pkgPath3="/private/tmp/InstallMaya2024.app/Contents/Helper/Packages/Licensing/adskflexnetserverIPV6.pkg"
pkgPath4="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Licensing/AdskLicensing-15.1.0.12339-mac-installer.pkg"
pkgPath5="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Maya/Maya_core2026.pkg"
pkgPath6="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Maya/bifrost.pkg"
pkgPath7="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Maya/MtoA.pkg"
pkgPath8="/private/tmp/InstallMaya2026.app/Contents/Helper/Packages/Maya/AdobeSubstance3DforMaya-3.0.4-2026-mac-universal.pkg"
mayapKey="657R1"
networkServer="yourlicense server here"
mayalicPath="/Library/Application Support/Autodesk/AdskLicensingService/${mayapKey}_${year}.0.0.F"
mayalicFile="LICPATH.lic"
mayalgsFile="LGS.data"
#Mudbox
pkgPath9="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Licensing/AdskLicensing-15.1.0.12339-mac-installer.pkg"
pkgPath10="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Licensing/adskflexnetserverIPV6.pkg"
pkgPath11="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Mudbox/Mudbox_AdLMconf2026.pkg"
pkgPath12="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Mudbox/Mudbox_core2026.pkg"
mudboxpKey="498R1"
mudboxlicPath="/Library/Application Support/Autodesk/AdskLicensingService/${mudboxpKey}_${year}.0.0.F"
mudboxlicFile="LICPATH.lic"
mudboxlgsFile="LGS.data"
#Declare functions
# Check if licensing service is running
checkLicensingService ()
{
launchctl unload /Library/LaunchDaemons/com.autodesk.AdskLicensingService.plist
sleep 15
launchctl load -w /Library/LaunchDaemons/com.autodesk.AdskLicensingService.plist
sleep 15
#Give it time to start
if ! launchctl list | grep "com.autodesk.AdskLicensingService" > /dev/null;
then echo "license start failer"
fi
}
# Call the function before running installers checkLicensingService
runInstaller ()
{
/usr/sbin/installer -verboseR -pkg "${pkgPath1}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath2}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath3}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath4}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath5}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath6}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath7}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath8}" -target /
/usr/sbin/installer -verboseR -pkg "${pkgPath9}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath10}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath11}" -target / #Mudbox
/usr/sbin/installer -verboseR -pkg "${pkgPath12}" -target / #Mudbox
}
createMayaLicenseFiles ()
{
if [ ! -e "${mayalicPath}" ]];
then
/bin/mkdir "${mayalicPath}"
fi
/usr/bin/touch "${mayalicPath}/${mayalgsFile}"
/bin/chmod 777 "${mayalicPath}/${mayalgsFile}"
/usr/bin/touch "${mayalicPath}/${mayalicFile}"
/bin/chmod 777 "${mayalicPath}/${mayalicFile}"
/bin/echo "SERVER ${networkServer} 27000" > "${mayalicPath}/${mayalicFile}"
/bin/echo "USE_SERVER" >> "${mayalicPath}/${mayalicFile}"
/bin/echo "_NETWORK" >> "${mayalicPath}/${mayalgsFile}"
}
createMudboxLicenseFiles ()
{
if [ ! -e "${mudboxlicPath}" ]];
then
/bin/mkdir "${mudboxlicPath}"
fi
/usr/bin/touch "${mudboxlicPath}/${mudboxlgsFile}"
/bin/chmod 777 "${mudboxlicPath}/${mudboxlgsFile}"
/usr/bin/touch "${mudboxlicPath}/${mudboxlicFile}"
/bin/chmod 777 "${mudboxlicPath}/${mudboxlicFile}"
/bin/echo "SERVER ${networkServer} 27000" > "${mudboxlicPath}/${mudboxlicFile}"
/bin/echo "USE_SERVER" >> "${mudboxlicPath}/${mudboxlicFile}"
/bin/echo "_NETWORK" >> "${mudboxlicPath}/${mudboxlgsFile}"
}
MayalicenceHelper ()
{
/Library/Application\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper register --pk "657R1" --pv "2026.0.0.F" --cf /Library/Application\ Support/Autodesk/Adlm/PIT/2026/MayaConfig.pit --lm NETWORK --ls "yourlicense server here"
}
MudboxlicenceHelper ()
{
/Library/Application\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper register --pk "498R1" --pv "2026.0.0.F" --cf /Library/Application\ Support/Autodesk/Adlm/PIT/2026/MudboxConfig.pit --lm NETWORK --ls "yourlicense server here"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
/bin/rm -rf "${tmpfile}"
}
Checklicense ()
{ if /Library/Application\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper list
then
echo "Autodesk install complete"
fi
}
#Run script
runInstaller
checkLicensingService
createMayaLicenseFiles
createMudboxLicenseFiles
MayalicenceHelper
MudboxlicenceHelper
Checklicense
cleanUp