This code snipped for the Windows Scripting Host displays the number of COM-AddIns currently installed into Excel.
It works fine except for when there are no COM-AddIns installed. I believe it should output a "0", but instead it raises an exception (code 800A03EC). Does anyone know why?
test.vbs
Set objExcel = CreateObject("Excel.Application")
WScript.Echo objExcel.ComAddIns.Count