Message 1 of 8
HKLM\SOFTWARE\Autodesk\AutoCAD\Rxx.x\ACAD-xxxx:xxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings.
I've been using this for probably 10+ years to grab the install location for AutoCAD from the registry.
(vl-registry-read
(strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key))
"ACADLOCATION"
)
Every version I can check today, returns the install path withOUT the trailing slash except for 2023. For some reason 2023 includes the trailing slash. Anyone else run across this?
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2023\\"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2022"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2021"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2020"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2019"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2018"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2017"
Command: (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-machine-product-key)) "ACADLOCATION")
"C:\\Program Files\\Autodesk\\AutoCAD 2016"