等待WMI方法返回 [英] Wait for a WMI method to return

查看:73
本文介绍了等待WMI方法返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计,



快速提问...

我使用WMI方法win32_product :: install来安装软件(VC ++) )。但是它不等待安装完成。



有没有办法执行这个方法并等到安装结束?在此先感谢...



- Varun



谷歌搜索后,我发现__InstanceDeletionEvent类可以被查询。但是我无法理解它是如何工作的...任何人都可以指导我一些样本???

Hey Guys,

Quick question...
I am using WMI method win32_product::install to install a software(VC++). But it doesn''t wait for the installation to complete.

Is there any way to execute this method and wait till the installation is over? Thanks in advance...

-- Varun

After googling, I found __InstanceDeletionEvent class that can be queried. But I am unable to understand how it works... Can any one direct me to some sample???

推荐答案

你已经在http://www.codeproject.com/Messages/4476725/Wait-for- a-WMI-method-to-return.aspx [ ^ ]。请不要在多个论坛中发布相同的问题。
You already asked this question at http://www.codeproject.com/Messages/4476725/Wait-for-a-WMI-method-to-return.aspx[^]. Please do not post the same question in multiple forums.


这篇关于等待WMI方法返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