ok I solved my problem with this error.

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8}
the default value in InprocServer32 was
C:\Program Files\Alwil Software\Avast4\AvAScr.dll

Had to change it to C:\Windows\SysWOW64\vbscript.dll

Also had to change permission to give full control to administrator.