MicrosoftのWebサイトにあるセキュリティコンポーネントのアップグレードページのソースコードを読んで、解決策を見つけてください。
メインコード:
var error = wmpocx.error;
var errorItem;
var index; //index into the error queue.
var message;
//The error is an error object that can have multiple errors in a queue
//error.errorCount is the count of errors in the error queue
for(index=0; index<error.errorCount; index++)
{
errorItem = wmpocx.error.item(index);
//you can get information on the error with the following properties
//errorItem.errorCode
ecode = errorItem.errorCode;
message = errorItem.errorDescription;
}