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.

13 Hours 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
.
13 Hours 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
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 01:20.
Twitter Facebook