Overview
The following process return codes may be returned by a patch generated with Visual Patch:
The patch completed successfully without any errors.
The patch was aborted by the user.
Note: This return code is set in the default project script using the numeric constant EXIT_REASON_USER_ABORTED.
Patch archive does not exist.
Invalid start mode: Missing __IRAFN command line switch.
Invalid module name.
Failed to initialize patch archive.
Failed to extract primer file.
Failed to extract patch data from archive.
Failed to find patch data file.
Failed to load patch data file.
Silent patch INI file not found.
Error extracting image file.
Archive integrity check failed.
Required system component oledlg.dll was missing from the user's system.
Unable to open archive file.
Unable to allocate memory buffer.
Could not find data segment.
Could not find patch size.
Failed to read patch engine.
Unable to open patch file.
Could not determine a temp directory name. Try running patch.exe /T:<Path>
You must have at least 2MB of free space on your TEMP drive!
The patch was built with the evaluation version and has reached the end of its evaluation period.
A plugin used in the patch failed to be initialized.
One or more of the patch's screens could not be displayed.
Invalid pointer during patch execution.
Patch failed during application.
The file that will be patched could not be found.
An error occurred when trying to delete the original file.
An error occurred when trying to rename the original file.
There is not enough free disk space to patch the software.
The target drive does not exist.
The user is not running with administrative privileges.
Note: This return code is set through script that is generated by the project wizard. The constant EXIT_REASON_USER_NOT_ADMIN is often used to reference the code.
The software being patched is running and could not be shut down.
Note: This return code is set through script that is generated by the project wizard. The constant EXIT_REASON_PROGRAM_IS_OPEN is often used to reference the code.
The software being patched could not be found on the user's system. That is, %AppFolder% was not successfully located or defined.
Note: This return code is set through script that is generated by the project wizard. The constant EXIT_REASON_CANNOT_LOCATE_SOFTWARE is often used to reference the code.
The current version of the software was already installed on the user's system. No patch was necessary.
Note: This return code is set through script that is generated by the project wizard. The constant EXIT_REASON_SOFTWARE_IS_CURRENT is often used to reference the code.
The system needs to be rebooted in order to complete the patch.
Note: This return code is set through script and found in the function g_HandleSystemReboot and is called on the On Shutdown event.
Remove legacy file failed.
Failed to backup a file.