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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:32:18+00:00 2026-05-11T02:32:18+00:00

After following the advice in this question successfully, I added a couple additional lines

  • 0

After following the advice in this question successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I’ve tried to put in the user’s system folder. However, I’m getting error 2721, which seems to be a custom action not found error, from what I’ve seen. Any suggestions? I’m trying to maintain consistency with previous iterations of my installer by calling regsvr, rather than just adding the registry entries during install, which could be a good idea instead. :::shrug:::

<Directory Id='SystemFolder' Name='Sys'>   ...   <component ...>      ...     <File Id='CapiCom.Dll' LongName='CapiCom.Dll' Name='CAPICOM.DLL' Source=... />   </component> </directory> ... <CustomAction Id='REGCAPICOM' ExeCommand='regsvr32.exe '[SystemFolder]capicom.dll'' Return = 'ignore' Execute='deferred' /> ... <InstallExecuteSequence>   ...   <Custom Action='REGCAPICOM' After='InstallFiles' /> </InstallExecuteSequence> 

Edit: Yes, using regsvr32 as an installer is ugly. But when I downloaded the Capicom SDK, that is what MS said to do in order to install it. Searching around has found many people saying that this is a stupid way to do it…but it’s also mechanism MS provided. I’ll listen to suggestions for a better way. I don’t consider it a big deal if Capicom being left behind when my application is uninstalled, considering that it’s a standard windows component.

Edit: Hmmm. Apparently, one of the things running selfreg on the dll does is to create a random seed to add to the registry. Not sure what mechanism it uses to generate this seed but I suspect it would be considered in poor taste to just generate one myself, especially if I gave all the users the same seed. Not sure…. Apparently if I skip this Capicom does it on its own, so I’m fine.

  • 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. 2026-05-11T02:32:18+00:00Added an answer on May 11, 2026 at 2:32 am

    The Right way:

    • c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\Deployment\regcap.exe’ /O capicom.reg capicom.dll

    • Run program from Adam Tengen’s post here.

    Note that Heat (and Tallow, IIRC) do not, as of this posting, work properly on Capicom.

    The Wrong Way:

    <CustomAction Id='RegisterCapicom' Directory='SystemFolder' ExeCommand='regsvr32.exe /s &quot;[SystemFolder]Capicom.dll&quot;' Return='check' Execute='deferred' /> ... <InstallExecuteSequence>   <Custom Action='RegisterCapicom' After='InstallFiles' /> </InstallExecuteSequence> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar to this question , after running the following code the browser dialog does
After getting the objectEnumerator in the following code, the set1 retain count goes to
I'm following this tutorial (seems good) for Rails. After I run ruby script/generate scaffold
I have in my Form constructor, after the InitializeComponent the following code: using (WebClient
This must be a ridiculously stupid question, because after numerous searches of the StackOverflow
Me again with a dumb question/scenario I need advice on. I have the following
This should be simple. Question How do you get a pointcut in one project
The following piece of code seems to unreliably execute and after and undeterministic time
After installing VMware Server I get the following error when I try to access
What do the following mean in an sql sytax: (+) after a condition eg:

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.