I have a batch file which deletes registry entries from a computer, the batch file has the following lines. 

```
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Test\Installation\Test-x64-9.2 /f > remove.log 2>&1
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Test\Service\Test-x64-9.2 /f > remove.log 2>&1

```

This batch file is called by the Installer (InstallAnywhere I guess). when the installer runs and executes this batch file, the remove.log states: 

```
ERROR: The system was unable to find the specified registry key or value.  

```

When I run this batch file manually, it works fine. I thought there was some issue with the batch file, so i created a VBScript to delete the Reg entries. same thing again.  

when I run the vbs manually, it deleted the reg keys but when the same vbs is called by the installer, it doesnot delete the reg entries. 

If permissions was the problem, then I guess I would have received a `permission denied` error. which did not. It just says `ERROR: The system was unable to find the specified registry key or value.` 

Does anyone know what could be the issue?