How to
integrate updates into a DVD image
using KUC
1. Locate your wim
file
set sourcefile=d:\Win7DVD\sources\install.wim
2. Create a
temporary folder
md c:\offline
set tmpdir=c:\offline
3. Mount the %1
image of the wim file
dism /mount-wim /wimfile:%sourcefile% /index:%1
/mountdir:%tmpdir%
You can use the statements
above to create a mountwim.cmd
commandlet. If you run, for example,
Mountwim.cmd 3
the third image of the wim file will be mounted.
After you have mounted the
image you need, run KUC
KUC /DVD-image-dir:c:\offline /up-dir:c:\wu /repo-dir:c:\wu\repo
Select the options you want
and finish KUC.
In the c:\wu folder first run
Remove_old.cmd
It’s extremely
important, that you remove all old packages before you add new ones. During DVD update integration, it’s not possible to remove some kinds of “superseded”
packages. That means, if you want to integrate IE9, you first have to remove
all IE8 packages to have a clean DVD (Nevertheless, you can leave them on the
DVD (recommended)). After adding IE9 to the DVD, it’s
not possible to remove all IE8 packages from the image.
In addition, if your DVD
has version 1 of a package installed and you want to
install version 2, you need to remove version 1 before you add version 2. If
you don’t, the removal of version 1 will fail.
KUC takes care of that. It will not
offer the addition of version 2 as long as version 1 is installed.
If both version 1 and version 2 are installed, KUC will remove both of them
first before version 2 is added.
Furthermore, I noticed that there are several updates that only can be removed if other
updates are removed first. Most of them are windows-win32k updates.
The same principle applies during installation of updates: some packages only
can be installed if other updates are installed first.
Fortunately, most of them are KB9xxxxx normal updates (non
LDR), which are installed first.
You
may have to run the remover more than one time.
It’s up to you, if
you just run the remove_old command again or create a new fresh one with KUC
after the first run finishes (recommended).
Now that we have all old
packages removed, we can start the updates process.
While running KUC, you downloaded
all missing updates, which are now located in the c:\wu\repo folder.
In the next step, we populate the working folders with the updates. Just run
Copy_Files_2_add.cmd
Before you continue with
the update process, this may be a good point to decide if you want to install
additional languages.
Finally, we start the update process.
Update.cmd
After the update finishes,
rerun KUC to check if there are any updates/features you missed
or could only be installed if others had been installed first.
If all is satisfactory, only one thing is left to do. To save the changes to
the DVD image, run
dism /unmount-wim /mountdir:%tmpdir% /commit
If something goes wrong
during the process, you can run the dism command with the /discard switch (instead of /commit). This will leave your source
image in its initial state.
Do not forget to re-enable your anti-virus software if
you turned it off.
Useful Notes:
You cannot modify the DVD
directly. You have to copy its content to the hard disk.
Do not try to add IE9
languages packs of a language that is not supported by the installed OS
languages!
Dism will start the
installation and result in Error: 0x800f0830: “The specified image is no longer
serviceable.”
The only thing you can do
is to unmount the wim with the /discard switch.
Mounting and dismounting an image is a hard disk intensive process. So exclude
the c:\offline and the d:\Win7DVD\sources folders from virus scanning. You
should exclude .wim files from scanning too. Disabling the virus scanner is a
possibility but not necessary.
Sometimes the mounting of an image fails. Try “dism /cleanup-wim” and / or delete the temporary folder c:\offline
and recreate it.
If you have any problem
with installation or removal of a package, look inside the “packages_out.txt”
file of KUC. There you may find the reason.
If you want all 5(x64) or 6(x86) images inside a wim to be updated, you have
to run the process for each image.
Here is an overview of the
images located in the
x64 win7 DVD: 1=Home Basic, 2=Home Premium,
3=Professional, 4=Ultimate.
x86 win7 DVD: 1=Starter,
2=Home Basic, 3=Home Premium, 4=Professional, 5=Ultimate.
To identify the wim images,
run dism /get-wiminfo /wimfile:%sourcefile%
After all images are
updated, you will notice that the new wim file is much larger than the original
one. To shrink its size, run
imagex /export /check /compress fast d:\Win7DVD\sources\install.wim
* d:\Win7DVD\sources\newinstall.wim
delete d:\Win7DVD\sources\install.wim
rename d:\Win7DVD\sources\newinstall.wim
d:\Win7DVD\sources\install.wim
You could use the /compress maximum instead, but
that normally takes a long time. Also, depending on
the speed and the memory of the destination computer, the installation process
takes longer. (All that is compressed must be uncompressed. If you use high
compression methods, uncompressing could take a long time). The opposite switch is /compress none. That’s the fastest
way. I think the default is /compress
fast.
Creating the ISO:
oscdimg /b"d:\boot\etfsboot.com" /h /lWin7 /u2 /o
d:\ c:\wu\w7x64.iso
One bad thing to say: To
create the references for KUC, me myself I cannot use KUC.
After you have updated only
one image, you can imagine how much time it takes to keep all the KUC
references up to date.
KUC contains references to
10 different OS versions and their derivates.
Windows 7 x86 (Starter, Home, Home Premium, Professional, Ultimate,
Enterprise)
Windows 7
x64 (Home, Home Premium, Professional, Ultimate, Enterprise)
Windows
Server 2008 R2 (Standard, Enterprise, Data, Web)
Windows
Server 2008 R2 server core (Standard, Enterprise, Data, Web)
Windows
Multipoint Server 2011
Windows
Home Server 2011
Windows
Storage Server 2008 essentials
Windows
Small Business Server 2011 essentials
Windows 7
Embedded x64 (as online and image version)
Windows 7
Embedded x86 (as online and image version)