Skip to main content

Hey All,



This year Autodesk decided to change the installer for AutoCAD, Maya and Mudbox. Here's how I got AutoCAD to install silently since the new silent installer option is broken. You will want a policy to copy the app from the dmg to a temp directory. I used /tmp



EDIT: You only want to change the license server address in the script below. Nothing else.



#!/bin/sh

year="2021"
pkgpath="/tmp/Install Autodesk AutoCAD ${year} for Mac.app"
pkgPath1="/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/lib.pkg"
pkgPath2="/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/Packages/Licensing/AdskLicensing-10.1.0.3194-mac-installer.pkg"
pkgPath4="/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/licreg.pkg"
pkgPath5="/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/autocad2021.pkg"
pKey="777M1"
networkServer="LICENSE SERVER ADDRESS"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /

}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi
/usr/bin/touch "${licPath}/${lgsFile}"
/bin/chmod 777 "${licPath}/${lgsFile}"
/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
/bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
/bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
/Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
createLicenseFiles
licenceHelper
cleanUp

@cbrewer so for Maya and Mudbox I just need to use the script in the opening post but with "AutoCAD" replaced with "Maya" or "Mudbox" as appropriate and the year and pkey variables changed as appropriate, is that correct? EDIT: oh and I guess I need to modify pkgpath5 too? EDIT 2: actually it looks like I basically need to look at the Maya XML manifests and plug in the pkg paths in sequence as required, the layout seems considerably different from what's mentioned in the OP for AutoCAD.


Following on from my previous post, I've had some success with the following scripts, modified from the one in the opening post.



For Maya 2022:



#!/bin/sh

year="2022"
pkgpath="/tmp/Install Maya ${year}.app"
helperpath="${pkgpath}/Contents/Helper"
pkgPath1="${helperpath}/Packages/Licensing/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Maya/Maya_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Maya/Maya_core2022.pkg"
pkgPath5="${helperpath}/Packages/Maya/MtoA.pkg"
pkgPath6="${helperpath}/Packages/Maya/bifrost.pkg"
pkgPath7="${helperpath}/Packages/Maya/MayaUSD.pkg"
pkgPath8="${helperpath}/Packages/Maya/SubstanceInMaya-2.1.9-2022-Darwin.pkg"
pkgPath9="${helperpath}/Packages/Maya/motion-library.maya2022-2.0.0.pkg"
PkgPathA="${helperpath}/Packages/Maya/Pymel2022.pkg"
pKey="YOUR MAYA PRODUCT KEY HERE"
networkServer="YOUR LICENSE SERVER NAME HERE"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /
/usr/sbin/installer -verboseR -pkg "${pkgPathA}" -target /

}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi
/usr/bin/touch "${licPath}/${lgsFile}"
/bin/chmod 777 "${licPath}/${lgsFile}"
/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
/bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
/bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
/Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
createLicenseFiles
licenceHelper
cleanUp


For Mudbox 2022:



#!/bin/sh

year="2022"
pkgpath="/tmp/Install Mudbox ${year}.app"
helperpath="${pkgpath}/Contents"
pkgPath1="${helperpath}/Packages/ADLM/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/ADLM/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Mudbox/Mudbox_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Mudbox/Mudbox_core2022.pkg"
pKey="YOUR MUDBOX PRODUCT KEY HERE"
networkServer="YOUR LICENSE SERVER NAME HERE"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /
}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi
/usr/bin/touch "${licPath}/${lgsFile}"
/bin/chmod 777 "${licPath}/${lgsFile}"
/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
/bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
/bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
/Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
createLicenseFiles
licenceHelper
cleanUp

Been trying script by Onkston with Autodesk 2022 with a script updated as appropriate... (year=2022, AdskLicensing-11.0.0.4854-mac-installer.pkg, etc...). All seems to run fine but at the end get this:



installer: The install was successful.
connecting to Service failed: reading configuration file /Library/Application Support/Autodesk/AdskLicensingService/AdskLicensingService.data failed: open /Library/Application Support/Autodesk/AdskLicensingService/AdskLicensingService.data: no such file or directory


AdskLicensingService.data is indeed not being create. When manually installing this file is created as well as this file: AdskLicensingService.sds



