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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:04:06+00:00 2026-05-28T02:04:06+00:00

Brief I have an installation package (MSI based) which attempts to register a dll

  • 0

Brief

I have an installation package (MSI based) which attempts to register a dll file for use as a Windows Explorer Bar (Internet Explorer Toolbar).

The custom action is defined as follows:

[SystemFolder]\regsvr32.exe /s "pathtodllhere"

The error

  • The regsvr32 custom action does not work on Windows XP 64-bit.

Output from MSI log:

CustomAction SystemFolder_2 returned actual error code 5. Error
1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Action SystemFolder_2,
location: C:\Windows\SysWOW64\, command: regsvr32.exe /s “C:\Program
Files (x86)\Test Install\test.dll”

MSI (s) (10:F4): Product: Test Install — Error 1722. There is a
problem with this Windows Installer package. A program run as part of
the setup did not finish as expected. Action SystemFolder_2, location:
C:\Windows\SysWOW64\, command: regsvr32.exe /s “C:\Program Files
(x86)\Test Install\test.dll”

A brief run-down of my tests/thoughts thus-far:

  • Custom action is in the “InstallFinalize” section, it is therefore run ONLY when the files have been dropped onto the hard drive.
  • Dll file is not corrupt and is valid.
  • Regsvr32 custom action works fine (and MSI installation) on: Windows 7 32-bit and Windows XP 32-bit.
  • Regsvr32 32-bit version is executed during 64-bit install (as it should).
  • Regsvr32 fails with error code 5, i.e. ERROR_ACCESS_DENIED.

Solutions and Musings

  1. Self-registration – Not using regsvr32 and manually place the registry keys using my MSI Installer.
  2. The dll is a Delphi COM dll which uses the TRegistry component to register itself. Again, I can’t think of a reason why this wouldn’t work as it is merely a wrapper, but just a thought.

Hopefully I have shown my research here and don’t waste anyone’s time!

  • 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-05-28T02:04:07+00:00Added an answer on May 28, 2026 at 2:04 am

    The best practise solution (as you’ve alluded to) is to extract the registry entries from the component and write them to the registry using the msi.

    Background

    Regsvr32 requires admin rights and elevated privilege confirmation to register COM components under 64-bit Windows 7 but msiexec doesn’t know to request elevated privileges for the custom action.

    You can test this requirement by using “Open with…” to run C:\Windows\SysWOW64\regsvr32.exe on the component (which will fail). Whereas if you create a batch file for the registration and then “Run as Administrator” the component will register successfully.

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

Sidebar

Related Questions

I have a R package that i need to use. The package in question
Brief: I have a sub classed AuthorizeAttribute in my framework in which I am
Brief: Based on a query, I have multiple checkboxes generated dynamically. The value of
Random numbers have been well covered here, so I'll keep it brief. I use
Brief : I have code which works if I don't dispose of the BindingSource
Brief background: I have two-step login page, which after step 1 sends one-time code
I have this code /** * @file core.js * @brief this file contains the
i need to implement this scenario Brief about that is have two java based
My prob in brief: I have two tables namely category and product. table: category
EDIT: See my working code in the answers below. In brief: I have a

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.