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 8070067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:16:29+00:00 2026-06-05T13:16:29+00:00

To register a COM server, we run something like in elevated mode: regsvr32.exe com.dll

  • 0

To register a COM server, we run something like in elevated mode:

regsvr32.exe com.dll

To perform per-user registration, execute in user account:

regsvr32.exe /n /i:user com.dll

regsvr32.exe support these parameters:

/u - Unregister server 
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall 
/n - do not call DllRegisterServer; this option must be used with /i 
/s – Silent; display no message boxes (added with Windows XP and Windows Vista)

When create a COM server in Delphi, these methods were exported:

exports
  DllGetClassObject,
  DllCanUnloadNow,
  DllRegisterServer,
  DllUnregisterServer,
  DllInstall;

I notice these will happen:

  1. “regsvr32.exe com.dll” invoke DllRegisterServer.
  2. “regsvr32.exe /u com.dll” invoke DllUnregisterServer.
  3. “regsvr32.exe /n /i:user com.dll” invoke DllInstall.
  4. “regsvr32.exe /u /n /i:user com.dll” invoke DllInstall.

I am confuse with parameters /n and /i as well as DllUnregisterServer and DllInstall. Is there any different?

Also, why “/u /n /i:user” invoke Dllinstall? I notice the corresponding registry entry in “HKEY_CURRENT_USER\Software\Classes” was removed.

  • 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-05T13:16:35+00:00Added an answer on June 5, 2026 at 1:16 pm

    The documentation for DllInstall() explains the difference:

    DllInstall is used only for application installation and setup. It
    should not be called by an application. It is similar in purpose to
    DllRegisterServer or DllUnregisterServer. Unlike these functions,
    DllInstall takes an input string which can be used to specify a
    variety of different actions. This allows a DLL to be installed in
    more than one way, based on any criteria that is appropriate.

    To use DllInstall with regsvr32, add a “/i” flag followed by a colon
    (:) and a string. The string will be passed to DllInstall as the
    pszCmdLine parameter. If you omit the colon and string, pszCmdLine
    will be set to NULL. The following example would be used to install a
    DLL.

    regsvr32 /i:”Install_1″ dllname.dll

    DllInstall is invoked with
    bInstall set to TRUE and pszCmdLine set to “Install_1”. To uninstall a
    DLL, use the following:

    regsvr32 /u /i:”Install_1″ dllname.dll

    With
    both of the above examples, DllRegisterServer or DllUnregisterServer
    will also be called. To call DllInstall only, add a “/n” flag.

    regsvr32 /n /i:”Install_1″ dllname.dll

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

Sidebar

Related Questions

I have written a COM dll, and wish to register it using regsvr32 myComdll.dll
i create the ActiveX control(.dll) using user control & register as COM component .
I have a win32 COM dll. I want to register this dll for different
I have a .NET user control registered as COM. I use regasm to register
i'm trying making a com dll in python. but i try register to compiled
I have developed a C++ DLL-based in-proc COM server and successfully compiled it with
I implemented a python com server and generate an executable and dll using py2exe
I'm trying to register a dll for COM Interop and have the usual issue
I'm trying to register an atl service using ExeName.exe /service as described here: http://msdn.microsoft.com/en-us/library/74y2334x(VS.80).aspx
I have been working 2 days on creating a simple exe COM server, I

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.