A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

User Account Control and Add-in install



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 2nd 06, 02:31 AM posted to microsoft.public.outlook.program_addins
Slava Barouline
external usenet poster
 
Posts: 15
Default User Account Control and Add-in install

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  
Old November 2nd 06, 06:00 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default User Account Control and Add-in install

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  
Old November 2nd 06, 11:10 PM posted to microsoft.public.outlook.program_addins
Slava Barouline
external usenet poster
 
Posts: 15
Default User Account Control and Add-in install

Unfortunately my development PC is Windows XP not Windows Vista

I still beleive it's permissions restrictions in Windows Vista due to UAC


  #4  
Old November 3rd 06, 12:17 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default User Account Control and Add-in install

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  
Old November 3rd 06, 05:19 AM posted to microsoft.public.outlook.program_addins
Slava Barouline
external usenet poster
 
Posts: 15
Default User Account Control and Add-in install

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  
Old November 3rd 06, 05:40 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default User Account Control and Add-in install

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 02:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.