Jump to content

Batch File for KB887978


HickoryShade

Recommended Posts

Not really sure if this can be done. I Need to deploy the Security Update for Word 2002 KB887978 as a login batch file. This is what I have so far:

@ECHO OFF

:START

IF EXIST C:\WINNT\Installer\kb887978.exe GOTO END

COPY G:\XXXXXXX\New\kb887978.exe "C:\WINNT\Installer\kb887978.exe" /-Y

START /r /w C:\WINNT\Installer\kb887978.exe

ECHO

:END

It needs to be copied from a network drive and saved/installed and bypassed the next time the user logins. But I have not had much success running this batch file.

Any insight on this matter would be greatly appreciated.

:}

Peace.....

Link to comment
Share on other sites


The script itself looks fine to me, HickoryShade. The only possible error I can think of at the moment is if this script gets run before the network drive G gets mapped.

You only say that you are having trouble running this script. Could you be more specific? What kind of errors, if any, are you getting? Is the update file copying but not being run? Is it not being copied at all? Is the script not running on login like it is supposed to?

Link to comment
Share on other sites

Thanks for your post.....The batch file copies the file over but it does not want to install the file. There is no visible sign that 1) an install is happening or 2) that it actually installed. The KB887978 does require some interaction from the user. Would this cause the batch file not to install the file?

Peace...

Link to comment
Share on other sites

I've tidied it a little bit, but the only problem I could see was the /r switch, I've never heard of it!

@ECHO OFF
:START
IF EXIST C:\WINNT\Installer\kb887978.exe GOTO :EOF
COPY G:\XXXXXXX\New\kb887978.exe "C:\WINNT\Installer\"
START "" /w C:\WINNT\Installer\kb887978.exe
GOTO :EOF

You could also add switches to the start line, maybe something like:

  • /q /r:i or /q:a /r:s

The former would install without prompts and restart if required, whereas the latter would install in silent mode and force a restart.

Edited by Yzöwl
Link to comment
Share on other sites

Thank you all....Especially to Yzöwl!! Your post was the way to go :thumbup

This is how it looks now:

@ECHO OFF

:START

IF EXIST C:\WINNT\Installer\kb887978.exe GOTO :EOF

COPY G:\XXXXXXX\New\kb887978.exe "C:\WINNT\Installer\"

START "" /w C:\WINNT\Installer\kb887978.exe /q:a

GOTO :EOF

Peace Out....

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...