When trying to run AutoCAD it tries to open but then soon crashes.
Any suggestions welcome. Much appreciated!


Update to my previous post... nevermind the AdskLicensingService.data not being created. It works fine on a clean machine... it just wasn't working on my test computer with multiple install attempts.



AutoCAD 2022, however, still will not run. Manually installing works just fine. Not sure what is missing. I'll comb the logs.



BTW - this is on Big Sur 11.3.1


@tcaldana I am seeing the same thing when trying to install 2022 using the individual packages.


For those interested, I was able to successfully install AutoCAD 2022.



I dump my temporary install files in /usr/local/etc/JamfInstallers/{PRODUCTNAME} so feel free to modify this path to suit your needs.



I created a PKG in composer that dumps the "Install Autodesk AutoCAD 2022 for Mac.app" file from the vendor-supplied DMG into that path.



Here's my script (modified from above posts):



#!/bin/sh

year="2022"
pkgpath="/usr/local/etc/JamfInstallers/AutoCAD_2022/Install Autodesk AutoCAD ${year} for Mac.app"
pkgPath1="/usr/local/etc/JamfInstallers/AutoCAD_2022/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/lib.pkg"
pkgPath2="/usr/local/etc/JamfInstallers/AutoCAD_2022/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="/usr/local/etc/JamfInstallers/AutoCAD_2022/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/Packages/Licensing/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath4="/usr/local/etc/JamfInstallers/AutoCAD_2022/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/LicregTool/licreg.pkg"
pkgPath5="/usr/local/etc/JamfInstallers/AutoCAD_2022/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/autocad2022.pkg"
pKey="777N1"
networkServer="YOUR.NETWORK.LICENSE.SERVER.HERE"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /

}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi
/usr/bin/touch "${licPath}/${lgsFile}"
/bin/chmod 777 "${licPath}/${lgsFile}"
/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
/bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
/bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
/Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
createLicenseFiles
licenceHelper
cleanUp


Additionally, I have a second package in there consisting of "AutoCAD_Mac_2022.1_Update_Combo.pkg" from the 2022.1 combo update downloaded through the "Check for updates" menu item in the product. This is set to "Cache" so that it goes into the waiting room folder.



Then I call an execute command action (under files and processes) in my policy which is the last thing to run, that installs this combo update over top of the base product:



/usr/sbin/installer -pkg /Library/Application Support/JAMF/Waiting Room/AutoCAD_Mac_2022.1_Update_Combo.pkg -target /

@pitcherj Are you positive AutoCAD 2022 opens and you can start a drawing project after deploying with that method (individual packages)?



What I am finding is that it will install successfully, but it's not actually usable. The only way I end up with a usable install is by calling Setup with the --silent switch. The downside of that method is that a user has to be logged in.



I also think that manually creating a licpath.lic is no longer needed as AdskLicensingInstHelper takes care of the licensing. But I could be wrong on that.


@cbrewer



Yup, worked on a separate machine too.



Once I finish the first round of testing I'll rebuild the machine and test again.



Also noticed the lgs file is apparently no longer needed either?


First, I want to thank @DanJ_LRSFC for the Maya 2022 script. It works 98%, however, I did notice one small error installing Pymel2022.pkg -- you declared it as variable "PkgPathA" but try to install it with variable "pkgPathA" and it craps out because of the difference in the capital P vs. lowercase P.



Also, it isn't deleting the *.app file from /tmp because you declared variable "pkgpath" but then call "pkgPath" in the cleanUp function.



I have verified that after fixing both of those issues, Maya 2022 installs perfectly, licenses itself, and deletes the *.app from /tmp after finishing the installation.


Just wanted to confirm @cbrewer modified script and workflow by @pitcherj is working great. Only change I made is that I used /tmp instead of /usr/local/etc/JamfInstallers/AutoCAD_2022



Initially AutoCAD installed fine but was crashing after a couple minutes. Applying the 2022.1 update fixed all that. Appreciate learning and applying the Cache/Waiting room technique to install that.



Thanks all!


@Onkston Have you had much luck automating the installation of AutoCAD 2022? If so, was it on a system that previously had AutoCAD 2021 installed?


