description
returns the name and product code of binary information (such as bitmaps, icons, executable files, and so on) used by a windows installer application. script code
复制代码 代码如下:
var wbemflagreturnimmediately = 0x10;
var wbemflagforwardonly = 0x20;
var objwmiservice = getobject(winmgmts:\\\\.\\root\\cimv2);
var colitems = objwmiservice.execquery(select * from win32_binary, wql,
wbemflagreturnimmediately | wbemflagforwardonly);
var enumitems = new enumerator(colitems);
for (; !enumitems.atend(); enumitems.movenext()) {
var objitem = enumitems.item();
wscript.echo(caption: + objitem.caption);
wscript.echo(data: + objitem.data);
wscript.echo(description: + objitem.description);
wscript.echo(name: + objitem.name);
wscript.echo(product code: + objitem.productcode);
wscript.echo(setting id: + objitem.settingid);
wscript.echo();
}