MSFN Forum: CMD Update install problem - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CMD Update install problem

#1 User is offline   BaTLeZone 

  • Member
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 10-October 03
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 03 April 2012 - 05:00 PM

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.

This post has been edited by BaTLeZone: 03 April 2012 - 05:03 PM



#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 03 April 2012 - 07:42 PM

Did you try using DISM to install those packages offline?

#3 User is offline   harshadhparulekar 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 11-February 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 April 2012 - 12:27 AM

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


#4 User is offline   mandrake 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 02-March 12
  • OS:none specified
  • Country: Country Flag

Posted 19 April 2012 - 06:52 AM

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

View PostBaTLeZone, on 03 April 2012 - 05:00 PM, said:

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.


#5 User is offline   spazmochad 

  • Group: Members
  • Posts: 1
  • Joined: 17-April 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 May 2012 - 08:19 AM

Your spelling of quiet is wrong :)
e.g.
Change:
START /WAIT WUSA Windows6.1-KB2425227-x64.msu /quite /norestart
To:
START /WAIT WUSA Windows6.1-KB2425227-x64.msu /quiet /norestart

#6 User is offline   BaTLeZone 

  • Member
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 10-October 03
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 14 May 2012 - 05:23 PM

@ 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.ne...opic.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

This post has been edited by BaTLeZone: 14 May 2012 - 05:44 PM


#7 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 15 May 2012 - 07:36 AM

View PostBaTLeZone, on 14 May 2012 - 05:23 PM, said:

@ 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.micro...e/dd490958.aspx
http://technet.micro...11%28v=ws.10%29

#8 User is offline   BaTLeZone 

  • Member
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 10-October 03
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 15 May 2012 - 09:21 AM

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?

This post has been edited by BaTLeZone: 15 May 2012 - 09:23 AM


#9 User is offline   BaTLeZone 

  • Member
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 10-October 03
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 15 May 2012 - 11:20 AM

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



#10 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,750
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 May 2012 - 07:45 AM

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

This post has been edited by maxXPsoft: 16 May 2012 - 07:46 AM


#11 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 16 May 2012 - 08:45 AM

View PostBaTLeZone, on 15 May 2012 - 09:21 AM, said:

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy