Jump to content

Win.2k Updates


Valerie

Recommended Posts

Win.2k SP.4

I have downloaded all the updates/hotfixes since SP.4 and am now looking to automate their installs. I can write a script to do this but don't know how to get round having to click the "Agree" box and the "Do not restart now" box. Is this possible please?

V..

Link to comment
Share on other sites


You could do something like this...

  • Make a folder named 'Updates' with two subfolders named 'Type-1' and 'Type-2'.
  • All type-1 updates goes in 'Updates\Type-1\' and all type-2 updates in 'Updates\Type-2\'.
  • Copy/paste the contents further down into a batchfile and save it in 'Updates\'.
  • Run the batchfile.

@echo off
title Installing Updates . . .
for %%g in (Type-1\*.exe) do (
echo.
echo Processing %%g
echo Please Wait . . .
%%g /q /n /z)
for %%g in (Type-2\*.exe) do (
echo.
echo Processing %%g
echo Please Wait . . .
%%g /q:a /r:n)

Here is a version for WinXP-SP2 users, which defaults to the QFE branch for Type-1 updates :

@echo off
title Installing Updates . . .
for %%g in (Type-1\*.exe) do (
echo.
echo Processing %%g
echo Please Wait . . .
%%g /q /n /z /b:sp2qfe)
for %%g in (Type-2\*.exe) do (
echo.
echo Processing %%g
echo Please Wait . . .
%%g /q:a /r:n)

Edit : Added WinXP-SP2 version of batchfile, as i linked this post to a WinXP user.

Edited by Martin H
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...