TheeBeets Posted May 26, 2005 Share Posted May 26, 2005 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? Link to comment Share on other sites More sharing options...
durex Posted May 26, 2005 Share Posted May 26, 2005 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. Link to comment Share on other sites More sharing options...
TheeBeets Posted May 26, 2005 Author Share Posted May 26, 2005 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 Link to comment Share on other sites More sharing options...
Dahi Posted May 26, 2005 Share Posted May 26, 2005 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) Link to comment Share on other sites More sharing options...
TheeBeets Posted May 26, 2005 Author Share Posted May 26, 2005 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 Link to comment Share on other sites More sharing options...
hazard_abio Posted May 26, 2005 Share Posted May 26, 2005 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) Link to comment Share on other sites More sharing options...
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