I have a Desktop Add-In located on a network drive that several people access.
I am interested in grabbing the location of this Add-In using VB or C#.
I don't want the executing assembly location that is found at a users C-drive, I want the network location, which annoyingly users have mapped as different drive letters.
It can also be stored in the registry but only if a key was added manually and the user has permission to write to the registry. See the very end of this
I'd try the XML file and check each node under the appropriate appplication (ArcMap node for example) and see if the folder name without the drive letter matches the location. There are a couple of ways to convert the drive letter to a UNC path too if you want to make sure the user didn't map to another server with an identical folder name.
It can also be stored in the registry but only if a key was added manually and the user has permission to write to the registry. See the very end of this
I'd try the XML file and check each node under the appropriate appplication (ArcMap node for example) and see if the folder name without the drive letter matches the location. There are a couple of ways to convert the drive letter to a UNC path too if you want to make sure the user didn't map to another server with an identical folder name.
Shame there isn't anything for each tool, but I can work around the settings in that file. It was in a slightly different location for me: C:\Users\<username>\AppData\Local\ESRI\Desktop10.0