Outlook 在啟動時忽略加載項的 HKEY_LOCAL_MACHINE 條目 (Outlook ignoring HKEY_LOCAL_MACHINE entry for add-in on startup)


問題描述

Outlook 在啟動時忽略加載項的 HKEY_LOCAL_MACHINE 條目 (Outlook ignoring HKEY_LOCAL_MACHINE entry for add‑in on startup)

我在 Win10 64 位上使用 VS 2017 和 .Net 4.6 開發了一個用於 Outlook 2013 64 位的 C# 加載項。

我在

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\LegalFirst.OutlookToMatter
下有所需的註冊表項

但加載項沒有被加載。

如果我將相同的註冊表項放在 HKCU 下,加載項就可以正常加載。

我希望這個加載項用於所有用戶。

插件是使用 VS 和 Windows Installer 安裝的,它正確地創建了 HKLM 條目。不確定它是否相關,但它沒有受信任的安裝程序證書。很高興提供任何其他信息。

誰能提供一些建議。


參考解法

方法 1:

An installer for 64‑bit Windows requires two registry paths because it's possible for users to run 32‑bit and 64‑bit versions of Office on a computer that runs 64‑bit Windows.

Read more about these configurations in the To specify whether you want to support per‑user or per‑computer installations section.

Finally, you may find the Deploy an Office solution by using Windows Installer article helpful.

方法 2:

Found the issue! Even though it is installed under "C:\Program Files\Microsoft Office 15\root\office15" it is a 32 bit process and so is not looking at HKLM\Software\Microsoft\Office at all but only HKLM\WOW6432Node\Software\Microsoft\Office.

Thanks to @dmitry‑streblechenko for suggesting Procmon which lead me to procexp which showed that my oulook.exe was actually a 32 bit process.

Change my installer to x86 and all is well.

(by DavidEugene AstafievDavid)

參考文件

  1. Outlook ignoring HKEY_LOCAL_MACHINE entry for add‑in on startup (CC BY‑SA 2.5/3.0/4.0)

#outlook #outlook-addin #registrykey






相關問題

Outlook 2007/2010 中的 Vspace (Vspace in Outlook 2007/2010)

Outlook 2010 自動完成流(緩存的聯繫人) (Outlook 2010 autocomplete stream ( cached contacts))

如何格式化電子郵件中的字符串以便 Outlook 打印換行符? (How do I format a String in an email so Outlook will print the line breaks?)

通過 Office 加載項將內容添加到 Outlook 電子郵件正文 (Adding content to an Outlook email body via an Office Add-In)

Outlook Addin 中的 Recipient.Name 和 ExchangeUser.Name 有什麼區別? (What is the Difference Between Recipient.Name and ExchangeUser.Name in Outlook Addin?)

運行時錯誤,用於電子郵件自動化的 VBA EXCEL (Runtime Error, VBA EXCEL for email automation)

將 Crystal Reports 轉換為 HTML 並作為正文發送到我的郵件中 (Crystal Reports into HTML and sending in my mail as body)

通過 VBA 將格式化的電子郵件正文複製到新的 Word 文檔中並保留文本格式 (Copy formatted Email body into new Word document via VBA and keep the text formatting)

Outlook 在啟動時忽略加載項的 HKEY_LOCAL_MACHINE 條目 (Outlook ignoring HKEY_LOCAL_MACHINE entry for add-in on startup)

如何知道是否收到或發送了電子郵件? (How to know if an e-mail was received or sent?)

如何從 Excel 表格創建電子郵件? (How to create emails from Excel table?)

如何在 Outlook 正文中左對齊從 Excel 範圍創建的 HTML 表格? (How to Left-Align HTML Table, created from an Excel Range, in an Outlook Body?)







留言討論