windows-update

How to Discover if Windows Update is optional, recommended, or important

余生颓废 提交于 2019-12-06 04:02:33
I'm currently writing a type of automated program that among other things searches for windows updates. It can search for and retrieve updates just fine, but I am having trouble drilling down for what priority an update is. I would like to have an output similar to: Total Updates: 25 Important: 12 Optional: 13 The .IsMandatory field is only used when the update is specifically for WUA itself, so important updates are not necessary labeled with .IsMandatory. Code snippet for searching the WUA is below: Dim updateSession ' Object to hold our MS Update Session Dim updateSearcher ' Object to

Download Windows Updates Using C#

假如想象 提交于 2019-12-05 20:54:19
问题 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: 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. 来源: https://stackoverflow.com/questions

ASP.NET MVC4 solution fails to build after installing KB2993928

笑着哭i 提交于 2019-12-04 18:08:54
问题 We have an ASP.NET MVC 4 solution with a couple of references that has been building without problems for about 2 years now. However, after installing KB2993928 and KB2993937 this morning, we cannot run FxCop on this solution on our Windows 7 machines anymore. I have a feeling this is because this update changed the DLL version of the System.Web.Mvc assembly in the GAC. This is because in the GAC I can currently find 3 different System.Web.Mvc DLLs, which are all updated today. The error we

SQL Server Management Studio won't work after Windows Update

白昼怎懂夜的黑 提交于 2019-12-04 15:29:38
Came to work this morning, my PC (Win7 x64) had force rebooted by Windows Update. Now, SQL Server Management Studio (SQL Server 2008 r2) fails when connecting to a database and trying to expand the tree view, citing: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT:0x80004002 (E_NOINTERFACE

WUApiLib IUpdateInstaller2 yields Error; Some OS updates install others throw HResult -2145124318

帅比萌擦擦* 提交于 2019-12-04 04:06:21
Updates are being downloaded from a local server and not from WUS or Microsoft Repositories. Local server is Linux based which host's the contents for each update. I'm not using UpdateDownloader to download from Microsoft Servers, i manually download the update content and then use CopyToCache . These installed fine Security Update for Microsoft .NET Framework 3.5 SP1 on Windows XP, Server 2003, Vista, Server 2008 x86 (KB2736416) Security Update for Microsoft Visual Studio 2010 (KB2542054) These Didn't Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server

Download Windows Updates Using C#

﹥>﹥吖頭↗ 提交于 2019-12-04 03:10:59
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. 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. 来源: https://stackoverflow.com/questions/7958803/download-windows-updates-using-c-sharp

ASP.NET MVC4 solution fails to build after installing KB2993928

耗尽温柔 提交于 2019-12-03 11:49:24
We have an ASP.NET MVC 4 solution with a couple of references that has been building without problems for about 2 years now. However, after installing KB2993928 and KB2993937 this morning, we cannot run FxCop on this solution on our Windows 7 machines anymore. I have a feeling this is because this update changed the DLL version of the System.Web.Mvc assembly in the GAC. This is because in the GAC I can currently find 3 different System.Web.Mvc DLLs, which are all updated today. The error we receive in the build is as follows: 6>MSBUILD : error : CA0001 : The following error was encountered

Windows thinks signed installer is malware after security update (KB3124605)

痞子三分冷 提交于 2019-12-01 09:28:21
2 Years ago @Dejan Maksimovic asked a question about Internet Explorer shows valid certificate as “corrupt or invalid signature” . To date I am experiencing a comparable issue with an installer that needs elevated rights. The problem seems to be of the same origin but then for KB3124605 . Installer is signed using signtool and certificate is valid until August 2016. When I installed a cumulative update containing this patch Windows SmartScreen tells me that the publisher is unknown, but when I uninstall the Security update, Windows seems to be able to distinguish the publisher (the one that is

Best way of detecting if Windows has Windows Updates ready to download/install?

两盒软妹~` 提交于 2019-12-01 08:39:54
I'm specifically interested in Windows 2000/XP, but Vista/7 would be interesting too (if different). I was thinking along the lines of task scheduling a batch file or equivalent on a daily basis. EDIT: Sorry, I should have provided more info. The question pertains to 10 machines which I manually apply updates. I don't want to install the updates programatically, but just find out if there are updates ready to download/install (i.e. the update shield icon in the system tray is indicating this) using a batch or script. Thanks. Alex You could use WUApiLib : UpdateSessionClass session = new

WCF service errors after installing WindowsXP updates

坚强是说给别人听的谎言 提交于 2019-11-30 06:58:26
问题 Greetings, today before I start working on my application I updated my WinXP. After all updates have been installed my WCF service stop working. There is a following error when I try to open service.svc file in the browser: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: An error occurred