alime Posted August 23, 2005 Posted August 23, 2005 (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.ThanksAaronPS 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 August 23, 2005 by alime
Martin Zugec Posted August 23, 2005 Posted August 23, 2005 Use WMI QFE class (Win32_QuickFixEngineering)In cmd it is wmic qfe
oneless Posted August 23, 2005 Posted August 23, 2005 i use in my separate WPI_CD thisFileExists("%windir%\\Driver Cache\\i386\\sp2.cab") easy to translate for your batch script .
Yzöwl Posted August 23, 2005 Posted August 23, 2005 All on one linereg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersion|find /i "Service Pack 2"||start "" /w drive:\path\XPSP2.exewhere XPSP2.exe is the name of the service pack to install.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now