Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Update your Win 7 installation media.

4 Weeks Ago   #271
Megahertz07

Windows 7 HP 64
 
 

Quote   Quote: Originally Posted by SIW2 View Post
mega,

This line changes directory to bin

Code:
cd /d "BIN"
This line assumes that wimlib-imagex.exe and wimupdate.txt are both in the bin directory

Code:
wimlib-imagex.exe update "%TP%\WinRE.wim" 1 < "wim-update.txt"


This is how I do it when using different arches of wimlib:

There is no need to cd/d bin when using %wimlib% variable. Also need to tell %wimlib% where wimupdate.txt is.

Code:
IF EXIST "%TP%\bin\wim-update.txt" DEL /Q "%TP%\bin\wim-update.txt"
echo.
echo add '%TP%\BIN\peshl%wimarch%\Windows' '\Windows' >> "%TP%\bin\wim-update.txt"
echo.
%WimLib% update "%TP%\Temp\WinRE.wim" 1 < "%TP%\bin\wim-update.txt"
Worked!!!
Thanks


My System SpecsSystem Spec
.
4 Weeks Ago   #272
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Quote   Quote: Originally Posted by Megahertz07 View Post
Worked!!!
Thanks


There is a simpler way to change the pack date into dd.mm.yyyy format:

Code:
for /f "tokens=1-2 delims=-" %%a in ('dir /b /a-d "%TP%\UpdatePack7R2-*.exe"') do set "dat=%%~nb" & set PACKNAM="%TP%\%%a-%%b"
echo.
FOR /F "Tokens=1-3 Delims=." %%A IN ("%dat%") DO SET ndat=%%C.%%B.20%%A
echo.
for UpdatePack7R2-19.4.10.exe

%ndat% comes out as 10.04.2019


Convertdatehex.exe should in theory accept that.

Code:
Example of use:

    ConvertDateHex.exe /d18.04.2019 /t20:30:09
It doesn't seem to. Whatever date I feed to convertdatehex.exe:

Code:
for /f "tokens=1,2 delims=- skip=1" %%a in ('bin\ConvertDateHex.exe /d%ndat% /t22:26:11') do set "HP=%%a"& set "LP=%%b"


it always spits out the current date in hex format.

Not a big issue, it just puts the date the wim was updated, instead of the pack date. That is ok - much better than leaving the original date on there.

Update your Win 7 installation media.-update-date.jpg


My System SpecsSystem Spec
4 Weeks Ago   #273
Megahertz07

Windows 7 HP 64
 
 

SIW2,
Sorry for the low level questions.
- Under Create commands you create UpdatePack7R2Finish.cmd.
- UpdatePack7R2Finish.cmd has instructions to Add-Driver and ADD-PACKAGE to \mount\UpdatePack7Wim and copy WINRE.WIM to mount\UpdatePack7Wim\Windows\System32\Recovery

Questions:
- Does UpdatePack7R2*.exe also add Drivers and PACKAGE to install.wim? If yes, if you update install.wim with UpdatePack7R2*.exe there is no need to previous run :MountInstallWim that also add Drivers and PACKAGES to install.wim, correct?
- Who uses UpdatePack7R2Wim.cmd, UpdatePack7R2*.exe?
- Does UpdatePack7R2Finish.cmd and UpdatePack7R2Wim.cmd must be in same folder of UpdatePack7R2*.exe? (I suppose yes)
My System SpecsSystem Spec
.

4 Weeks Ago   #274
Shadow Lord

Windows 7 Pro 64bit
 
 

Quote   Quote: Originally Posted by SIW2 View Post
Shadow Lord,



Dism++ can uninstall it afterwards. Then hide it in windows update so wu doesn't keep nagging you.

If you make a mistake, you can always uninstall an update, and you can use Steve Gibson's Inspectre to make sure


Thanks. Unfortunately, InSpectre won't work for what I need. Simply disabling in registry still keeps "Total Media Theater" from running. I think I would have to uninstall/revert back to the original files for it to work. I will give DISM++ a try and see if that helps. If not on that particular system I may just need to leave things at Windows 7 SP1 and not do any updates (or at least updates past 12/15). Which shouldn't be a big deal as that system is only used as an HTPC and not for full work/online. However, it would have been nice to have an a completely up to date system sans the three problematic security updates.
My System SpecsSystem Spec
4 Weeks Ago   #275
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Quote:
- Does UpdatePack7R2*.exe also add Drivers and PACKAGE to install.wim?

1. Drivers:

The updatepack automatically adds usb3 to install.wim, but not to the bootable wims.

Therefore there is no advantage adding usb 3 drivers to DRIVERS\install%wimarch% folder - no harm if you do.

But you will want to add usb3 drivers to DRIVERS\boot%wimarch%

Any other drivers you want included e.g for your network card, or maybe SD card, or oem nvme drivers - you need to add into the folders.

[Note: As far as I can tell, oem nvme drivers will only work if you also include the MS nvme updates]


2. Updates

MS nvme updates are not automatically included by the updatepack.

Therefore - if you want to include the MS nvme updates - put them in UPDATES\boot%wimarch% and UPDATES\install%wimarch%
My System SpecsSystem Spec
4 Weeks Ago   #276
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

1.
Quote:
- Who uses UpdatePack7R2Wim.cmd, UpdatePack7R2*.exe?
Yes

2.
Quote:
- Does UpdatePack7R2Finish.cmd and UpdatePack7R2Wim.cmd must be in same folder of UpdatePack7R2*.exe? (I suppose yes)
Yes


