I'm looking for a way to programmatically add an Add-In folder to the list in the Add-In Manager of ArcMap. I have tried simply adding the folder path to the AddInFoldersList.xml file in my AppData\Local\ESRI\Desktop10.0 folder but that doesn't work because when ArcMap closes it overwrites that file and removes my changes.
Any help would be appreciated.
The problem is that I want to make these edits from within a custom ArcMap add-in, therefore, Arcmap would be running at the time. ArcObjects gives me the ability to programmatically add a Toolbox, modify toolbars, do pretty much anything with code from within a running ArcMap session. I can't, however, add an add-in folder to the Add-in folder list on the fly. This would be ideal and it is what ESRI is hopefully changing.
I'm leaning toward doing something in ArcMap's OnShutdown event to get that XML file written correctly.
Dim attribute as System.IO.FileAttributes = FileAttributes.ReadOnly