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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...