3. You can also place any addons in the same folder ( next to the updatepack) and they will be included.

The add ons have a .WA extension. Net Frame 4.8 and VC redists etc can be included that way.

NF4.8
Release v2019.04.14 . abbodi1406/dotNetFx4xW7A . GitHub

Lang packs for NF4.8
Release v2019.04.13 . abbodi1406/dotNetFx4xW7A . GitHub

VC redistx64 2005-2008
https://gitlab.com/stdout12/adns/upl...64_SxS_Win7.WA

VC redistx64 2019
https://gitlab.com/stdout12/adns/upl...14.20.27508.WA

VCRedistx86 2005-2008
https://gitlab.com/stdout12/adns/upl...86_SxS_Win7.WA

VCRedistx86 2019
https://gitlab.com/stdout12/adns/upl...14.20.27508.WA




4. Surprisingly, you can also put the SP1 exe in the same folder and it will be integrated if the target image is SP0. I think integrating SP1 only when updating a live install, not for installation media.

Windows6.1-KB976932-X86.exe

https://download.microsoft.com/downl...976932-X86.exe

Windows6.1-KB976932-X64.exe

https://download.microsoft.com/downl...976932-X64.exe
My System SpecsSystem Spec
4 Weeks Ago   #277
Megahertz07

Windows 7 HP 64
 
 

Thanks, SIW2

As UpdatePack7R2Finish.cmd has instructions to Add-Driver and ADD-PACKAGE to \mount\UpdatePack7Wim and copy WINRE.WIM to mount\UpdatePack7Wim\Windows\System32\Recovery to install.wim

Question:
- if you update install.wim with UpdatePack7R2*.exe + UpdatePack7R2Finish.cmd there is no need to call :MountInstallWim that will also add Drivers and PACKAGES to install.wim, correct?
My System SpecsSystem Spec
4 Weeks Ago   #278
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Quote:
Question:
- if you update install.wim with UpdatePack7R2*.exe + UpdatePack7R2Finish.cmd there is no need to call :MountInstallWim that will also add Drivers and PACKAGES to install.wim, correct?
Correct.

It is only if not using UpdatePack7R2*.exe:

check if the user has put drivers or updates in the folders - if yes, then mount install.wim and get dism to install the stuff in the folders - and also copy in the new winre.wim if there is one.
My System SpecsSystem Spec
4 Weeks Ago   #279
Megahertz07

Windows 7 HP 64
 
 

Quote   Quote: Originally Posted by SIW2 View Post
Correct.

If not using UpdatePack7R2*.exe:

check if the user has put drivers or updates in the folders - if yes, then you need to mount install.wim and get dism to install the stuff in the folders - and also copy in the new winre.wim if there is one.
If not using UpdatePack7R2*.exe I run :Single or :All images updates that call :MountInstallWim
that install the stuff in the Drivers / Update folders - and also copy in the new winre.wim, if there is one.
My System SpecsSystem Spec
4 Weeks Ago   #280
Megahertz07

Windows 7 HP 64
 
 

SEW2, here is the problem:
- Some install.wim doesn't have all four images and Win7 x86 installation disk also has a starter image.

- On :Chooseimage you have the options to select all (*) or single (1 to 4)
- How do I do a "for" to only allow the user to select one of the listed images refusing others not listed
(IF /I NOT '%CHOI%'=='1' IF /I NOT '%CHOI%'=='2' IF /I NOT '%CHOI%'=='3' IF /I NOT '%CHOI%'=='4' IF /I NOT '%CHOI%'=='*' goto :Chooseimage)?
- Does UpdatePack7R2* can deal with images with less or more than 4 images to update when all (*) is selected?
- Does your :All script deal with images with less or more than 4 images to update when all (*) is selected?
My System SpecsSystem Spec
Reply

 Update your Win 7 installation media.




Thread Tools




Similar help and support threads
Thread Forum
TEST -Update 7 installation media
Anyone who wants to give this a try: 1. Put your win7 dvd in the drive, rt click it and select COPY. Then rt click your partition (e.g. C ) and PASTE. It will take a few mins and you should have afolder on c containing the installation files, like this: 2. Install WUD - tiny program:
Installation & Setup
Windows Media Player will not update media library
I am a music downloader. It used to be that WMP12 would update the mp3 music folders to where the folder contents would read as follows: 01 'Track Name' 02 'Track Name' 03 'Track Name' and so on... This is no longer the case. WMP will not update my media library files, although it...
General Discussion
How to get installation media?
Hi, I've got an HP Pavilion laptop that came with Windows 7 installed as a Vista upgrade. I'd like to blow it away, repartition the disk for dual boot with Linux, and do a clean install of Windows 7. The only problem (I think) is that I don't have the installation media. I've searched online...
Installation & Setup
Bad installation media I think
Remember me? I'm the one with the pirated W7 Ultimate. I finally bought a genuine W7 Ultimate disk from Newegg for the tune of $310. Still working with MasterCard to get my money back. It looks favorable. When I went to do a clean install the auto-boot worked but it hung up with a blue screen...
Installation & Setup
media smart server update corrupted media center
I have 4 computers all running windows 7-3 in 32 and 1 in 64. All were working fine and no issues with my mediasmart 470 server. I only have one computer with console running. The other day pp3 came out and has made a mess of my computer that has connector to server. It seems to have corrupted...
Media Center


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:35.
Twitter Facebook