Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: VSTO Outlook Addin doesn't get loaded for non-admin user

Geek News

VSTO Outlook Addin doesn't get loaded for non-admin user
"Piyush Gupta" <indorewale[ at ]gmail.com> 3/6/2007 7:21:06 PM
Hi,

I am trying to deploy my VSTO Addin for Outlook 2003 for all users on
a machine by following these steps:

1. Change addin installer to add keys to HKLM instead of HKCU.
2. Build installation.
3. Install addin on target machine using user having Administrator
privileges.
4. Run MS Outlook 2003 and verify that addin has been loaded properly.
5. Login as a normal user on target machine.
6. Run MS Outlook 2003.
7. Outlook tries to install few things before showing up the UI.
8. Addin doesn't get loaded. :(

There is following error in the event log:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot
be found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: Unable to
open shim database version registry key - v2.0.50727.00000.

and few warnings like:
Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
'ProductFiles', component '{66CD2C91-2A15-4DA4-BBD2-5EC1075F3C0E}'
failed. The resource 'HKEY_CLASSES_ROOT\.pip\' does not exist.
Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
'WORDFiles' failed during request for component '{1EBDE4BC-9A51-4630-
B541-2561FA45CCC5}'

But if I elevate normal user as admin and try logging again, addin
does get loaded. I think this must be pretty common requirement to
install addin for non-admin users on a target machine. Can you guys
suggest me any solution for this problem?

Appreciate your help,
Piyush.

Re: VSTO Outlook Addin doesn't get loaded for non-admin user
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/7/2007 3:37:54 PM
You do know that VSTO does not support registering in HKLM don't you? A VSTO
addin should be installed on a per user basis.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Piyush Gupta" <indorewale[ at ]gmail.com> wrote in message
news:1173208866.742794.164400[ at ]64g2000cwx.googlegroups.com...
[Quoted Text]
> Hi,
>
> I am trying to deploy my VSTO Addin for Outlook 2003 for all users on
> a machine by following these steps:
>
> 1. Change addin installer to add keys to HKLM instead of HKCU.
> 2. Build installation.
> 3. Install addin on target machine using user having Administrator
> privileges.
> 4. Run MS Outlook 2003 and verify that addin has been loaded properly.
> 5. Login as a normal user on target machine.
> 6. Run MS Outlook 2003.
> 7. Outlook tries to install few things before showing up the UI.
> 8. Addin doesn't get loaded. :(
>
> There is following error in the event log:
> The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot
> be found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. The following information is part of the event: Unable to
> open shim database version registry key - v2.0.50727.00000.
>
> and few warnings like:
> Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
> 'ProductFiles', component '{66CD2C91-2A15-4DA4-BBD2-5EC1075F3C0E}'
> failed. The resource 'HKEY_CLASSES_ROOT\.pip\' does not exist.
> Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
> 'WORDFiles' failed during request for component '{1EBDE4BC-9A51-4630-
> B541-2561FA45CCC5}'
>
> But if I elevate normal user as admin and try logging again, addin
> does get loaded. I think this must be pretty common requirement to
> install addin for non-admin users on a target machine. Can you guys
> suggest me any solution for this problem?
>
> Appreciate your help,
> Piyush.
>

Re: VSTO Outlook Addin doesn't get loaded for non-admin user
"Dean Cleaver" <dean.cleaver[ at ]panties.xceptionsoftware.com> 3/30/2007 2:37:44 AM
Ken,

I don't believe that is true, as I have mine loaded via Local Machine, and
it works fine.

Piyush,

Look into giving your strong name full trust - if you're unsure of how to do
that, I can send you a script later.

Dino

"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message
news:uApWo7MYHHA.5044[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> You do know that VSTO does not support registering in HKLM don't you? A
> VSTO addin should be installed on a per user basis.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Piyush Gupta" <indorewale[ at ]gmail.com> wrote in message
> news:1173208866.742794.164400[ at ]64g2000cwx.googlegroups.com...
>> Hi,
>>
>> I am trying to deploy my VSTO Addin for Outlook 2003 for all users on
>> a machine by following these steps:
>>
>> 1. Change addin installer to add keys to HKLM instead of HKCU.
>> 2. Build installation.
>> 3. Install addin on target machine using user having Administrator
>> privileges.
>> 4. Run MS Outlook 2003 and verify that addin has been loaded properly.
>> 5. Login as a normal user on target machine.
>> 6. Run MS Outlook 2003.
>> 7. Outlook tries to install few things before showing up the UI.
>> 8. Addin doesn't get loaded. :(
>>
>> There is following error in the event log:
>> The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot
>> be found. The local computer may not have the necessary registry
>> information or message DLL files to display messages from a remote
>> computer. The following information is part of the event: Unable to
>> open shim database version registry key - v2.0.50727.00000.
>>
>> and few warnings like:
>> Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
>> 'ProductFiles', component '{66CD2C91-2A15-4DA4-BBD2-5EC1075F3C0E}'
>> failed. The resource 'HKEY_CLASSES_ROOT\.pip\' does not exist.
>> Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
>> 'WORDFiles' failed during request for component '{1EBDE4BC-9A51-4630-
>> B541-2561FA45CCC5}'
>>
>> But if I elevate normal user as admin and try logging again, addin
>> does get loaded. I think this must be pretty common requirement to
>> install addin for non-admin users on a target machine. Can you guys
>> suggest me any solution for this problem?
>>
>> Appreciate your help,
>> Piyush.
>>
>


Re: VSTO Outlook Addin doesn't get loaded for non-admin user
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/30/2007 1:14:41 PM
According to Ryan Gregg of MS in the VSTO Web forum if an Outlook VSTO addin
is registered in HKLM then Outlook ignores it and does not load it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dean Cleaver" <dean.cleaver[ at ]panties.xceptionsoftware.com> wrote in message
news:%23Rr0iRncHHA.4032[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
> Ken,
>
> I don't believe that is true, as I have mine loaded via Local Machine, and
> it works fine.
>
> Piyush,
>
> Look into giving your strong name full trust - if you're unsure of how to
> do that, I can send you a script later.
>
> Dino

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net