regsvr32 exiting with code 3

hr Ret 96 Reputation points
2020-09-26T15:03:08.807+00:00

Hi, I have an application which needs to register a DLL during installation. Until now I had no problem with this, but since I have to install on a new Windows10 laptop, the installation process stops, because of regsvr32 exiting with code 3.

I have monitored more in details what happens during the registration with regsvr32, using procmon (sysinternals). Enclosed are the results

28360-regsvr32ok.png28390-regsvr32nok.png

I have removed all "SUCCESS" results. If needed I can post the complete results.

It is difficult for me to interpret this, perhaps someone can help?

Many thanks
Hubert

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,095 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
464 questions
0 comments No comments
{count} votes

Accepted answer
  1. hr Ret 96 Reputation points
    2020-09-27T18:24:17.387+00:00

    It is working now, thanks to Castorix31

    If someone has such a situation, here my experience:

    Find out which are the dependencies of that dll
    Check that they are available in system32 or sysWOW64
    Start cmd in admin mode and register the dll

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.5K Reputation points MVP
    2020-09-26T15:22:28.8+00:00

    Something here may help.
    https://devblogs.microsoft.com/oldnewthing/20180921-00/?p=99795

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. hr Ret 96 Reputation points
    2020-09-26T16:37:52.12+00:00

    Thanks DSPatrick. I have just seen that you already gave me that answer 2 months ago (I had forgotten this thread and started a new one...). This article could not solve the problem.


  3. EckiS 831 Reputation points
    2020-09-26T17:20:46.837+00:00

    one of the dependencies of you dll might be missing (f.e the VC runtime).
    you could use "dumpbin /dependents your_dll_file.dll"
    from the visual studio command line to display the dependencies,
    or run a tool on the laptop: how-to-check-for-dll-dependency

    0 comments No comments

  4. hr Ret 96 Reputation points
    2020-09-26T18:40:53.667+00:00

    As you see above, I try to register PgOleDb.dll. This is a rather old dll (2006) for a PostgreSQL Database.

    I don't use VC, but I will have a look to your link