Skip to main content

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

Be the first to reply!