"Error while deleting key" displayed when deleting registry keys during the SEP manual uninstallation.
search cancel

"Error while deleting key" displayed when deleting registry keys during the SEP manual uninstallation.

book

Article ID: 156401

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

Not able to delete registry keys per the Symantec Endpoint Protection (SEP) client manual uninstall process.

"Error while deleting key"

Cause

This can be caused if there is an attempt to delete a registry key that contains embedded null characters.
These characters are not visible when viewing a registry entry.

If this registy item is accessed from user-mode, it is not possible to open the key containing the embedded null string.
 

Details:
It is not possible to manually create a registry entry with an embedded null character. This usually occurs due to a corrupt application install or similar.
It is also possible for the Windows kernel to embed a NULL character in a string to form a complete key name. 

Resolution

To delete a registry key that contains an embedded null character, first replace the null character with another character.
Accomplish this by using the RegDelNull tool from SysInternals.

This tool is available from the following URL:
http://technet.microsoft.com/en-us/sysinternals/bb897448.aspx

 Usage:  RegDelNull <path> [-s]
 -s Recurse into subkeys.

 


Applies To

Symantec Endpoint Protection 12.1

Windows 2008 R2