【问题标题】:in windows 10, is it possible to run windows updater from a .net application?在 Windows 10 中,是否可以从 .net 应用程序运行 Windows 更新?
【发布时间】:2016-11-16 08:55:05
【问题描述】:

我正在尝试找到一种以编程方式在 Windows 10 上自动安装缺少的 Windows 更新的方法。如果您能指出正确的方向或在 vb.net 中提供有关如何执行此操作的信息,那就太好了。

背景,可以跳过:

我有一个与一些 RNDIS/以太网接口的 Windows 应用程序 小工具硬件。问题是当人们开始升级到 windows 10. windows 10 中存在一个无法正常运行的错误 安装 RNDIS/以太网小工具驱动程序。驱动程序不会安装,直到 安装了更新的 Windows 更新。

【问题讨论】:

标签: .net windows-10 windows-update


【解决方案1】:
    Dim WindowsUpdaterSession As New AutomaticUpdates

    Try
    WindowsUpdaterSession.DetectNow()
        'worked
    Catch ex As Exception
        'didnt work
    End Try

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-20
    • 1970-01-01
    • 2014-08-30
    • 1970-01-01
    • 2016-04-09
    • 1970-01-01
    • 2020-07-04
    • 2016-03-14
    相关资源
    最近更新 更多