@cbrewer I'm also having trouble MacGyvering an automated, unattended, non-logged-in installation of AutoCAD 2022. Have you had any luck? Since others in this thread have reported success, I'm starting to think my issues might be related to a previous installation of AutoCAD 2021. I suspect I've removed every trace of it, but maybe not...? Any data you can offer would be much appreciated.


Following on from my previous post, I've had some success with the following scripts, modified from the one in the opening post.



For Maya 2022:



#!/bin/sh

year="2022"
pkgpath="/tmp/Install Maya ${year}.app"
helperpath="${pkgpath}/Contents/Helper"
pkgPath1="${helperpath}/Packages/Licensing/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Maya/Maya_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Maya/Maya_core2022.pkg"
pkgPath5="${helperpath}/Packages/Maya/MtoA.pkg"
pkgPath6="${helperpath}/Packages/Maya/bifrost.pkg"
pkgPath7="${helperpath}/Packages/Maya/MayaUSD.pkg"
pkgPath8="${helperpath}/Packages/Maya/SubstanceInMaya-2.1.9-2022-Darwin.pkg"
pkgPath9="${helperpath}/Packages/Maya/motion-library.maya2022-2.0.0.pkg"
PkgPathA="${helperpath}/Packages/Maya/Pymel2022.pkg"
pKey="YOUR MAYA PRODUCT KEY HERE"
networkServer="YOUR LICENSE SERVER NAME HERE"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /
/usr/sbin/installer -verboseR -pkg "${pkgPathA}" -target /

}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi
/usr/bin/touch "${licPath}/${lgsFile}"
/bin/chmod 777 "${licPath}/${lgsFile}"
/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
/bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
/bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
/Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
createLicenseFiles
licenceHelper
cleanUp


For Mudbox 2022:



#!/bin/sh

year="2022"
pkgpath="/tmp/Install Mudbox ${year}.app"
helperpath="${pkgpath}/Contents"
pkgPath1="${helperpath}/Packages/ADLM/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/ADLM/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Mudbox/Mudbox_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Mudbox/Mudbox_core2022.pkg"
pKey="YOUR MUDBOX PRODUCT KEY HERE"
networkServer="YOUR LICENSE SERVER NAME HERE"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /
}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi
/usr/bin/touch "${licPath}/${lgsFile}"
/bin/chmod 777 "${licPath}/${lgsFile}"
/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
/bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
/bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
/Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
createLicenseFiles
licenceHelper
cleanUp


Thanks for these, they were a good starting point but I found a few issues

  • in the license helper function you need to escape the space in 'Application Support' (or quote it), this was causing the function to fail and the software not to license
  • LICPATH.lic should be licpath.lic in lower case
  • LGS.data doesn't seem to be used any more (at least it's not created when manually licensing)
  • in the licFile there's a space after the final zero and no trailing newline in order to match the format fully that is used when manually licensing

As such my final scripts were as follows:

 

Maya 2022

#!/bin/sh

year="2022"
pkgpath="/tmp/Install Maya ${year}.app"
pKey="657N1"
networkServer="server"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="licpath.lic"

helperpath="${pkgpath}/Contents/Helper"
pkgPath1="${helperpath}/Packages/Licensing/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Maya/Maya_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Maya/Maya_core2022.pkg"
pkgPath5="${helperpath}/Packages/Maya/MtoA.pkg"
pkgPath6="${helperpath}/Packages/Maya/bifrost.pkg"
pkgPath7="${helperpath}/Packages/Maya/MayaUSD.pkg"
pkgPath8="${helperpath}/Packages/Maya/SubstanceInMaya-2.1.9-2022-Darwin.pkg"
pkgPath9="${helperpath}/Packages/Maya/motion-library.maya2022-2.0.0.pkg"
PkgPathA="${helperpath}/Packages/Maya/Pymel2022.pkg"

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 /
/usr/sbin/installer -verboseR -pkg "${pkgPathA}" -target /

}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi

/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000 " > "${licPath}/${licFile}"
/bin/echo "USE_SERVER\\c" >> "${licPath}/${licFile}"
}

runInstaller
createLicenseFiles
/Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
/bin/rm -rf "${pkgPath}"

