Get in Touch
Back to main blog page
maya

Deploying Autodesk Maya 2018 with Jamf Pro

19th February 2018 | posted by David Acland | Tags: , , ,

Hi all. I recently had the pleasure of deploying Autodesk Maya 2018 with Jamf Pro for a college in London. We were only there for the day and it was a bit of a late request, so I took it away as a task to work on. As a UK Jamf Support company providing Jamf consultancy services, it is worth us taking the time to get to the bottom of the process, as the skill can then be re-used for all of our customers.

There were a few things we needed to work out:

  • How to get the software installed
  • How to license and activate the software
  • How to suppress the “Autodesk Privacy Statement” popup
  • How to suppress the “Data collection and use” popup
  • How to suppress the “What’s new highlight” popup

This article explains how to complete each of these tasks.  Links to the scripts can be found at the bottom of the page.

 

How to get the software installed

The software is provided as a .app installer that can’t be deployed by Mac management systems like a normal package. Instead you can run a binary file located inside the .app bundle with a --noui option to have it run silently. The steps to install the software were:

  1. Create an installer package that deploys the “Install Maya 2018.app” into /tmp
  2. Add a post-install script with the following code:
#!/bin/sh
/tmp/Install\ Maya\ 2018.app/Contents/MacOS/setup --noui

 

License and activate the software

If you run the software after installing, you are presented with the following screen:

In this particular case, the college had a standalone license key, rather than a license server. To license and activate the software, there were two actions that we needed:

  1. Run the adlmreg binary located inside the Install Maya 2018.app bundle
  2. Create a license file in /Library/Application Support

Below is the code that we used:

#!/bin/sh

/private/tmp/Install\ Maya\ 2018.app/Contents/Resources/adlmreg -i S 657J1 657J1 2018.0.0.F XXX-XXXXXXXX /Library/Application\ Support/Autodesk/Adlm/PIT/2018/MayaConfig.pit

mkdir /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F
touch /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LGS.data
chmod 777 /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LGS.data
echo "_STANDALONE" >> /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LGS.data

Replacing XXX-XXXXXXXX with your actual license code.

This is documented in the Autodesk KB article here: https://knowledge.autodesk.com/support/maya/learn-explore/caas/sfdcarticles/sfdcarticles/command-line-installation-of-Maya-2017-on-Mac.html

While we had the opportunity, we tested a few other scenarios…

What if you run the adlmreg binary without the license file?

As you would expect, the standard licensing screen appeared:

What if you install Maya with the --serial_number, --product_key and --license_type options?

This didn’t appear to have any effect. The licensing screen appeared either way.

What if you create the licensing file, but don’t run adlmreg?

You still have to enter a license key on first run, but the screens are slightly different:

What about the “Serial Number doesn’t exist. Call setSerialNumber” messages?

You may notice that you get a Serial Number doesn't exist. Call setSerialNumber message when you run adlmreg. If you run the command a second time, the message changes to Serial Number exists. Skip registration.

The error didn’t have any impact on the licensing behaviour, and it made no difference if we ran it once or twice.

What should you see when it’s working?

After running the licensing and activation code, launching Autodesk Maya 2018 should display a small activation window for a few seconds:

Followed by the Maya loading splash screen:

 

How to suppress the “Autodesk Privacy Statement” popup

You’ll notice over the next few sections of this article that Autodesk like to scatter config files all over the users home folder, in varying formats. I would like to think there is some logic to their approach, but I’m not aware what it is.

When the software first loads, for each user account, an “Autodesk Privacy Statement” popup is displayed:

This is controlled by an XML file stored in ~/Adlm/AdlmUserSettings.xml. The XML code is:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<AdlmSettings>
<Section Name="PrivacyPolicyConsent">
<Data Key="2018.0.0.F">1</Data>
</Section>
</AdlmSettings>

Having a Section name of PrivacyPolicyConsent, a data key of 2018.0.0.F and a value of 1, will stop this first run message.

