Howdy Mansur,
Whether an update is installed automatically or manually, there should
be an installation log file generated. That's not true in all cases for
Vista, the one I posted was specific to KB929123.
Since there's sparse documentation on Vista's updating it's hard for me
to give you accurate information on the error code 1.
Does it show as Windows Update error 1 or is the syntax different ?
If one installs a previously installed update in XP, in most cases,
there is no notification that the update has been previously installed.
i.e. there is no adverse consequences nor error message; it just
installs again.
I don't know how Vista handles this. And, I do not know how to script
installation of updates. So, I'm not much help there, am I ?
Have you read this ? :
Description of the Windows Update Stand-alone Installer (Wusa.exe) and
of .msu files in Windows Vista
http://support.microsoft.com/kb/934307
MowGreen [MVP 2003-2007]
===============
*-343-* FDNY
Never Forgotten
===============
Mansur_Farooq wrote:
> Hi,
>
> I am not using Windows update here but I am trying to install the patch
> manually.
> And I know the previous installation of the patch was successful.This case
> is not specific to one patch but it is the same behaviour for all patches on
> Vista.
> I am working on a patch management solution.
>
> Now for the problem itself , I have been able to capture the error code that
> Vista gives in the following two scenarios with a script:
> 1) If I try to install a security patch on the OS where the patch already
> installed.
> 2) When the update does not apply to the system in question (an example of
> this would be trying to install a Media Center hotfix on a version of Vista
> that does not include the Media Center feature).
>
> In both of the above scenarios the error code returned by the OS is code 1.
>
> Therefore I want to be able to force reinstallation of a patch to
> differentiate between the two situations.
>
> Can I force reinstallation of the patch in case 1?
>
> Regards,
> Mansur
>
> "MowGreen [MVP]" wrote:
>
>
>>First, see if the update is listed as described below:
>>
>>>Click Control Panel, click Security, then under Windows Update,
>>>click View installed updates and select from the list of updates.
>>
>>There is an installation log for the update named
>>Windows6.0-KB929123-x86.msu .
>>Do a Search for it. See if you can open it and post the contents.
>>Since I do not have Vista installed, not sure how one views it. See if
>>it will open in Notepad.
>>
>>Perhaps we can find where the update failed to install all of it's
>>components.
>>The only reference to Windows Update error 1 specific to Vista mentions
>>installing language packs only -
>>http://windowshelp.microsoft.com/Win...dbd1b1033.mspx
>>
>>MowGreen [MVP 2003-2007]
>>===============
>> *-343-* FDNY
>>Never Forgotten
>>===============
>>
>>
>>Mansur_Farooq wrote:
>>
>>
>>> I am trying to install the Vista patch(KB929123) on a machine which already
>>>has the patch installed.It is telling me that the patch is not applicable to
>>>the system.Is there a way to skip the check that the OS does to see if the
>>>patch is already installed and force reinstallation of the patch?
>>>
>>>I am having a problem with the return code being 1 in both cases where:
>>>1) A patch is already installed on Vista
>>>2) A patch requires a component which is missing.
>>>I want to be able to differentiate between the two situations so is it
>>>possible for me to force reinstallation of a patch which may already be
>>>installed on a Vista machine?
>>>
>>>
>>>
>>