http://bugs.winehq.org/show_bug.cgi?id=3269
Summary: regedit doesn't support deleting keys or values based on .reg file Product: Wine Version: 20050830 Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-tools AssignedTo: wine-bugs@winehq.org ReportedBy: devel8421@hotmail.com
Microsoft description of the expected regedit behaviour can be found here: http://support.microsoft.com/default.aspx?scid=kb;en-us;310516&sd=tech
About deleting it says: " Deleting Registry Keys and Values To delete a registry key with a .reg file, put a hyphen (-) in front of the RegistryPath in the .reg file. For example, to delete the Test subkey from the following registry key: HKEY_LOCAL_MACHINE\Software put a hyphen in front of the following registry key in the .reg file: HKEY_LOCAL_MACHINE\Software\Test The following example has a .reg file that can perform this task. [-HKEY_LOCAL_MACHINE\Software\Test] To delete a registry value with a .reg file, put a hyphen (-) after the equals sign following the DataItemName in the .reg file. For example, to delete the TestValue registry value from the following registry key: HKEY_LOCAL_MACHINE\Software\Test put a hyphen after the "TestValue"= in the .reg file. The following example has a .reg file that can perform this task. HKEY_LOCAL_MACHINE\Software\Test "TestValue"=- " Currently wine's regedit doesn't work both for deleting keys and for deleting values.