I am working on an Excel COM-Addin it can be installable for multi-users (Registry entry in HKLM) and it takes Addin.Object (Office.COMAddIn.Object) property to make some calculations. I have a logic like below
if ((!addIn.Connect) || (addIn.Object == null)) { addIn.Connect = true; }
return addIn.Object; //This gets value only when I call addIn.Connect = true;
This works fine for Admin users but for non admin users its giving an exception since addin is in HKLM level.
Can anyone help me to get addIn.Object the without calling addIn.Connect = true;