Ahmadali Shafiee
Ahmadali Shafiee

Reputation: 4657

Download Windows Updates Using C#

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.

Upvotes: 8

Views: 3723

Answers (1)

Harry Johnston
Harry Johnston

Reputation: 36348

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.

Upvotes: 6

Related Questions