I am trying to package up Mudbox 2026 using below script. However the app does not install when I run the package for Mudbox. Any ideas?
Â
Â
#!/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/InstallMudbox2026.app/Contents/Helper/Packages/Mudbox/Mudbox_core2026.pkg"
pkgPath1="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Licensing/AdskLicensing-15.1.0.12339-mac-installer.pkg"
pkgPath2="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Licensing/adskflexnetserverIPV6.pkg"
pkgPath3="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Mudbox/Mudbox_AdLMconf2026.pkg"
pkgPath4="/private/tmp/InstallMudbox2026.app/Contents/Helper/Packages/Mudbox/Mudbox_core2026.pkg"
Â
mudboxpKey="437R1"
networkServer="Network License Server"
mudboxlicPath="/Library/Application Support/Autodesk/AdskLicensingService/${mudboxpKey}_${year}.0.0.F"
mudboxlicFile="LICPATH.lic"
mudboxlgsFile="LGS.data"
Â
#Declare functions
Â
Â
# Call the function before running installers checkLicensingService
Â
Â
runInstaller ()
{
  /usr/sbin/installer -verboseR -pkg "${pkgPath1}" -target /          #Mudbox
  /usr/sbin/installer -verboseR -pkg "${pkgPath2}" -target /          #Mudbox
  /usr/sbin/installer -verboseR -pkg "${pkgPath3}" -target /          #Mudbox
  /usr/sbin/installer -verboseR -pkg "${pkgPath4}" -target /          #Mudbox
}
Â
Â
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}"
}
Â
Â
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}"
}
Â
Â
#Run script
runInstaller
checkLicensingService
createMudboxLicenseFiles
MudboxlicenceHelper
Checklicense
cleanUp