Showing results for 
Search instead for 
Did you mean: 

Custom action return value from an exe file?

The ISE2008 user guide notes that use can be made of the return values from DLL files called in custom actions -

"When a non-zero value is returned by your function, the installation continues. If zero is returned, the installation exits. "

Is it possible to make use of return values from EXE files. I experimented and found a return of '0' was expected and any other value caused an error 1722 to be displayed. After a further notice screen, the installation process was then terminated.

Is there a better way? Can the 1722 error message be disabled?

Thank you in advance for any guidance.
Labels (1)
0 Kudos
2 Replies
Flexera MichaelU

Re: Custom action return value from an exe file?

The 1722 error on non-zero return values from EXE files is MSI behavior. You can disable this by selecting "Ignore Exit Code" on your custom action, but you cannot change what value indicates a failure.
0 Kudos

Thank you


Thank you for your prompt answer.

0 Kudos