I have wrote API for working with PackageContents.xml file (read/write). I wanted to publish an example code and results, but this forum turns all localized characters into awful porridge.
Look attached file.
P.S. API allow to get detailed info about all installed AutoCAD versions and their service packs on local, or network machine. It also allow to iterate, and to manage settings of autoloading for:
Old method of autoload:1. HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R<CoreVersion>\ACAD-<ProductCode>:<LocalizationCode>\Applications\<ApplicationName>.
2. HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R<CoreVersion>\ACAD-<ProductCode>:<LocalizationCode>\Applications\<ApplicationName>.
3. HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R<CoreVersion>\ACAD-<ProductCode>:<LocalizationCode>\Profiles\<ProfileName>\Dialogs\Appload\Startup.
New method of autoload:4. Bundles from %ProgramFiles%\Autodesk\ApplicationPlugins\<BundleDirectory>\PackageContents.xml.
5. Bundles from %AppData%\Autodesk\ApplicationPlugins\<BundleDirectory>\PackageContents.xml.
Soon I will finish to write unit tests, and I will write documentation.