PDA

View Full Version : How to tell another app if update.exe completed successfully



sks2004
11-07-2005, 05:07 PM
We have a custom app...that calls Update.exe. After Update.exe is done, this custom app continues with other tasks.

Question: How to tell if the patch that was executed completed successfully? Can Update.exe pass a return code (it doesn't appear to do so)?

sks2004
11-07-2005, 05:37 PM
BTW: We know if the patch process failed...because Windows Installer will return a code (example: 1602 = canceled installation). It appears that a 0 is a return code for success, but could any other values also signify sucess, besides zero?

Zweitze
11-08-2005, 03:55 AM
ERROR_SUCCESS_REBOOT_REQUIRED also means success.

sks2004
11-08-2005, 11:14 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/error_codes.asp

Pay special attention to the top of that page:


Note The error codes ERROR_SUCCESS, ERROR_SUCCESS_REBOOT_INITIATED, and ERROR_SUCCESS_REBOOT_REQUIRED are indicative of success. If ERROR_SUCCESS_REBOOT_REQUIRED is returned, the installation completed successfully but a reboot is required to complete the installation operation.