To programatically insert this into a users home folder at login, you can use the following code:

#!/bin/sh

mkdir /Users/$USER/Adlm

cat << 'EOF' > "/Users/test/Adlm/AdlmUserSettings.xml"
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<AdlmSettings>
<Section Name="PrivacyPolicyConsent">
<Data Key="2018.0.0.F">1</Data>
</Section>
</AdlmSettings>
EOF

 

How to suppress the “Data collection and use” popup

The next screen that appears per user is a “Data collection and use” message:

There are two keys controlling this in this file: ~/Library/Preferences/com.autodesk.MC3Framework,plist:

  • ADAOptIn
  • ADARePrompted

A Configuration Profile may also be used to control this setting, but given I’m having to run a script at login anyway, I used the defaults command:

defaults write /Users/$USER/Library/Preferences/com.autodesk.MC3Framework ADAOptIn -int 1
defaults write /Users/$USER/Library/Preferences/com.autodesk.MC3Framework ADARePrompted -int 1
defaults write /Users/$USER/Library/Preferences/com.autodesk.MC3Framework OverridedByHKLM -int 0

A couple of other points:

  • You have to set the OverridedByHKLM key as well, otherwise it didn’t work
  • You have specify an integer type -int for the keys as defaults will use a string type if you don’t. I tried this out, and the app crashes on startup.

 

How to suppress the “What’s new highlight” popup

The last popup message is a “What’s new highlight” screen:

This is controlled by a Autodesk config file here: ~/Library/Preferences/Autodesk/maya/2018/prefs/userPrefs.mel. The two important values are:

-iv "displayNewFeatureHighlights" 0 (line 408)
-iv "showHighlightNewFeaturesWindowOnStartup" 0 (line 1294)

Setting displayNewFeatureHighlights to 0 changes the message to:

Setting showHighlightNewFeaturesWindowOnStartup to 0 removes the popup entirely.

There are a few things I found out while experimenting with this file:

– This isn’t in a standard XML file format and is in a non-standard location, and so a configuration profile can’t be used.
– It doesn’t work if you make any changes to the structure of the file. It needs all 1,848 lines, otherwise it breaks

Putting personal feelings about the file format, location and other oddities about the file aside, I opted to put the full code into the file at first login, including the two keys and values that I wanted:

#!/bin/sh

mkdir -p /Users/$USER/Library/Preferences/Autodesk/maya/2018/prefs

cat << 'EOF' > "/Users/$USER/Library/Preferences/Autodesk/maya/2018/prefs/userPrefs.mel"
//Maya Preference 2018 (Release 1)
//
//
keyTangent -global -inTangentType auto -outTangentType auto -weightedTangents false;
animDisplay -refAnimCurvesEditable false;
constructionHistory -tgl on;

optionVar -version 3;
optionVar
-iv "AEpopupWhenCreatingShaders" 1
-iv "CB_IgnoreConfirmDelete" 0
-iv "ChannelBox_ClearSelectionOnObjectSelectionChange" 0
-sv "CreateNurbsCircleCtx" "createNurbsCircleCtx...
... lots of code lines ...
-iv "displayNewFeatureHighlights" 0
... more code ...
-iv "showHighlightNewFeaturesWindowOnStartup" 0
... more code ...
ikSystem -e -sn true -ar false ;

EOF

 

Summary

I hope this helps someone out.  If you need some help deploying Autodesk Maya 2018 with Jamf Pro, or want to get in touch about our UK Jamf Support and Jamf Consultancy services, email us at hello@moof-it.co.uk.

A complete copy of the post-install script can be found here: https://github.com/moofit/public_scripts/blob/master/Autodesk_Installer_Scripts/Autodesk_Maya_2018/scripts/install_and_activate_maya_2018.sh

