I have a registry file which I use with reg.exe to install COM files on users computer.

The batch file does this upon installation

reg import C:\Stuff\MySoftware.reg /reg:32

Can I just use reg delete to uninstall, or remove the same entries from the registry? Like this..

reg delete C:\Stuff\MySoftware.reg

No, you can't do it like this.

To delete a registry key with a .reg file, put a hyphen (-) in front of the RegistryPath in the .reg file. Like:


Now do:

Reg import "filepath" /Reg:32
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.