开发者

How can I tell if a VSTO Add-in is loaded?

开发者 https://www.devze.com 2023-04-12 09:11 出处:网络
I\'m working on a VSTO add-in for Outlook that, if another custom VSTO is loaded, will perform a specific action.How would I determine if that VSTO is loaded? 开发者_C百科 I\'ve not delved too far int

I'm working on a VSTO add-in for Outlook that, if another custom VSTO is loaded, will perform a specific action. How would I determine if that VSTO is loaded? 开发者_C百科 I've not delved too far into COM as of yet other than writing a number of add-ins.


You can check the key:

"HKLM\Software\Microsoft\Office\Outlook\Addins[YourAddInName]"

in the registry.

Existence of the key means that the AddIn is installed. You can also read the value LoadBehaviour under the above key, the value 3 means that the addin is loaded/to be loaded normally. The value 2 means that the addin has problems.

0

精彩评论

暂无评论...
验证码 换一张
取 消