Quantcast
Channel: 不認真寫部落格
Viewing all articles
Browse latest Browse all 79

安裝 Outlook Addins 到所有使用者

$
0
0

由於專案的需求,需要把 Addins 改成安裝到所有使用者

所以又對一些項目做了調整

基本上在專案屬性設定那邊

把 InstallAllUsers 改為 True

程式所需要的登錄碼要放在

HKEY_LOCAL_MACHINE

而不是 HKEY_CURRENT_USER(不過也可以在程式內判斷,若沒有就新增到 HKCU 內)

建錯的話,安裝完可是看不到 Addins

不過 Outlook 2007 的部分會有一些狀況

無法載入Addins-LoadBehavior 會被強迫改成 0(應該是 3)

所以針對 Outlook 2007 的部分需要特別設定一個機碼

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\General\

新增一個 DWORD Value

名稱是 EnableLocalMachineVSTO,值是 1

這樣就 Ok 囉

*不過 Outlook 2007 版本需要到 SP3

雖然簡短扼要,不過可是搞了一會兒

.

參考資料

Deploying your VSTO add-ins to All Users (Saurabh Bhatia)

A 2007 Office system application does not load an add-in that is developed by using VSTO

Known issues when you develop custom solutions for Office Outlook 2007

Deploying your VSTO Add-In to All Users (Part I) (Part II) (Part III)

Outlook 2007 Add-In, LoadBehavior changing to 0

Deploying a Visio 2007 or 2010 VSTO add-in with Visual Studio 2010


Viewing all articles
Browse latest Browse all 79

Trending Articles