If you get the error "A dynamic link library (DLL) initialization routine failed" that suggests that one of the DLLs aren't registered in the registry correctly. This can be corrected by the regfiles.bat script:
(This will unregister and then re-register all DLLs)
Open the regfiles.log file created in '%OG_HOME%\bin' folder in order to ensure it contains no errors.
Note: The error message: "ERROR: The system was unable to find the specified registry key or value." should be disregarded if on the line above it contains the text ". Any error below can be ignored."