Windows installer custom actions failed to complete, says the custom action failed, even if it was successful.

I have a Visual Studio installation and deployment project that runs several executable files after performing custom actions. The installer did not complete this error: "There is a problem with this Windows installer package. The program that is being run as part of the setup did not complete as expected. Contact your support staff or package provider." even if the programs that ran in the user action succeeded in what they were supposed to do.

What can I do to prevent this error?

+3
source share
1 answer

There is only one way to find out that the process "did not end as expected." The process exit code is nonzero. Set the return value of main () in your own program. Or the value passed to Environment.Exit () in a managed program. Or the error level in a batch file. It is automatically set to an exception code if the main thread of the process dies.

You will need to find out why one of these programs returns a non-zero exit code.

+3
source

All Articles