Mudbox 2022

 

#!/bin/sh

year="2022"
pkgpath="/tmp/Install Mudbox ${year}.app"
pKey="498N1"
networkServer="server"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="licpath.lic"

helperpath="${pkgpath}/Contents"
pkgPath1="${helperpath}/Packages/ADLM/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/ADLM/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Mudbox/Mudbox_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Mudbox/Mudbox_core2022.pkg"

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 /
}

createLicenseFiles ()
{
if [[ ! -e "${licPath}" ]];
then
/bin/mkdir "${licPath}"
fi

/usr/bin/touch "${licPath}/${licFile}"
/bin/chmod 777 "${licPath}/${licFile}"
/bin/echo "SERVER ${networkServer} 000000000000 " > "${licPath}/${licFile}"
/bin/echo "USE_SERVER\\c" >> "${licPath}/${licFile}"
}

runInstaller
createLicenseFiles
/Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
/bin/rm -rf "${pkgPath}"

 


@pitcherj 

Using your variation on the script (and modifying ones above) and keep running into the issue that the app appears to install fine, the network license is seen and is working, but once the applications is running and starting a template crashes the app. Is anyone else seeing this?

Manually installing does not have this result.

 


@pitcherj 

Using your variation on the script (and modifying ones above) and keep running into the issue that the app appears to install fine, the network license is seen and is working, but once the applications is running and starting a template crashes the app. Is anyone else seeing this?

Manually installing does not have this result.

 


What happens if you install the latest hotfix?


What happens if you install the latest hotfix?


Running the hot fix claims that we are running the latest version. Pulled the App out of the pkg and replaced the app in the applications folder and still get the same crashes. Tried on Catalina and Big Sur.


Just weighing in for others. As we have a bunch of Macbooks within our institution, I had to package up the 2022 standalone versions for CAD and Maya.
I used the script proposed above by others but found the license section wasn't flawless. I suspect it's because spaces weren't escaped (I'm looking at you "Application\\ Support").

When problem solving why licensing wasn't working, I tinkered a fair bit (adding "", sudo, \\ etc) . Actually wasn't sure if /.config was even there but it was hidden (as .folders are...) .

But yeah, as I used the above scripts, I thought I'd show my CAD and Maya standalone 2022 corrections and share my experience getting it working.

#!/bin/sh
year="2022"
pkgpath="/private/tmp/Install Autodesk AutoCAD ${year} for Mac.app"
pkgPath1="/private/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/lib.pkg"
pkgPath2="/private/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="/private/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/Packages/Licensing/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath4="/private/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/LicregTool/licreg.pkg"
pkgPath5="/private/tmp/Install Autodesk AutoCAD ${year} for Mac.app/Contents/Helper/ObjToInstall/autocad2022.pkg"
pKey="XXXXX"
sn="XXX-XXXXXXXX"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 /

}

licenceHelper ()
{
#/Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper register --pk "${pKey}" --pv "${year}.0.0.F" --lm STANDALONE --sn "${sn}" --cf /Library/Application Support/Autodesk/Adlm/.config/ProductInformation.Pit -el US
sudo /Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper register --pk "XXXXX" --pv "2022.0.0.F" --lm STANDALONE --sn "XXX-XXXXXXX" --cf /Library/Application\\ Support/Autodesk/Adlm/.config/ProductInformation.Pit -el US
}

cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
licenceHelper
cleanUp


And for Maya, I found that the Autodesk build couldn't install MtoA (Arnold renderer). Don't know why it was failing but MacOS version was 11.5.X.
Excluded that line from the installer and went to their website. Using Composer, I dumped the PKG next to the Maya installer in /tmp and ran it from there in the order previously described.
Apologies for not having done the housekeeping to tidy it up, but I consider it useful to see what has been removed.

#!/bin/sh

