When Client Profile Updating Utility finishes, it sets the value of the errorlevel variable based on its exit status. The following bit mask can be used to retrieve Client Profile Updating Utility completion status from the errorlevel code:
Note: CPUU returns CPUU_CRASH if the application crashes.
If you stop the CPUU process by using Task Manager, you receive the CPUU_SUCCESS return code.
The following table lists the errorlevel flags that can be set for each mode Client Profile Updating Utility runs in:
|Status||Return Code (errorlevel)|
|Exit after running in Update mode.||
CPUU_CANNOT_START—Nothing to update.
CPUU_SUCCESS—One or more profiles were updated.
CPUU_NO_SWITCH_MSG—No Switch Message was found for one or more profiles.
CPUU_SWITCH_ERR—Update failed for one or more profiles.
CPUU_GLOBAL_ERR—Update failed. CPUU_USER_ABORT—Update was aborted by the user.
|Exit after running in Undo mode.||
CPUU_CANNOT_START—Nothing to undo.
CPUU_SUCCESS—One or more profiles were un-done.
CPUU_SWITCH_ERR—Undo failed for one or more profiles.
|Exit after running in Cleanup mode.||
CPUU_CANNOT_START—Nothing to clean up.
CPUU_SUCCESS—One or more profiles were cleaned up.
CPUU_USER_ABORT—Cleanup was aborted by the user.