Capicom.dll cannot be found - Advanced Installer Community
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Capicom.dll cannot be found

Hi,

I am trying to build our setups on our brand new build server (its a Windows Server 2012 R2). AI constantly refuses it with:

Checking builds status... done.
Build required.

[ DefaultBuild ]
Importing digital certificate... done.
Building package (en): D:\xxx\Setup.exe
Preparing files... done.
Creating CAB file(s)... done.
Creating MSI database... error.
Capicom.dll used by SignTool.exe is not installed correctly on this computer. Details

Build finished because an error was encountered.

I tried to configure the external tool, as described in other forum posts, but it does not change the behavior. The AI installer is part of the Team Build procedure. Signtool is used several times, so it is definitely does not need the deprecated capicom.dll.

Any idea how to fix that?

Regards,

Roland
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Capicom.dll cannot be found

Hello Roland,

I'm not sure why this happens. Can you try to manually sign the installation package outside of Advanced Installer using the same version of SignTool you have referenced in our "External Tools" options and tell us if this is successfully signed? If so, can you please send us the .aip (project file) to support at advancedinstaller dot com so we can check its settings? Also, please specify under which user account (System, current user, etc) is the Team Build process launched.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Capicom.dll cannot be found

Hi Daniel,

this is what I tried before. Signing using the signtool.exe works several times before calling the team build. I keep care, that I am using the same version of signtool.exe as the other parts of the team build. This usually works fine (except some timestamp connectivity problems from time to time).

The team build runs under a domain account, which is not administrator on the build server (due to security reasons). Using the same account and signtool.exe works fine for other parts of the teambuild.

Shall I sent you the project file?

Regards,

Roland
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Capicom.dll cannot be found

Hello Roland,

Yes, please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings? Also, can you please try to manually build, from command line or directly from Advanced Installer with UI, your .aip project file (outside the TFS build) under the related non-admin domain account and let us know if the build succeeds?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Capicom.dll cannot be found

Hello Roland,

As an addendum to this thread, this may also happen if the "Signtool.exe" used by Advanced Installer has a version lower than 6.1. Advanced Installer tries to use the "Capicom.dll" library when the "Signtool.exe" version is lower than 6.1. So, in order to avoid this build error please make sure you are using in our "External Tools" settings a "Signtool.exe" with version equal or higher than 6.1.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Capicom.dll cannot be found

Hi Daniel,

I checked this again. AI is configured to use
C:\Program Files (x86)\Windows Kits\8.1\bin\x86\signtool.exe
which has version 6.3.9600.17298

Regards,

Roland
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Capicom.dll cannot be found

Hello Roland,

This is very strange. Can you please upload the related version of SignTool.exe, which you are using on your build machine with Advanced Installer, on a web server or by using a cloud service (e.g. Dropbox, Google Drive, etc) and send us a download link for it to support at advancedinstaller dot com so we can further test and investigate this on our side?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Capicom.dll cannot be found

Hi,

since this was opened by me a while ago, I found a solution. Suddenly I was faced with the same problem on my windows 8 dev machine. I played with the settings of AI and I also found the place, where the settings are saved in registry (HKEY_CURRENT_USER\Software\Caphyon\Advanced Installer\Settings\ "SignCode.exe Path" and "SignTool.exe Path"). Then I tried to get rid of this settings and noticed, that they are still there, so I decided to delete the registry keys.

Somehow this does the trick. After deleting those settings AI was able to sign the setups properly. So, I deleted on our Team Build server the same keys and now signing works.

Personally, I think, there is some old code in AI, especially for the setting of SignCode.exe, which seems to cause the problem. I don't know, what deleting of the keys caused, but at least it solves my problem.

Regards,

Roland
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Capicom.dll cannot be found

Hello Roland,

Thank you for your feedback. I'm glad you overcame this.

When deleting the related registry keys (where Advanced Installer stores the SignTool.exe path) AI will automatically search afterwards for a SignTool.exe file into an installed WIndows SDK (if exists). So, if a SignTool is found in your Windows SDK installation folder, AI it will use it by default. I'm not so sure what was wrong with your manually specified (in "External Tools") SignTool.exe file, but it seems the automatically detected SignTool works as expected.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Capicom.dll cannot be found

Hi Daniel,

yes, I am glad, that it just worked. Also surprising, the values are the same as before. I suggest, that you check the code of AI, to find out, why it still searches for CapiCom.dll, because this is quite outdated nowadays.

At least, it solves the issue for me, that was the most important thing.

Thanks for your tips!

Regards,

Roland
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Capicom.dll cannot be found

Hello Roland,

I've forwarded your feedback to our development team. If there will be any update regarding their investigation I'll let you know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”