Patch Return Codes

The following process return codes may be returned by a patch generated with Visual Patch:

0

The patch completed successfully without any errors.

5

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.

10

Patch archive does not exist.

11

Invalid start mode: Missing __IRAFN command line switch.

12

Invalid module name.

13

Failed to initialize patch archive.

14

Failed to extract primer file.

15

Failed to extract patch data from archive.

16

Failed to find patch data file.

17

Failed to load patch data file.

18

Silent patch INI file not found.

19

Error extracting image file.

20

Archive integrity check failed.

35

Required system component oledlg.dll was missing from the user's system.

50

Unable to open archive file.

51

Unable to allocate memory buffer.

52

Could not find data segment.

53

Could not find patch size.

54

Failed to read patch engine.

55

Unable to open patch file.

56

Could not determine a temp directory name. Try running patch.exe /T:<Path>

57

You must have at least 2MB of free space on your TEMP drive!

100

The patch was built with the evaluation version and has reached the end of its evaluation period.

101

A plugin used in the patch failed to be initialized.

102

One or more of the patch's screens could not be displayed.

103

Invalid pointer during patch execution.

104

Patch failed during application.

105

The file that will be patched could not be found.

106

An error occurred when trying to delete the original file.

107

An error occurred when trying to rename the original file.

108

There is not enough free disk space to patch the software.

109

The target drive does not exist.

1200

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.

1205

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.

1210

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.

1240

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.

1250

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.

2000

Remove legacy file failed.

2001

Failed to backup a file.