Is there a way to get a copy of the "regtlibv12.exe" file from the older .NET Framework packages?

Michael Butt 0 Reputation points
2024-03-19T12:30:58.4733333+00:00

I'm working for an organization that runs some very old software throughout the enterprise. This software works fine in operations, but I'm trying to find a solution to efficiently deploy installations of it to hosts running modern versions of Windows. When the software is installed normally, it displays an error regarding a ".tlb" file in the Windows\System32 folder. The error says "Unable to register the type library: RegisterTypeLib failed; code 0x8002801C. Error accessing the OLE registry". After doing some research, I believe that the application is trying to find regtlib.exe, or regtlibv12.exe, to complete the registration of the type library. Unfortunately, this seems to have been removed from .NET Framework some time ago, and thus cannot be found by the application. I've seen some other solutions to this side-stepping the need for regtlib with Powershell or C#, but I'm simply not the coder I'd like to be yet and don't have the understanding of what's going on in them to see what's happening.

This particular software is packaged into an executable using the Inno Setup, which is normally friendly to unattended installs. However, this error appearing each time the software is installed on a modern version of Windows renders this process impossible.

I'd appreciate any input or assistance available.

Thank you!

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,185 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 26,591 Reputation points Microsoft Vendor
    2024-03-20T05:50:15.7766667+00:00

    Hi @Michael Butt ,

    If you need this file to install some old software, you can refer to the solution below.

    https://stackoverflow.com/a/62193592/17334287

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. RLWA32 40,471 Reputation points
    2024-03-21T10:40:22.97+00:00

    RegisterTypeLib failed; code 0x8002801C. Error accessing the OLE registry

    The RegisterTypeLib function can fail and return the above error code if it is called from a process that is not running with elevated privileges as Administrator. Type Library registration writes data to HKLM\Software\Classes\TypeLib and can also write to HKLM\Software\Classes\Interface.

    Try running the installer as Administrator.