Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rustymyers/4d2528969728cd76204a0109b3bd5afc to your computer and use it in GitHub Desktop.
Save rustymyers/4d2528969728cd76204a0109b3bd5afc to your computer and use it in GitHub Desktop.
action parameter query "AUTOCAD17_SERIAL_NUMBER" with description "Autodesk AutoCAD 2017 Serial Number:" and with default value ""
action parameter query "LICENSE_SERVER17" with description "Autodesk AutoCAD 2017 License Server (FQDN):" and with default value ""
action parameter query "LICENSE_SERVER_PORT17" with description "Autodesk AutoCAD 2017 License Server Port:" and with default value ""
continue if {parameter "AUTOCAD17_SERIAL_NUMBER" is not "" AND parameter "LICENSE_SERVER17" is not "" AND parameter "LICENSE_SERVER_PORT17" is not ""}
// Installer Configuration File
createfile until END_OF_FILE
{parameter "AUTOCAD17_SERIAL_NUMBER"}
777I1
Single_License_Server
{parameter "LICENSE_SERVER17"}
US
END_OF_FILE
delete "/tmp/acodeAutoCAD2017"
move __createfile "/tmp/acodeAutoCAD2017"
wait chmod 777 "/tmp/acodeAutoCAD2017"
// Install AutoCAD
delete "/tmp/Autodesk_AutoCAD.dmg"
move "__Download/Autodesk_AutoCAD.dmg" "/tmp/Autodesk_AutoCAD.dmg"
wait /usr/bin/hdiutil attach -quiet -nobrowse -mountpoint "/tmp/Autodesk_AutoCAD" "/tmp/Autodesk_AutoCAD.dmg"
wait /usr/sbin/installer -allowUntrusted -pkg "/tmp/Autodesk_AutoCAD/Install Autodesk AutoCAD 2017 for Mac.pkg" -target /
wait /usr/bin/hdiutil detach -force "/tmp/Autodesk_AutoCAD"
delete "/tmp/Autodesk_AutoCAD.dmg"
// License Server File
createfile until END_OF_FILE
SERVER {parameter "LICENSE_SERVER17"} 000000000000 {parameter "LICENSE_SERVER_PORT17"}
USE_SERVER
END_OF_FILE
delete "/Library/Application Support/Autodesk/CLM/LGS/777I1_2017.0.0.F/LICPATH.lic"
move __createfile "/Library/Application Support/Autodesk/CLM/LGS/777I1_2017.0.0.F/LICPATH.lic"
// License Server File 2
createfile until END_OF_FILE
_NETWORK
END_OF_FILE
delete "/Library/Application Support/Autodesk/CLM/LGS/777I1_2017.0.0.F/LGS.data"
move __createfile "/Library/Application Support/Autodesk/CLM/LGS/777I1_2017.0.0.F/LGS.data"
wait chmod -R 777 "/Library/Application Support/Autodesk/CLM/LGS/777I1_2017.0.0.F/"
// Install AutoCAD Updates
//delete "/tmp/AutoCAD2017Hotfix1_R1.dmg"
//move "__Download/AutoCAD2017Hotfix1_R1.dmg" "/tmp/AutoCAD2017Hotfix1_R1.dmg"
//wait /usr/bin/hdiutil attach -quiet -nobrowse -mountpoint "/tmp/N049.M.333.acad.mac.x64.update" "/tmp/AutoCAD2017Hotfix1_R1.dmg"
//wait /usr/sbin/installer -allowUntrusted -pkg "/tmp/N049.M.333.acad.mac.x64.update/AutoCAD2017Hotfix1.pkg" -target /
//wait /usr/bin/hdiutil detach -force "/tmp/N049.M.333.acad.mac.x64.update"
//delete "/tmp/AutoCAD2017Hotfix1_R1.dmg"
// Disable MC3 Framework (Customer Improvement Program)
wait /usr/bin/defaults write /Library/Preferences/com.autodesk.MC3Framework MC3Enabled -int 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment