I am in a Domain environment and I have developed an VSTO Outlook Addin that is very simple.
I have generates a Pfx and attached it with a Strong name to the Assembly and then imported the same Pfx file into the "Trusted Publisher" Store along with the "Trusted Root Certificate Authority" Store
I then copy the contents of the plugin into the custom Program Files\OutlookAddin folder then execute the following Registry Edit
Windows Registry Editor Version 5.00
"Description"="Encryption Plugin for Outlook 2007 and 2010"
Outlook loads the "Trusted" Plugin and everything is great!
But!!! in the background when the plugin first loads it adds a duplicate entry into the HKEY_CURRENT_USER hive the next time outlook loads it has two copy's of the plugin...
I would like the plugin to be loaded for everyones outlook and it is the reason why I have it added to HKEY_LOCAL_MACHINE instead of the normal HKEY_CURRENT_USER hive.
Is the only way around this is to have the Plugin search for the registry key and Delete it or is there a supported way so the Plugin does not try to add itself into the registry?