Windows 7 - Service process failed to install vista updates using wusa.exe

Asked By tony200 on 22-May-07 01:57 PM
I have a service process to call wusa.exe to install a .msu vista update
file. The installation process can be launched successfully, but ends in

2007-05-19	16:00:54:877	 460	b9c	Agent	*************
2007-05-19	16:00:54:877	 460	b9c	Agent	** START **  Agent: Installing
updates [CallerId = wusa]
2007-05-19	16:00:54:877	 460	b9c	Agent	*********
2007-05-19	16:00:54:877	 460	b9c	Agent	  * Updates to install = 1
2007-05-19	16:00:54:877	 460	b9c	Agent	  *   Title = <NULL>
2007-05-19	16:00:54:877	 460	b9c	Agent	  *   UpdateId =
{31553ADA-9681-4644-AACE-B889E30FC0E7}.501
2007-05-19	16:00:54:877	 460	b9c	Agent	  *     Bundles 1 updates:
2007-05-19	16:00:54:877	 460	b9c	Agent	  *
{57CB622D-48C9-47C4-AFC3-369F7CA7DE93}.501
2007-05-19	16:00:54:877	3980	bb8	COMAPI	  - Updates to install = 1
2007-05-19	16:00:54:877	3980	bb8	COMAPI	<<-- SUBMITTED -- COMAPI: Install
[ClientId = wusa]
2007-05-19	16:01:04:471	 460	b9c	Agent	  * WARNING: Exit code = 0x80240020
2007-05-19	16:01:04:471	 460	b9c	Agent	*********
2007-05-19	16:01:04:471	 460	b9c	Agent	**  END  **  Agent: Installing
updates [CallerId = wusa]
2007-05-19	16:01:04:471	 460	b9c	Agent	*************
2007-05-19	16:01:04:471	 460	b9c	Agent	WARNING: WU client failed installing
updates with error 0x80240020
2007-05-19	16:01:04:518	3980	b7c	COMAPI	>>--  RESUMED  -- COMAPI: Install
[ClientId = wusa]
2007-05-19	16:01:04:518	3980	b7c	COMAPI	  - Install call failed
2007-05-19	16:01:04:518	3980	b7c	COMAPI	  - Reboot required = No
2007-05-19	16:01:04:518	3980	b7c	COMAPI	  - WARNING: Exit code = 0x80240FFF;
Call error code = 0x80240020
2007-05-19	16:01:04:518	3980	b7c	COMAPI	---------
2007-05-19	16:01:04:518	3980	b7c	COMAPI	--  END  --  COMAPI: Install
[ClientId = wusa]
2007-05-19	16:01:04:518	3980	b7c	COMAPI	-------------
2007-05-19	16:01:05:298	3980	bb8	COMAPI	WARNING: Operation failed due to
earlier error, hr=80240020
2007-05-19	16:01:08:496	3980	bb8	COMAPI	-----------  COMAPI:
IUpdateServiceManager::RemoveService  -----------
2007-05-19	16:01:08:496	3980	bb8	COMAPI	  - ServiceId =
{9ef990f6-a009-4244-8fd9-a4a27b7cb2a8}
2007-05-19	16:01:08:917	 460	ec8	Agent	WARNING: could not delete
Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\9ef990f6-a009-4244-8fd9-a4a27b7cb2a8 service registry key 0x80070002
2007-05-19	16:01:08:917	 460	ec8	Agent	WARNING: Failed to delete service
from the backup store, error = 0x80070002
2007-05-19	16:01:08:933	3980	bb8	COMAPI	IUpdateService removing volatile
scan package service, serviceID = {9EF990F6-A009-4244-8FD9-A4A27B7CB2A8}
2007-05-19	16:01:08:933	 460	ec8	Agent	WARNING: WU client fails
CClientCallRecorder::RemoveService with error 0x80248014
2007-05-19	16:01:08:933	3980	bb8	COMAPI	WARNING: ISusInternal::RemoveService
failed, hr=80248014

Anybody has any ideas? Many many thanks.




MowGreen [MVP] replied on 22-May-07 02:28 PM
0x80248014 WU_E_DS_UNKNOWNSERVICE
the caller has requested some action on a service that is not known to
the datastore

See if the following KB article applies -

When you run Wusa.exe together with the /quiet option to try to install
certain software packages on a Windows Vista-based computer, the
installation fails
http://support.microsoft.com/kb/929761


MowGreen  [MVP 2003-2007]
===============
*-343-*  FDNY
Never Forgotten
===============
tony200 replied on 22-May-07 02:40 PM
Thanks MowGreen. The kb929761 does not apply. I didn't use the /quiet switch.
Actually the exit code in my case is 0x80240020. Seems that WUA fails to
impersonate to logon user (or built-in administrator). I don't know why this
happen.
Sudheer GN [MSFT] replied on 22-May-07 05:05 PM
Hi,
Is the service process running as Local System or some other account? Also,
is any user logged into the machine when this is being attempted?

If it is running as some other account, can you please try to install WSUS
3.0 client from
http://support.microsoft.com/kb/932494
and see if that resolves the issue.


--
Sudheer GN
Microsoft, WU Client


This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
tony200 replied on 22-May-07 08:39 PM
Hi,

The service process is running as Local System. Is it by-design that a Local
System service can not call wusa.exe /quiet to install a downloaded
standalone patch on Vista? Many thanks.
Sudheer GN [MSFT] replied on 23-May-07 11:05 AM
Hi,
I think we need more details about the scenario to investigate this further.
There are some types of scenarios that are not supported, but installing
from a service running as LocalSystem should work.

Did you check if WSUS 3.0 client resolved the issue?

Can you please contact me via email?
(Please remove online from my email address to get the correct email)


--
Sudheer GN
Microsoft, WU Client


This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm