quotee Posted July 7, 2005 Posted July 7, 2005 Hello I want to build a unattended software update DVD (for Windows XP, of course).I want to install all software that is not installed ,yet. So far no problem.But I also want to install all Windows hotfixes that are not installed, yet. Now I need to know, how I can find out, wich hotfixes are installed. I tryed to create a batch script, that searches the system for (for example) KB867282.cat - if that file exists, the update KB867282 will not be installed. The problem is that I cannot find a command that makes it possible to search subfolders for a unique file. The folder where (for example) KB867282.cat is located is a by the system generated folder ({F750D5C3-29EE-11E1-85S5-BBC04FC295EE}) (this is not a SID).I would prefer a method to search with a batch file (if exist ....)p.s. By the way, I am also searching for a command to find out wich operating system is in use (also for a batch file) - the command %os% tells me that I am running Windows_NT - problem is that in Windows2000 you get the same result! Now let me see that I am in "the" forum ;-)greetz quotee
quotee Posted July 7, 2005 Author Posted July 7, 2005 hey guys no ideas??someone of you must have had this problem before!?greetz
bonedaddy Posted July 7, 2005 Posted July 7, 2005 I use Windows Update List, find it a Major Geeks.............small free program.......BD
tarquel Posted July 7, 2005 Posted July 7, 2005 You can you the command line version of the mbsa package to run a scan of the system (2000 and above ) and produce a log file which you can look at and it lists them.I used it alot befoe SP2 came out (as you imagine).I'm trying to now get it to install the hotfixes it finds which are missing or not the latest version - tho i havent tried to do this for while.I havent (yet) tried the new 2.0 final version, so I'm unsure to whether it still works or not.I'll try and get on this asap - send me a pm to remind me if u dont hear anything from me CheersNath
Coolsights2000 Posted July 7, 2005 Posted July 7, 2005 Q282784 Qfecheck.exe Revision 4.2Qfecheck.exe Verifies the Installation of Windows 2000 and Windows XP Hotfixeshttp://support.microsoft.com/kb/q282784/
tarquel Posted July 7, 2005 Posted July 7, 2005 Thats a old program - look at the last update on the page :SN.
melnib00ne Posted July 7, 2005 Posted July 7, 2005 Hi,also you can in an batch use the if command like:set hfix=876453if not exist %systemroot%\$ntuninstallkb%hfix%$ start /wait kb876453.exe /quit and so on....set hfix=next one...if not exist ...BRMelnib00ne
bonedaddy Posted July 7, 2005 Posted July 7, 2005 @RyanVMROTFLMAO Sorry left out the ver number..............BD B)
oneless Posted July 7, 2005 Posted July 7, 2005 the simply way for me is not to know what hotfixes are installed .i need to know what arent installed .i use wpi as separate CD .today , they are 24 critical hotfixes .1. 20 of them after install (i use svcpack.inf and WPI for newcomers)make an kbxxxxxx.log in %WinDrive%\ (c:\windows)2. KB893803 , the v2 , make an kb893802v2.log, same folder .3. 873374 , GDI+ , i use registry way from Incroyable HULK post .can be run milion times , no problem.4. KB893066 , the v2 use the same KB893066.log like old v1 , shame to MS.if the log does not exist you can say isnt installed , if exist ? is v1 is v2 ?same folder c:\windows\KB893066.log5. same boolean with malicious kb890830, one file , monthlyappended by the new version . if dont exist isnt installed .if exists is v1.1 or v1.5 ?different folder and filename : C:\WINDOWS\Debug\mrt.logalso can be run milion times , no problem.
quotee Posted July 7, 2005 Author Posted July 7, 2005 Thanks a lot for your investigation.But I think I found a very simple way to find out wich hotfixes are installed.. stupidly I missed that the first time I was searching.In the windows directory, there is a hidden folder named "$hf_mig$" in that folder there are subfolders named as the hotfixes (for example KB867282).Now I do check for the hotfixes this way:if not exist %systemdrive%\windows\$hf_mig$\KB867282 start /wait %cdrom%\hotfixes\KB867282.exe /quiet /norestartgreetzquotee
Yzöwl Posted July 7, 2005 Posted July 7, 2005 This batch file should get you the OS, as long as you are using the original system supplied command processor.WHATOS.BAT@ECHO OFFVER | FIND /I "95" >NULIF NOT ERRORLEVEL 1 GOTO :IS95VER | FIND /I "NT" >NULIF NOT ERRORLEVEL 1 GOTO :ISNTVER | FIND /I "98" >NULIF NOT ERRORLEVEL 1 GOTO :IS98VER | FIND /I "2000" >NULIF NOT ERRORLEVEL 1 GOTO :IS2KVER | FIND /I "MILLENNIUM" >NULIF NOT ERRORLEVEL 1 GOTO :ISMEVER | FIND /I "XP" >NULIF NOT ERRORLEVEL 1 GOTO :ISXPGOTO :NOOS:IS95REM PUT YOUR COMMANDS HERE FOR WINDOWS 95GOTO :ENDOF:ISNTREM PUT YOUR COMMANDS HERE FOR WINDOWS NTGOTO :ENDOF:IS98REM PUT YOUR COMMANDS HERE FOR WINDOWS 98GOTO :ENDOF:IS2KREM PUT YOUR COMMANDS HERE FOR WINDOWS 2000GOTO :ENDOF:ISMEREM PUT YOUR COMMANDS HERE FOR WINDOWS MEGOTO :ENDOF:ISXPREM PUT YOUR COMMANDS HERE FOR WINDOWS XPGOTO :ENDOF:NOOSECHO YOU ARE USING AN UNKNOWN OSPAUSEGOTO :ENDOF:ENDOFEXIT
quotee Posted July 7, 2005 Author Posted July 7, 2005 @ YzöwlThanks a lot, this is exactly what I needed....greetzquotee
jquintino Posted July 7, 2005 Posted July 7, 2005 continue this threat ...where i can get a list of hotfixes after sp2 ?or a soft o see how many hotfixes i fail to install?ok i could use WINDOWS UPDATE you right. but i have some machines that dont had internet... see the point.thanks
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