Jump to content

Way to verify if Service Pack 2 is installed?


Recommended Posts

Posted (edited)

Is there a way to find out if a service pack 2 has been installed?

i want to use a batch script to check for it being installed and then install it if not.

Thanks

Aaron

PS i think i have the way to do the installing and such just need to find out is there a way to check for it being installed through the Command Prompt... Thanks

Edited by alime

Posted

All on one line

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersion|find /i "Service Pack 2"||start "" /w drive:\path\XPSP2.exe

where XPSP2.exe is the name of the service pack to install.

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