Click here to Skip to main content
14,773,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a custom add-in with certain security features and installed in HKLM hive so that users other than Admin can't remove that key values from registry. For this i went through the procedure mentioned in Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 1 of 2) and Deploying your VSTO add-ins to All Users (Saurabh Bhatia). The addin gets installed in HKLM, but in an inactive state inspite of setting LoadBehavior to 3.
From Office Button->Word Options -> Add-Ins my add-in comes under Inactive Application Add-ins.
If I select COM Add-ins from Manage and click on Go, in the small window,which appears, myWordAddin remains unchecked, and the Load Behavior remains UnLoaded, but i'm setting the LoadBehavior to 3 in the setup file through registry editor.
How to install my Add-in in an activated state so that it appears under Active Application Add-ins?
Posted
Updated 30-Jan-13 21:18pm
v2
Comments
Sayan Bera 6-Mar-13 1:24am
   
The above problem got solved by installing the Hotfix KB976477 for Office 2007.
Actually Office 2007 searches COM addIns which are registered only under HKCU.
So this hotfix makes the Office 2007 apps to search COM addIns registered under HKLM.

Thanks and Regards,
Sayan.
Sayan Bera 8-Mar-13 5:19am
   
Sorry, the problem still exists for Windows XP SP2 and SP3. I guess there is a version mismatch between Office 2007(including Service Packs for Office and HotFix for Office) and OS.
The problem is solved on Windows 7 and Windows 8, ie, after installing Hotfix KB976477 the COM addins register under HKLM is loaded at Office application startup.
But in Windows XP SP2 after installing the Hotfix, the COM addins still remains unloaded.

Any response to this issue is appreciated.
Thanks and Regards,
Sayan.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900