Re: Using Visual Studio Installer, create an Outlook COM component that can only be installed by an administrator but, once installed, runs for all users

From: TC (getmyemails2_at_yahoo.com)
Date: 02/10/05


Date: Thu, 10 Feb 2005 13:12:30 -0500

Hey Ken,

Thanks for the detailed and elegant solution.

Sorry about posting to so many groups. They all appeared to have some
relevancy to the particular issue (i.e. Outlook vs. COM vs. AddIn vs.
Installation). I will heed your advice moving forward.

Best Regards,

Todd

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:OeX$t33DFHA.624@TK2MSFTNGP15.phx.gbl...
> Please do not post to so many groups, pick one or two.
>
> Addins registered in the HKCU hive of the registry are "user"
> installations and will only be available to that user. They also show up
> in the COM Add-Ins dialog.
>
> Addins registered in HKLM are "administrative" installations and are
> available to all users. They don't show up in the COM Add-Ins dialog.
>
> If you use a Designer and allow the COM addin DLL to self-register or
> allow the installer to extract COM registration information then your
> addin will end up registered in HKCU, even if you explicitly create the
> necessary registry entries in HKLM in your installer. That can cause
> problems.
>
> What I do when I want to create an administrative installation is to use a
> class module instead of using a Designer. That way there is no
> self-registration information in the DLL that points it to HKCU. I add the
> Implements IDTExtensibility2 statement that usually would be in the
> Designer to the class module. Then I enter the registry information for
> registering the addin myself to the HKLM hive in my installation package
> (that's the method you have to use for VB 5 addins of both types, VB 5
> doesn't have Designers).
>
> --
> 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
>
>
> "TC" <getmyemails2@yahoo.com> wrote in message
> news:eMY6sQvDFHA.1260@TK2MSFTNGP12.phx.gbl...
>> Hello,
>>
>> I am building a COM component that is to be used with MS Outlook on
>> Windows 2000 and later using Office 2000 and later.
>>
>> I want the installation to only work when an administrator runs the
>> installer and, once successfully run by the administrator, makes the
>> component available to all users of that machine.
>>
>> Can anybody point me in the right direction?
>>
>> Thanks & Regards,
>>
>> TC
>>
>



Relevant Pages