Doh.. I think you copied MY error in my post.. sorry Kent!
Ok.. let's try this again:
code:
:O2K_SR2
$currentfilever = "9.0.0.4527"
$winpath = readvalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\winword.exe","")
IF getfileversion($winpath,"FileVersion") < $currentfilever
GOSUB ASSIGN_UTILITY_DRIVE
MESSAGEBOX("Please be patient. This process takes a minute to display its progress, and may take up to 15 minutes to install. Please do not open any applications until the installation is complete and your machine restarts. Click OK to continue.","Installing Office 2000 SR-2",16,0)
CLS
Run "U:\Upgrades\SP2\sp2upd.exe /q"
Exit 0
Endif
Return
If this doesn't work, try running a script from the command line that looks something like this:
code:
$currentfilever = "9.0.0.4527"
$winpath = readvalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\winword.exe","")
? "The winword.exe path from the registry is: " + $winpath
? "Current file version is: " + $currentfilever
$fileversion = getfileversion ($winpath,"FileVersion")
If $fileversion < $currentfilever
? $fileversion + " is less than " + $currentfilever
else
? $fileversion + " is not less than " + $currentfilever
Endif
See what this comes out with.. it should tell you where you're going wrong.
Brian