Search code examples
c#.netwindows-servicesregistryregistrykey

Get the installed AutoCAD version in a Windows Service application


I am writing a Windows Service for generating CAD drawings and I need to detect which version is installed in the system.

What is the best way to get the installed AutoCAD version in a Windows Server environment? I know that I can get this info from the registry, but from which key? Is there any specific one for all the AutoCAD versions?


Solution

  • Yes, you can. Exactly you can found it here:

    HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD
    

    Then you can find value string name: CurVer It will say installed version.