Installation of Office SR-2
Keywords: Office SR2
Question:
I'm looking for an update of the pack office service release 2 (sr2). Do you
have a script of that kind?
Answer:
Here is some rough code that works for our SR2 updates. Just fill in your PID.
;***********************************************************************************
; WINBATCH SCRIPT *
; V.99G *
; *
; File: sr2 patch *
; Version: number *
; Author: Steve Mcleod *
; Date Created: ??/??/1999 *
;***********************************************************************************
Run ("sr2aof97.exe", "/q")
;File extraction Window
WinWaitExist("Microsoft Office97 SR-2a",-1)
WinWaitClose("Extracting")
;Enter the product ID Window
WinWaitChild("Microsoft Office 97 SR","Product ID",-1)
SendKeysTo("Microsoft Office 97 SR","YOUR PRODUCT ID HERE")
TimeDelay(1)
SendKeysTo("Microsoft Office 97 SR","~")
;Warning message to close all MS apps.
WinWaitExist("Microsoft Office 97 SR",-1)
SendKeysTo("Microsoft Office 97 SR","~")
WinWaitExist("Microsoft Office 97 SR",-1)
WinTitle("Microsoft Office 97 SR","Window 1")
WinWaitClose("Window 1")
;If already installed exit
installed = WinWaitExist("Microsoft Office SR",3)
If (installed == @TRUE)
SendKeysTo("Microsoft Office SR","~")
Goto Done
EndIf
;Patch finished
WinWaitChild("Microsoft Office 97 SR","Microsoft Office97 SR-2 completed",-1)
SendKeysTo("Microsoft Office 97 SR","~")
WinWaitExist("Microsoft Office 97 SR",-1)
SendKeysTo("Microsoft Office 97 SR","!n")
:Done
Article ID: W14240
Filename: Install Office SR2.txt