Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


BaTLeZone

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

@ 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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...