1) Go to Registry Editor
2) Click on the below path
HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> Windows
3) Right click on Windows and add New String Value with name SystemDirectory
Provide a value to SystemDirectory(generally C:\Windows\System32) where the Regi.exe file exists.
![Capture.PNG]()