Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Windows 7 Msu Update Scripts Please!

Featured Replies

Hi can anyone give me scripts or to make scripts for installing windows 7 updates?

I need 1 for MSU and 1 for CAB and i need it to be a WUSA Scripts Please

Thanks in Advance For the helpers


for /f %i in ('dir /ab *.msu') do wusa.exe "%i" /quiet

I believe you have to use pkgmgr.exe to install .CAB updates, WUSA only accepts .MSU updates.

  • Author

Thanks my friend and how do i make the script? i mean i know how but do i only need to insert the command line you gave me save it as vbs or cmd or bat file and it works? or what?

and can you give me a CAB Installer using pkgmgr.exe

Edited by DuduMan

Sorry, forgot to add that. Save as CMD file in the directory with the patches. If you need to put it somewhere else adjust the dir cmd inside the single quotes. You can run the dir cmd by itself and see the order that they will install in and that they are found. I haven't needed to use pkgmgr but you should be able to do something similar. You can check technet for the switches associated with pkgmgr. Package manager command line options

  • Author

I Did that and put in the updates dir ran it and it shows the dos window for a second and disappears

Why isnt that working?

Sorry, my bad.


for /f %i in ('dir /a /b *.msu') do wusa.exe "%i" /quiet

If you run just the dir /a /b *.msu you should see a listing of the files, if run from another directory it should include the path in the name, but no other details will be with the file like time stamp etc.

  • Author

none of of what you said works i tried putting the command line in a cmd file copied it to the updates dir and it still shows the dos window and dissapears

I think somethings missing it the cmd

Edited by DuduMan


for /f %i in ('dir /a /b *.msu') do wusa.exe "%i" /quiet
pause

Now the windw will stay open until you press a key so you can see any errors.

  • Author

Im sorry but it still the same my friend

it shows me this:

The syntax of the command is incorrect.

C:\>for /f i" /quiet

Edited by DuduMan

open a cmd prompt manually and type the command in after changing to the directory the MSU files are in, what happens then?

  • Author

thats what i did before and now i changed dir and its the same

by the way my friend i changed this ('dir /a /b *.msu') to this (dir /a /b *.msu) and removed the other commands and it listed the updates like you said but the installment dont work cause somethings wrong in this command line can you fix it my friend?

I have this

@echo off

for /f "skip=1" %%A in ('dir /b *.msu') do (
echo Installing Update "%%A" ...
start /wait %%A /quiet /norestart > nul
)

echo.
echo ###########################################################
echo.
echo Updates are installed
echo Press any key to reboot
pause >NUL
shutdown -r -t 0

it works but its not installing very good and its not wusa thats why its not good

Edited by DuduMan

@echo off

for /f "skip=1" %%A in ('dir /b *.msu') do (
echo Installing Update "%%A" ...
start "" /wait WUSA %%A /quiet /norestart > nul
)

echo.
echo ###########################################################
echo.
echo Updates are installed
echo Press any key to reboot
pause >NUL
shutdown -r -t 0

Try this, changed the start command line.

  • Author

Thank you very much my friend now it works

Say can you make me a command line for installing CAB files from this command?

start /w pkgmgr /ip /m:c:\cab

it works but its not showing me what it installs Can you please make me one that does?

Edited by DuduMan

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.