Ajit Medhekar
Ajit Medhekar

Reputation: 1078

CPP DLL CustomAction code is not executing during installation

I have a Basic MSI project,in that I'm calling CPP Custom Action from DLL. But it's failing with following error.

CustomAction returned actual error code 1157 (note this may not be 100% accurate if translation happened inside sandbox)

When I checked in EventViewer, I got the following error.

DCOM was unable to communicate with the computer using any of the configured protocols; requested by PID 94c (C:\Windows\system32\ServerManager.exe)

I'm suspecting it's an issue with DCOM or VC++ redistributables. I enabled the DCOM rules from firewall as well, but still installation is failing with above error. Is this issue because of some corruption of system DLLs? How I can find the root cause and solution for this issue.

Upvotes: 0

Views: 691

Answers (1)

PhilDW
PhilDW

Reputation: 20780

1157 is a dependency issue, and one of the easiest ways to get a complete list of dependent Dlls is the get the dependency walker program and run it on your Dll.

http://www.dependencywalker.com/

You might have a dependency on the Universal C runtime, which I believe is separate from the VC++ runtimes. It seems to be a common problem because it varies depending on the OS and what updates have been installed.

Upvotes: 2

Related Questions