Download Windows Updates Using C#

2020-07-08 06:46发布

Is there any way to download Windows updates programmatically from within a C# application? I want to manage the installation of updates from within my application.

1条回答
我只想做你的唯一
2楼-- · 2020-07-08 07:32

The Windows Update API is documented here. A quick stackoverflow search has convinced me that you can indeed use COM from C# so this should solve your problem.

I also have some sample code, not in C#, but it may give you a head start in understanding how the interfaces can be used.

查看更多
登录 后发表回答