Notifications
Clear all
[Closed] Detect the path of all Max Versions
Jun 01, 2015 11:04 am
I found out that this is possible buy searching in the registry.
I’ve found this code:
registry.openKey HKEY_LOCAL_MACHINE "SOFTWARE" accessRights:#readOnly key:&theFirst_key1
registry.openKey theFirst_key1 "Classes" accessRights:#readOnly key:&theFirst_key2
registry.openKey theFirst_key2 "3dsmax" accessRights:#readOnly key:&theFirst_key3
registry.openKey theFirst_key3 "DefaultIcon" accessRights:#readOnly key:&theFirst_key4
registry.getValueName theFirst_key4 1 name:&theFirst_theValName
registry.queryValue theFirst_key4 theFirst_theValName type:&theFirst_theType value:&theFirst_theValue
def_max_install = pathConfig.removePathLeaf(pathConfig.removePathLeaf(pathConfig.removePathLeaf(substring theFirst_theValue 2 (theFirst_theValue.count - 2)))) + "\\3dsmax.exe" --This is the path
but it doesn’t give the correct path (and it is only one instead of 2 in my case)