Jump to content

CMD Update install problem


Recommended Posts

I am trying to install all update that I can using this:



@echo on

START /WAIT WUSA IE9-Windows6.1-KB2647516-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2425227-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2476490-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2479943-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2491683-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2503658-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2506212-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2507618-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2509553-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2511455-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2524375-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2525694-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2536275-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2536276-v2-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2544893-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2556532-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2560656-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2564958-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2567680-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2570947-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2579686-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2584146-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2585542-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2588516-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2601626-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2618451-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2619339-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2620704-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2620712-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2621440-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2631813-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2641653-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2644615-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2645640-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2654428-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2660465-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2665364-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2667402-x64.msu /quite /norestart

PAUSE

EXIT

but it does not work and I don't understand why.

I like to do it this way but it did not work ether.



@echo on

START /WAIT WUSA *.msu /quite /norestart

pause

end

Any help will be nice. sorry programing is not my thing.

Edited by BaTLeZone
Link to comment
Share on other sites


try this code, put all your updates in a folder and this batch script next to the folder

@echo off
cls
title Windows 7 Offline Updater
color 1F

rem [Select Current Directory]
set BATDIR1=%~dp0
cd /d %BATDIR1%

:Intro Credits
echo Windows 7 Offline Updater
echo+
timeout /t 2 >Nul
cls
Rem Next Part
echo -==//Created By: ColdZero\\==-
timeout /t 1 >Nul
echo Support available @ My Digital Life -Forums-
timeout /t 3 >Nul
cls


:Menu
cls
Echo+
Echo -------------------------------------------------------------------------------
Echo Windows 7 Off-Line Updates Package: 2012
Echo -------------------------------------------------------------------------------
Echo+
echo Hello %USERNAME%, what do you want to do?
echo+
echo A) Install Critical Updates
echo B) View Installed Updates
echo Q) Exit
echo+
::Choose Option
set /p userinp= ^> Select Option :
set userinp=%userinp:~0,1%
if /i "%userinp%"=="Q" exit
if /i "%userinp%"=="A" goto :Patches_Install
if /i "%userinp%"=="B" goto :Patches_List
goto :Menu

:Patches_List
If exist patchlist.txt del patchlist.txt
wmic qfe get hotfixid >patchlist.txt
start patchlist.txt
goto :Menu
exit



:Patches_Install
rem "Start /Wait File.exe /quiet /norestart"
rem "KB00000.msu /quiet /norestart
cls
Echo+
Echo -------------------------------------------------------------------------------
Echo Windows 7 Off-Line Updates Package: 2012
Echo -------------------------------------------------------------------------------
Echo+
echo+

cd "Critical Updates"
echo Installing 2012 Patches...
echo+
@for %%V in (*.msu) do (
echo %%V
%%V /quiet /norestart
If %errorlevel% NEQ 0 echo Warning: Minor error! "dont worry"
)
echo+
echo ***********
echo Complete!
echo ***********
echo+
Pause
cd..
Exit


ColdZero's Page

http://forums.mydigitallife.info/threads/20043-Windows-7-Offline-Updates

Link to comment
Share on other sites

  • 3 weeks later...

Might just be that "/quite /norestart" should be "/quiet /norestart" :~

I am trying to install all update that I can using this:



@echo on

START /WAIT WUSA IE9-Windows6.1-KB2647516-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2425227-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2476490-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2479943-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2491683-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2503658-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2506212-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2507618-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2509553-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2511455-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2524375-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2525694-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2536275-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2536276-v2-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2544893-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2556532-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2560656-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2564958-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2567680-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2570947-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2579686-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2584146-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2585542-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2588516-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2601626-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2618451-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2619339-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2620704-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2620712-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2621440-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2631813-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2641653-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2644615-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2645640-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2654428-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2660465-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2665364-x64.msu /quite /norestart
START /WAIT WUSA Windows6.1-KB2667402-x64.msu /quite /norestart

PAUSE

EXIT

but it does not work and I don't understand why.

I like to do it this way but it did not work ether.



@echo on

START /WAIT WUSA *.msu /quite /norestart

pause

end

Any help will be nice. sorry programing is not my thing.

Link to comment
Share on other sites

  • 3 weeks later...

@ Tripredacus

Sorry I dont know what DISM is.

@ spazmochad & mandrake

Darn typo monster got me again. thankx

@ harshadhparulekar

Thankyou very much the program works great with win7 updates. Can it be changed so the computer reboots after it is done?

Can it be change so I can also do the vista updates. I got them in cab form. (http://www.ryanvm.net/forum/viewtopic.php?t=9646)

I found the thingy to do it -> start /wait pkgmgr /ip /m:<path><file name>.cab /quiet <- just don't know what to change and I thought it would be better to ask you anyway.

cheers

Edited by BaTLeZone
Link to comment
Share on other sites

@ Tripredacus

Sorry I dont know what DISM is.

I found the thingy to do it -> start /wait pkgmgr /ip /m:<path><file name>.cab /quiet <- just don't know what to change and I thought it would be better to ask you anyway.

Package Manager (pkgmgr) is deprecated in the WAIK and was replaced by DISM. :sneaky:

http://technet.microsoft.com/en-us/magazine/dd490958.aspx

http://technet.microsoft.com/en-us/library/dd744311%28v=ws.10%29

Link to comment
Share on other sites

Thanks

If I under stand correctly I would use one of these :


Dism /image:C:\test\offline /LogPath:AddPackage.log /Add-Package /PackagePath:C:\packages\package.cab

or


Dism /image:C:\test\offline /Add-Package /PackagePath:C:\packages\package1.cab /PackagePath: C:\packages\package2.cab /ignorecheck

to do it?

Edited by BaTLeZone
Link to comment
Share on other sites

I tryed this but did not work.



@echo on
cls
title Windows Vista Offline Updater
color 1F

start /wait pkgmgr /ip /m:WINDOWS6.0-KB2079403-X64.CAB /quiet
start /wait pkgmgr /ip /m:WINDOWS6.0-KB2117917-X64.CAB /quiet
start /wait pkgmgr /ip /m:WINDOWS6.0-KB2141007-X64.CAB /quiet
start /wait pkgmgr /ip /m:WINDOWS6.0-KB2281679-X64.CAB /quiet
start /wait pkgmgr /ip /m:WINDOWS6.0-KB2296011-X64.CAB /quiet
...

exit

Link to comment
Share on other sites

Try this

@Echo Off
Title Installing Windows Updates
For %%F In (MSU\*.msu) Do Call :msin %%F
For %%A In (CAB\*.cab) Do Call :kbin %%A
REM Shutdown.exe -r -t 1
Exit
:msin
Start /Wait %1 /quiet /norestart
:kbin
Start /Wait pkgmgr /ip /m:%1 /quiet /norestart
GoTo :EOF
Exit

Edited by maxXPsoft
Link to comment
Share on other sites

Thanks

If I under stand correctly I would use one of these :


Dism /image:C:\test\offline /LogPath:AddPackage.log /Add-Package /PackagePath:C:\packages\package.cab

Undocumented, but you can specify a directory too:


Dism /image:C:\test\offline /LogPath:AddPackage.log /Add-Package /PackagePath:C:\packages\

:angel

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...