Patch.SourceListForceResolution 方法

SourceListForceResolution 方法清除上次使用的源属性。 这强制安装程序下次需要修补程序源时搜索有效修补程序源的源列表。 例如,安装程序要求修补程序源在缺少修补程序的本地缓存副本时执行安装或重新安装。 此方法调用 MsiSourceListForceResolution

语法

Patch.SourceListForceResolution()

参数

此方法没有任何参数。

返回值

此方法不返回值。

要求

要求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003、Windows XP 和 Windows 2000 上的 Windows Installer 3.0 或更高版本
DLL
Msi.dll
IID
IID_IPatch定义为 000C10A1-0000-0000-C000-000000000046

另请参阅

修补程序

MsiSourceListForceResolution

Windows Installer 2.0 及更早版本中不支持