May 26, 200521 yr I have decided just to install updates manually after windows instillation and I have the updates in one folder at %cdrom%\wpi\Install\Updates and there are several windows updates there what I want to know is there a command I could compile so it will install all updates at the same time instead of putting everyone in Wpi?
May 26, 200521 yr Ive never installed Windows Updates manually, so Im not familiar with the commands to do so, but assuming you use the same command for each file, you could make a pretty simple batch file that loops through all of the files in the directory. If I had some extra time, id post an example.. but if youre familiar with batch, google 'for each batch', that should get to what youre looking for.
May 26, 200521 yr Author I think this should be right@echo offsetlocalset PATHTOFIXES=C:\Updates%PATHTOFIXES%\WindowsXP-KB893086-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB893066-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB891781-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB890923-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB890859-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB890175-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB888302-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB888113-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB887742-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB886185-x86-enu.exe /Z /U%PATHTOFIXES%\WindowsXP-KB885836-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB885835-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB885626-v2-x86-enu.exe /Z /U%PATHTOFIXES%\WindowsXP-KB885250-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB873339-x86-ENU.exe /Z /U%PATHTOFIXES%\WindowsXP-KB873333-x86-ENU.exe /Z /U%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /Z /U%PATHTOFIXES%\WindowsInstaller-KB893803-v2-x86.exe /Z /U%PATHTOFIXES%\gdidettool.exe /Z /UInfohttp://support.microsoft.com/default.aspx?scid=kb;en-us;296861&sd=tech
May 26, 200521 yr Or this. @echo offFOR %%XX IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%XX:\WIN51 SET CDROM=%%XX:FOR %%i IN ( "%CDROM%\Hotfixes\*.exe" ) DO ( ECHO Installing hotfix %%~ni %%i /O /U /N /Z)
May 26, 200521 yr Author Or this. @echo offFOR %%XX IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%XX:\WIN51 SET CDROM=%%XX:FOR %%i IN ( "%CDROM%\Hotfixes\*.exe" ) DO ( ECHO Installing hotfix %%~ni %%i /O /U /N /Z)<{POST_SNAPBACK}>I would be lying If I said I understood that what-so-ever
May 26, 200521 yr Or this. @echo offFOR %%XX IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%XX:\WIN51 SET CDROM=%%XX:FOR %%i IN ( "%CDROM%\Hotfixes\*.exe" ) DO ( ECHO Installing hotfix %%~ni %%i /O /U /N /Z)<{POST_SNAPBACK}>I would be lying If I said I understood that what-so-ever <{POST_SNAPBACK}>What it does, is looks for your installation CD, the goes into the Hotfixes folder and then runs Each .exe file in there using the switches /o /u /n /zit's pretty neat really (note to self learn batch more about batch scipting)
Create an account or sign in to comment