Skip to content

Get errors list from custom action on exit #8655

Discussion options

You must be logged in to vote

Wix4RemoveFoldersEx is an existing WiX custom action. So you can look at the code to see exactly what it will give you.
https://github.com/wixtoolset/wix/blob/ce73352b1fa1d4f9cded10a0ee410f2e786bd326/src/ext/Util/ca/RemoveFoldersEx.cpp#L131-L261

For almost all of the WiX C++ custom actions there will only be one actual error.
The first error that occurs will generally log that code to the log file, and then exit that function with an error.
Which will be seen by the calling function, which will exit.. and this will continue back until it's at the root of the CA, which will exit with a failure.
That will then potentially cause a rollback to occur.

Again, various WIN32APIs provide bad error…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bevanweiss
Comment options

Comment options

You must be logged in to vote
2 replies
@bevanweiss
Comment options

Answer selected by EvgenPervenenko
@EvgenPervenenko
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants