The registry approaches are okay and worth doing, but to be sure you might also consider instantiating something from within the COM object wrapped in a try {} catch (COMException) {}, then present something sensible to the user if a COMException got caught.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…