Hello,
I've got a section of code below that I want to execute the WinXP SP1 install. I've tried mapping a drive as you see below...and also just using the straight UNC path. Neither works. For testing purposes, the script echoes out the current SP version, click OK and it should run the SP1 install (testing machine already has sp1, that's why it's checking to see if spver < 2), and finally echoes to the screen "Installing SP1". It never starts the SP1 install however. I can run it manually by double clicking on it...and it warns me I already have SP1. But it will not start from my script. Any help would be appreciated.
Thanks,
Matt
' CHECK FOR XPSP1, INSTALL IF IT DOES NOT EXIST
Wscript.echo objItem.CSDversion
spver = Split(objItem.CSDVersion, " "
Wscript.echo spver(2)
If CInt(spver(2)) < 2 then
WshNetwork.MapNetworkDrive "I:", "\\AC\INSTALL"
WshShell.Run "I:\Patches and Fixes\WinXP\SP1\XPSP1.EXE",1,true
Wscript.Echo "Installing SP1"
End If
I've got a section of code below that I want to execute the WinXP SP1 install. I've tried mapping a drive as you see below...and also just using the straight UNC path. Neither works. For testing purposes, the script echoes out the current SP version, click OK and it should run the SP1 install (testing machine already has sp1, that's why it's checking to see if spver < 2), and finally echoes to the screen "Installing SP1". It never starts the SP1 install however. I can run it manually by double clicking on it...and it warns me I already have SP1. But it will not start from my script. Any help would be appreciated.
Thanks,
Matt
' CHECK FOR XPSP1, INSTALL IF IT DOES NOT EXIST
Wscript.echo objItem.CSDversion
spver = Split(objItem.CSDVersion, " "
Wscript.echo spver(2)
If CInt(spver(2)) < 2 then
WshNetwork.MapNetworkDrive "I:", "\\AC\INSTALL"
WshShell.Run "I:\Patches and Fixes\WinXP\SP1\XPSP1.EXE",1,true
Wscript.Echo "Installing SP1"
End If