A complete copy of the first run suppression script script can be found here: https://github.com/moofit/public_scripts/blob/master/Autodesk_Installer_Scripts/Autodesk_Maya_2018/scripts/setup_maya_2018.sh

Don’t forget, if you’re deploying Autodesk Maya 2018 with Jamf Pro, replace $USER with $3 on any login scripts.


7 thoughts on “Deploying Autodesk Maya 2018 with Jamf Pro”

  1. With a licence server, the following postinstall licences both Maya and Mudbox sucessfully. Its a copy/paste from Mudbox as that’s the last one I did, but it works for both:

    /tmp/Install\ Mudbox\ 2018.app/Contents/MacOS/setup –noui –force –serial_number=000-00000000 –product_key=49831 –license_type=kNetwork

    sudo mkdir /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F
    sudo touch /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LGS.data
    sudo touch /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LICPATH.lic
    sudo chmod 777 /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LGS.data
    sudo chmod 777 /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LICPATH.lic

    echo “_NETWORK” >> /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LGS.data
    echo “SERVER {servername} 000000000000” >> /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LICPATH.lic
    echo “USE_SERVER” >> /Library/Application\ Support/Autodesk/CLM/LGS/498J1_2018.0.0.F/LICPATH.lic

    Hope this helps anyone, and thanks for this post.

  2. Thanks Ian Lundell, for the network version of this script! I’ve made a few syntax corrections to the above script, as it was not working for me initially; mainly using two hyphens instead of one for the setup arguments and removing the quotations when writing to LGS.data and LICPATH.lic in the echo commands. I also modified the product key for Maya. Works flawlessly now for me after trying many other scripts off GitHub. Don’t forget to specify your serial number and your license server. Script priority is set to After package installs in the policy.

    /tmp/Install\ Maya\ 2018.app/Contents/MacOS/setup –noui –force –serial_number=XXX-XXXXXXXX –product_key=657J1 –license_type=kNetwork

    sudo mkdir /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F
    sudo touch /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LGS.data
    sudo touch /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LICPATH.lic
    sudo chmod 777 /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LGS.data
    sudo chmod 777 /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LICPATH.lic

    echo _NETWORK >> /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LGS.data
    echo SERVER your.license.server 000000000000 >> /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LICPATH.lic
    echo USE_SERVER >> /Library/Application\ Support/Autodesk/CLM/LGS/657J1_2018.0.0.F/LICPATH.lic

    1. Update: I noticed after posting to the comment thread, that the double hyphens get converted to one single hyphen here, which will fail when running the script in Jamf, so just remember to retype them in after copy/pasting the code from here. This applies to this line:
      /tmp/Install\ Maya\ 2018.app/Contents/MacOS/setup –noui –force –serial_number=XXX-XXXXXXXX –product_key=657J1 –license_type=kNetwork

Leave a Reply

Your email address will not be published. Required fields are marked *

Other Articles

Moof IT - How to Apply IT Security Macs
How to Apply an IT Security Policy on Your Macs
12th July 2021

With cybercrime on the rise, it is becoming increasingly important to ensure you have a…

How Can I Find Passwords That Have Been Stored in the macOS Keychain?
22nd November 2021

If you use a Mac, you’ve probably used the built-in password management feature known as…

Basis Mac IOS Security
Basic MacOS IT Security
4th January 2022

So, apparently, Macs aren’t vulnerable to viruses, right? Well, no – that’s not quite right.…

blog image
Are they holding my passwords securely?
10th July 2018

You will probably have seen in the news recently that a number of well known…

blog image
MacAD UK 2018 – Shields up, Captain?
21st February 2018

Update, 2018.03.30: Added link to YouTube Video Hi All, I had the pleasure of delivering…

About moof IT

moof IT are an Apple focused IT company providing a full range of services to over 150 clients including user support, device management, infrastructure and security.

Contact Info

Tel: 0203 983 4444

Email: hello@moof-it.co.uk

London: 1st Floor 20 Noel Street London W1F 8GW

Social Media