fix cannot use reg.exe at some clean computers