Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8359993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:19:29+00:00 2026-06-09T11:19:29+00:00

I have a type library called MyCOMAddin.tlb , that I have extracted using tlbexp.exe

  • 0

I have a type library called MyCOMAddin.tlb, that I have extracted using tlbexp.exe from a MyCOMAdd.dll. This is a .NET COM exposed class written in C#. This dll is register at per user level.

The question is

  • Is there any way I can also register MyCOMAddin.tlb just the current user?

I tried regtlibv12.exe, but it registers for all-users.
This in inconvenient, because if any user un-install the Add-in on the machine, the other users, which will still have access to the dll in late binding, will not have access anymore to the typelibrary.

I am using Inno setup to deploy the add-in, so I could write the keys directly in the registry. But I don’t have any idea of which keys and where to write them.

I wish regtlibv12.exe had a /peruser option.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:19:32+00:00Added an answer on June 9, 2026 at 11:19 am

    This isn’t impossible, but of course you’ll be heading for some complications. First off, it isn’t sufficient to just register the type library locally, you also need to register the CLSIDs locally or it still won’t work correctly. The job done by Regasm.exe. Do favor its /tlb command line option (without a file) over running regtlib. And beware that whatever programming tool uses the type library may need some extra registry keys to recognize the library as a component, the “Control” key is common for example.

    Professional installers do not rely on tools like Regasm or Regtlib to write the keys at install time, they write the keys themselves. Which of course requires knowing what those keys are. One way is to observe the install tool writing the keys with SysInternals’ ProcMon utility. Albeit that it tends to generate a lot of info. You’ll find a dedicated tool in the WiX project, Heat.exe is the “harvesting” tool. Modify everything you found that way from using HKCR or HKLM to using HKCU instead. HKCR maps to HKCU\Software\Classes. Possibly with Wow6432Node added for 64-bit operating systems.

    And be sure you actually need the type library registered. It is only necessary if you are using the component in another programming environment. And the corner case of using the object created on an STA thread and calling it from another thread, the type library is used by the standard marshaller to marshal the call across apartments. And don’t forget about reg-free COM with a manifest so no registry modifications are required at all. It isn’t clear whether that would apply here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a library called EXIFextractor to extract metadata information from images. This
I have this type which is basically a struct { int x,y,z; } that
I created a vb.net dll called WSdll.dll. I compiled it, created a type library
Background In my utilities library (Shd.dll) I have a class called AsyncOperation. To put
I have created a Type Library out of a .NET DLL I created. I
I have a .net library dll that acts like a functional library. There are
I can not work this out. I have a class library called 'ABC.Service'. In
I am using the GWT library. There is a base class called Widget that
My web application consists of library type system where books have due dates. I
I have a Document Library with column type Hyperlink or Picture (Signature). How to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.