year="2022"
pkgpath="/tmp/Install Maya ${year}.app"
helperpath="${pkgpath}/Contents/Helper"
pkgPath1="${helperpath}/Packages/Licensing/AdskLicensing-11.0.0.4854-mac-installer.pkg"
pkgPath2="${helperpath}/Packages/AdSSO/AdSSO-v2.pkg"
pkgPath3="${helperpath}/Packages/Maya/Maya_AdLMconf2022.pkg"
pkgPath4="${helperpath}/Packages/Maya/Maya_core2022.pkg"
#pkgPath5="${helperpath}/Packages/Maya/MtoA.pkg"
pkgPath6="${helperpath}/Packages/Maya/bifrost.pkg"
pkgPath7="${helperpath}/Packages/Maya/MayaUSD.pkg"
pkgPath8="${helperpath}/Packages/Maya/SubstanceInMaya-2.1.9-2022-Darwin.pkg"
pkgPath9="${helperpath}/Packages/Maya/motion-library.maya2022-2.0.0.pkg"
PkgPathA="${helperpath}/Packages/Maya/Pymel2022.pkg"
pKey="XXXXX"
networkServer="YOUR LICENSE SERVER NAME HERE"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${pKey}_${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

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 "/private/tmp/MtoA-4.2.4-darwin-2022.pkg" -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 /
/usr/sbin/installer -verboseR -pkg "${pkgPathA}" -target /

}

#createLicenseFiles ()
#{
# if [[ ! -e "${licPath}" ]];
# then
# /bin/mkdir "${licPath}"
# fi
# /usr/bin/touch "${licPath}/${lgsFile}"
# /bin/chmod 777 "${licPath}/${lgsFile}"
# /usr/bin/touch "${licPath}/${licFile}"
#/bin/chmod 777 "${licPath}/${licFile}"
# /bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
# /bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
# /bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
#}
licenceHelper ()
{
sudo /Library/Application\\ Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper register --pk "XXXXX" --pv "2022.0.0.F" --lm STANDALONE --sn "XXX-XXXXXX" --cf /Library/Application\\ Support/Autodesk/ADLM/PIT/2022/MayaConfig.pit -el US
}
cleanUp ()
{
/bin/rm -rf "${pkgPath}"
}

#Run script

runInstaller
#createLicenseFiles
licenceHelper
cleanUp



 


Thanks @Qwheel, the updated script seems to be working. 

One issue I'm having is during the standalone activation. It is prompting the user to login, then associate an account to the license. Is there a way around this step?


Thanks @Qwheel, the updated script seems to be working. 

One issue I'm having is during the standalone activation. It is prompting the user to login, then associate an account to the license. Is there a way around this step?


Don’t think so. You do it once on one machine, where it checks in against Autodesk server, then it skips the user step on every other device.
They just have to click ‘Activate’ and they’re away…

Get Outlook for iOS
-- Please click here to view our e-mail disclaimer http://www.aru.ac.uk/email-disclaimer

Thanks. I can confirm that is the case after the first installation.


@jbisgett @Qwheel @pitcherj Im seeing this work correctly however one message I'm getting is this "Error (13) for adlmPITSetProductInformation_2: PRODUCTS information is not found"  This seems to be that last line which I'm not sure what thats really doing.

 

--cf /Library/Application\\ Support/Autodesk/Adlm/.config/ProductInformation.Pit -el US

 

 Also just an FYI the AdskLicensing version has changed so on 2022 installer it needs to be 

 

Contents/Helper/Packages/Licensing/AdskLicensing-11.1.0.5629-mac-installer.pkg​

 


@Qwheel @pitcherj @jbisgett Also it looks like the remove command is not working as well as the installer is getting left behind, but perhaps that is due to the earlier error.

I just added a 2nd script to run the removal of the installer after the first script and that is working normally.


@Qwheel @pitcherj @jbisgett Also it looks like the remove command is not working as well as the installer is getting left behind, but perhaps that is due to the earlier error.

I just added a 2nd script to run the removal of the installer after the first script and that is working normally.


Well 2023 came out and I cant get it working at all.

 

After changing the script to the new version info I keep getting the message:

One or more critical files are missing. This can happen when AutoCAD is moved to other disk.


Well 2023 came out and I cant get it working at all.

 

After changing the script to the new version info I keep getting the message:

One or more critical files are missing. This can happen when AutoCAD is moved to other disk.


Thanks for the heads up!


Thanks for the heads up!


IM considering going back to capturing the whole **bleep** install with composer again.  Then running the licensing line of code.


Reply