![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi
I am trying to install Addin for Outlook 2007 Beta 2 under Windows Vista RC2 using regsvr32. I get an exception [Window Title] RegSvr32 [Content] The module "TRSOutlookAddin.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005. For more information about this problem, search online using the error code as a search term. [OK] To register Addin I need to open Outlook and do it via Tools - Options -....- COM Addins If I turn off UAC, regsvr32 works fine. What is the right way to install Outlook Addin in Windows Vista? Thanks |
#2
|
|||
|
|||
![]()
Did you try to debug your dll by specifying regsvr32.exe as the host app?
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in message ... Hi I am trying to install Addin for Outlook 2007 Beta 2 under Windows Vista RC2 using regsvr32. I get an exception [Window Title] RegSvr32 [Content] The module "TRSOutlookAddin.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005. For more information about this problem, search online using the error code as a search term. [OK] To register Addin I need to open Outlook and do it via Tools - Options -....- COM Addins If I turn off UAC, regsvr32 works fine. What is the right way to install Outlook Addin in Windows Vista? Thanks |
#3
|
|||
|
|||
![]()
Unfortunately my development PC is Windows XP not Windows Vista
I still beleive it's permissions restrictions in Windows Vista due to UAC |
#4
|
|||
|
|||
![]()
Might very well be if your dll tries to install itself into HKLM or HKCR.
You need to implement your own version of DllRegisterServer that uses RegOverridePredefKey to redirect the registry output ot HKCU before the default implementation of DllRegisterServer is called. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in message ... Unfortunately my development PC is Windows XP not Windows Vista I still beleive it's permissions restrictions in Windows Vista due to UAC |
#5
|
|||
|
|||
![]()
As a COM library it creates entries in HKLM
When I install ANY Outlook Add-in, Outlook registers Add-in in AddIns key: HKEY_CURRENT_USER\Software\Microsoft\Office\Outloo k\AddIns\ If this is what causes my problem, every Add-in will have the same problem Am I right? "Dmitry Streblechenko" wrote in message ... Might very well be if your dll tries to install itself into HKLM or HKCR. You need to implement your own version of DllRegisterServer that uses RegOverridePredefKey to redirect the registry output ot HKCU before the default implementation of DllRegisterServer is called. |
#6
|
|||
|
|||
![]()
Not at all - all of my add-ins are smart enought to installs themselves in
HKCU if HKLM is inaccessible :-) If you want to register a COM object on a per-user basis, create registry entries in HKEY_CURRENT_USER\Software\Classes instead of HKEY_CLASSES_ROOT Note that when you look at HKEY_CLASSES_ROOT, Windows merges the real HKEY_CLASSES_ROOT hive (common for all users) with the per-user entries from HKEY_CURRENT_USER\Software\Classes. Even if you use a function that explicitly tries to create entries in HKEY_CLASSES_ROOT (such the the stock implementation of DllRegisterServer), RegOverridePredefKey will allow you to redirect the calls to any registry key of your choice for the current process completely transparently. After you are done, you can restore the old key by calling RegOverridePredefKey again. Also note that most installers nowadays do not call DllRegisterServer for the COM libraries by default (you need to expicilty tell them to do otherwise), but simply create (what they think are) the appropriate registry keys directly wirhout ever loading the dll during the install. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in message ... As a COM library it creates entries in HKLM When I install ANY Outlook Add-in, Outlook registers Add-in in AddIns key: HKEY_CURRENT_USER\Software\Microsoft\Office\Outloo k\AddIns\ If this is what causes my problem, every Add-in will have the same problem Am I right? "Dmitry Streblechenko" wrote in message ... Might very well be if your dll tries to install itself into HKLM or HKCR. You need to implement your own version of DllRegisterServer that uses RegOverridePredefKey to redirect the registry output ot HKCU before the default implementation of DllRegisterServer is called. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pervent user to change email settings, add new email account | Farhan Ahmad Shaikh | Outlook - Installation | 0 | October 12th 06 09:11 AM |
Non user-specific Install... | Steven Sinclair | Outlook - Installation | 3 | August 9th 06 03:59 PM |
programmatically add control for user interaction/feedback | Loane Sharp | Outlook - General Queries | 1 | May 24th 06 06:44 PM |
How can I install outlook on my user account like I never did it? | Sebastien Tardif | Outlook - Installation | 1 | February 27th 06 07:55 PM |
How to handling Custom Form Control Event in VB Com Add-In? | Raphaël ZHOU \(Jadiam\) | Outlook - Using Forms | 1 | January 11th 06 07:31 AM |