Re: Install patches through vbscript



"Miztiik" <Miztiik@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:301B4170-25A7-438C-BD18-8C7F82CBFA9E@xxxxxxxxxxxxxxxx
I want to install the patches in folder "PatchRepository" through a vbscript.
I would also like to get the error message of any patch which couldn't not be
installed for any reason [ Not applicable or Base patch not installed or
Incompatible Os Version etc.]

If the exit code of the script is zero [assuming there are no errors in
installation.] the same should be dumped onto a file. If any error, they
should also be listed on the file along with the patch name that failed.

Thank in advance for your help
Which part are you struggling with? There are a number of stages:

Loop through the folders files using FileSystemObject to get Folder and its Files collection.
Open a text file using FileSystemObject and TextStream.
Run each patch using WScript.Shell's Run method. (Maybe use Exec method if you need to trap console output.)
Trap any errors and write to TextStream, also write Run method's return value.
Close TextStream.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name


.



Relevant Pages

  • screend.conf - help an idiot
    ... > You might want to try the appropriate patch listed ... > Modification Type: NEW KIT ... > The Patch Kit Installation Instructions and the ... > 2 Special Instructions ...
    (Tru64-UNIX-Managers)
  • 9_Recommended error codes (specifically return code 5)
    ... * "return code 2" indicates patches are already installed. ... * "return code 25" means a patches requires another patch that is not yet installed. ... With or without using the save option, the patch installation process ... Installing 114008-01... ...
    (SunManagers)
  • SOLUTION: Q811493 crashes system at boot with BSOD C0000135 WINSRV.DLL could not be found
    ... I always had "Automatic Updates" running and downloaded every ... For some reasen, however, patch Q811493 kept ... had, but because KB824141 is also an update of critical KERNEL files, ... Spending 4 hours solving a MS bug (booting from the installation CD is ...
    (microsoft.public.win2000.general)
  • MS01-058 exploit - W32/Cool.A-mm
    ... received two messages indicating it (the patch) had broken the ... I thought to wait for more feedback (two reports of problems really ... given the installation reports below, and make sure you install on a ... display mode and then reinstall sp6. ...
    (NT-Bugtraq)
  • RE: Performing Cleanup failes when installing patches
    ... the pagefile is 768-1536 MB. ... Installed server, applied policy - patch works ... SIZE of the pagefile that cause the installation to fail ...
    (microsoft.public.windows.server.general)