IUpdateInstaller 介面 (wuapi.h)

從電腦安裝或卸載更新。

繼承

IUpdateInstaller 介面繼承自 IDispatch 介面。 IUpdateInstaller 也有下列類型的成員:

方法

IUpdateInstaller 介面具有這些方法。

 
IUpdateInstaller::BeginInstall

啟動更新的異步安裝。
IUpdateInstaller::BeginUninstall

啟動更新的異步卸載。
IUpdateInstaller::EndInstall

完成更新的異步安裝。
IUpdateInstaller::EndUninstall

完成更新的異步卸載。
IUpdateInstaller::get_AllowSourcePrompts

取得並設定布爾值,指出是否要在安裝更新時向用戶顯示來源提示。 (取得)
IUpdateInstaller::get_ClientApplicationID

取得並設定目前的用戶端應用程式。 (IUpdateInstaller.get_ClientApplicationID)
IUpdateInstaller::get_IsBusy

取得布爾值,這個值表示在特定時間計算機上是否正在進行安裝或卸載。
IUpdateInstaller::get_IsForced

取得或設定 Boolean 值,指出是否要強制安裝或卸載更新。 (取得)
IUpdateInstaller::get_ParentHwnd

取得並設定可包含對話框之父視窗的句柄。 (取得)
IUpdateInstaller::get_ParentWindow

取得並設定 介面,表示可以包含對話框的父視窗。 (取得)
IUpdateInstaller::get_RebootRequiredBeforeInstallation

取得布爾值,指出安裝或卸載更新之前是否需要重新啟動系統。
IUpdateInstaller::get_Updates

取得並設定介面,其中包含針對安裝或卸載所指定之更新的只讀集合。 (取得)
IUpdateInstaller::Install

啟動更新的同步安裝。
IUpdateInstaller::p ut_AllowSourcePrompts

取得並設定布爾值,指出是否要在安裝更新時向用戶顯示來源提示。 (Put)
IUpdateInstaller::p ut_ClientApplicationID

取得並設定目前的用戶端應用程式。 (IUpdateInstaller.put_ClientApplicationID)
IUpdateInstaller::p ut_IsForced

取得或設定 Boolean 值,指出是否要強制安裝或卸載更新。 (Put)
IUpdateInstaller::p ut_ParentHwnd

取得並設定可包含對話框之父視窗的句柄。 (Put)
IUpdateInstaller::p ut_ParentWindow

取得並設定 介面,表示可以包含對話框的父視窗。 (Put)
IUpdateInstaller::p ut_Updates

取得並設定介面,其中包含針對安裝或卸載所指定之更新的只讀集合。 (Put)
IUpdateInstaller::RunWizard

啟動精靈,引導本機使用者完成安裝更新的步驟。
IUpdateInstaller::Uninstall

啟動更新的同步卸載。

備註

您可以使用 UpdateInstaller coclass 來具現化這個介面。 使用 Microsoft.Update.Installer 程式識別碼來建立 物件。

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional 與 SP3 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003、Windows 2000 Server 與 SP3 [僅限桌面應用程式]
目標平台 Windows
標頭 wuapi.h

另請參閱

IUpdateInstaller2