Matt Berry Posted February 17, 2006 Posted February 17, 2006 I have a winxp update disc that I've been using / updating for a while now. It contains all the hotupdates, security software and a bunch of other information I use to setup or fix computers. It's not perfect, but I've been using various cmd scripts to automatically install the updates and software. It's worked fine for me so far, but now with the latest updates from microsoft I'm having a little trouble. I need to know how to automatically detect which version of media player has been installed on a machine, so that I can have a script install the right update.Also is there a way to automatically detect which service pack is installed on a computer? Right now I have to know what service pack is installed and manually run the script for it. If it could be done automatically that would be cool. Thanks for any help with this
Sonic Posted February 21, 2006 Posted February 21, 2006 For Windows Media Player (used in a cmd batch)::Détection de la version de Windows Media Playerset wmpver=9reg query HKLM\Software\Microsoft\MediaPlayer\10.0 >NULif %errorlevel%==0 set wmpver=10if exist WMP%wmpver%_911565.exe echo - Windows Media Player, Hotfixif exist WMP%wmpver%_911565.exe start /wait "" WMP%wmpver%_911565.exe /quiet /norestartFor service pack, use the same system but with this regkey ( I don't use SP1 ... I update all systems to SP2 ^^) HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion
Matt Berry Posted February 25, 2006 Author Posted February 25, 2006 Thank you for the information, it is exactly what I've been looking for. Since I deal with a lot of different computers and people, the choice of SP1 or SP2 isn't always mine. It is up to me to make sure they stay up to date with the proper updates and the information that you have provided me will help immensly. Thanks again
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now