Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 773
ahmadali shafiee Avatar asked Oct 31 '11 19:10

ahmadali shafiee


1 Answers

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.

like image 109
Harry Johnston Avatar answered Oct 22 '22 00:10

Harry Johnston