The error is caused by cannot find IDEPath in regedit, so we need to set it correctly as below(add new string value)