I need help making a batch file that will create a folder and then extract a cabinet file from a Windows installer file and then run a DISM command to install said extracted update. Below is a list of the command to use but for the life of me I cannot figure out the batch command order to get it to work.
mkdir update
expand -f: Windows6.1-KB3112343-x64.msu .\update
cd update
dism /online /add-package /packagepath:Windows6.1-KB3112343-x64.cab
I would be using the command knowing the file is at C:/users/owner/desktop/Windows6.1-KB3112343-x64
I'll also be making the update folder on the desktop as well. I just want to automate this process as much as possible because I have many Windows 7 computers that I update and to start I usually need to do the above commands and I want to make it more efficient if I can.
Answer
This question is a typical XY problem. You tried to fix the slow MSU install and this can be done by running this batch file. It stops the Windows Update service before trying to install a MSU update. This speeds up the installation a lot.
No comments:
Post a Comment