PDA

View Full Version : Custom action return value from an exe file?



DavidGurrWKL
02-25-2008, 03:38 PM
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.

MichaelU
02-26-2008, 10:45 AM
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.

DavidGurrWKL
02-26-2008, 03:19 PM
Michael,

Thank you for your prompt answer.

David