kenneth.choe
Posts: 6
Joined: Mon Jun 27, 2016 10:01 pm

SFXCA: Failed to create new CA process via RUNDLL32

Tue Oct 10, 2017 9:18 pm

My custom action is failing on one machine. Detailed error log:

MSI (c) (30:F4) [20:46:54:609]: Doing action: GetTenantConfigurationFileLocation
Action 20:46:54: GetTenantConfigurationFileLocation.
Action start 20:46:54: GetTenantConfigurationFileLocation.
MSI (c) (30:60) [20:46:54:609]: Invoking remote custom action. DLL: C:\Users\ADMINI~1.SVB\AppData\Local\Temp\2\MSI6187.tmp, Entrypoint: GetTenantConfigurationFileLocation
SFXCA: Failed to create new CA process via RUNDLL32. Error code: 2
CustomAction GetTenantConfigurationFileLocation returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 20:46:54: GetTenantConfigurationFileLocation. Return value 3.
MSI (c) (30:F4) [20:46:54:640]: Doing action: FatalError
Action 20:46:54: FatalError.

GetTenantConfigurationFileLocation has external calls like this:

var service = new WindowsRegistryService(@"SOFTWARE\company_name");
var location = service.ReadValue("specific_folder");
var result = File.Exists(GetFilePath());

One of my speculation is if anti-virus is causing the issue, but doing so on the customer's server will take some effort to go through approval line.

Do you have any suggestions on how to troubleshoot this issue?

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

Re: SFXCA: Failed to create new CA process via RUNDLL32

Fri Oct 13, 2017 1:15 pm

Hello,

This may happen due to a known bug which appears when launching the setup in maintenance/uninstall mode from the new "Apps and Features" Windows manager. It seems this kind of error is triggered by DTF custom actions executed as immediate when the setup is launched from "Apps and Features" manager. Check for more details on "DTF Bug with new Windows 10 Apps and Features" blog.

The only workaround we are aware are these:
1. uncheck "Fail installation if custom action returns an error" execution option from the "Custom Actions" page
2. or try to set the "When the system is being modified (deferred)" execution time from "Custom Actions" page for your action

Let us know if this helped.

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

kenneth.choe
Posts: 6
Joined: Mon Jun 27, 2016 10:01 pm

Re: SFXCA: Failed to create new CA process via RUNDLL32

Tue Nov 14, 2017 5:10 pm

Sorry for super late response. I thought topic reply notification was a spam back then. :(

I will try this and let you know next time. This happens on one specific machine and we won't run upgrade on their machine for a while.

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

Re: SFXCA: Failed to create new CA process via RUNDLL32

Wed Nov 15, 2017 9:38 am

Thank you for your follow up.

Just let us know if you have further questions or doubts.

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

Return to “Common Problems”