The WinReducer Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The WinReducer ForumLog in

FORUM

Slim down boot.wim

+5
Yuriy
parapher
Torrentus
brittech
KrX
9 posters

descriptionSlim down boot.wim EmptySlim down boot.wim

more_horiz
hey guys,

i have got a batch file here and it would be nice if you could test it if it work.

Download

[You must be registered and logged in to see this link.]



How to use it

Mount your boot.wim like this

Dism /Mount-Image /ImageFile:C:\test\images\myimage.wim /index:1 /MountDir:C:\test\offline


replace
C:\test\images\myimage.wim
by the path to your boot.wim file and

C:\test\offline
by the path where you want to mount it

after that place the downloaded ROOT.bat to the mounted folder *next to the Windows Folder* and run it as administrator

after that unmount your wim file with this command

Dism /Unmount-Image /MountDir:C:\test\offline /commit



after that test it in a virtual machine.


if you get an error while installing windows and an missing file is shown please post it here so i can remove it from my batch file and if all files that are needed are removed winterstorm could add that to winreducer

after that open the Root.bat and search for your file that is needed and remove the whole line from it. save it and repeat all steps again.


it would be really nice if a lot of people could test it so hopefully this batch will work for everyone.

PS my boot.wim is currently 42.4 Mb tall and it works with this batch file

EDIT:  open the ROOT.bat with i.e. Notepad ++ and search for "de-DE" and replace it with your language code

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Hi KrX

Sorry, my security settings are blocking ZippyShare. Any other way I can get that file?

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
i added some more hoster, hopefully you can download it from one

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Thanks, plenty of choice Wink

Just tried it out and within seconds of booting CD ...  BSOD stop: 0x...F4

Bearing in mind I had to change your entries of de-DE into en-US.

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
brittech wrote:
Thanks, plenty of choice Wink

Just tried it out and within seconds of booting CD ...  BSOD stop: 0x...F4

Bearing in mind I had to change your entries of de-DE into en-US.


ah you are right i forgot to mention that you need to change all de-DE to your language

because of the error. to find what file is causing it you will need to test i.e 50% of the batch file
if that works try again some line from the batch and so on. till you find the file you need

its a lot of work and i know that Razz

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
KrX, I thought we already finished this subject more than half year ago!? You want to test and share it with other users? Cool  

Here brittech try mine, I think its compatible with all Windows 7 x64 US versions...

[You must be registered and logged in to see this link.]

Cheers Wink

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Ok.  Thanks.

I tried the boot.wim file and it came up with an error -

    'Windows could not display the images available for installation.'

I'm using a 7 Pro x64 untouched install.wim

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Oh Ok, so it seems that you need to remove the other editions in your install.wim the .clg files.
You could try to replace my boot.wim on your slimmed down ISO...

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Or it really is only for the Ultimate edition, because the Ultimate edition can install all versions.
Lets see if you can install Windows Ultimate with your Pro Version. In your untouched ISO open the install.wim with 7zip
and tell me how many folders are inside? I have 4 folders and a xml file, this means Ultimate can install all versions...

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
hey, yes we finished the project.

the batch works for me. but it would be nice if it works for all people so winterstorm could add it to winreducer

EDIT:

i reuploaded my batch file and removed lines that deleted .nls files and keyboard layouts and windows editions so that it hopefully works for more people

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Torrentus, I use Win7 x64 SP1 image and tried your boot.wim but it errors with following message:

Slim down boot.wim Bootwimerror

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Try to mount the boot.wim and put back the HDD drivers, I think it is a HDD issue...

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
In Windows\inf and Windows\System32\drivers and Windows\System32\DriverStore\FileRepository

The problem is we all have different hardware and on some users it won't work. We need to find out which Universal Drivers we need to keep, so it will work for everyone!

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
OK, thanks for the tips. Also tried KrX's script (changed all de-DE to en-US) and ran it (admin mode) but the boot.wim after commit and export (compress max) only got down to 135mb or so. Since I'm able to do this with NTLite already I have not tried to run it live.

Not sure if you tried this but you can install x64 Win with x86 boot.wim (easy, I always do) so maybe you can reduce even further.

Yeah, would be good if pretty universal way could be found to reduce boot.wim, there's a lot of stuff in there that's not needed.

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Hello! After connecting boot.wim, along the way, for example: dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: c: dism\offline where to insert ROOT_MultiUpload.bizd.bez? Copying a folder with an attached boot.wim - run as administrator, after - Unmount the conservation, and the size remains the same. Please repeat the whole process after mounting. In advance, thank you!

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
hi

normally you should put it here:

Slim down boot.wim Vhhtds4g

at the mounted folder and than next to the windows folder.

------------------------------------

if you did that could you try this:

mount again your boot.wim and copy the Root batch to that folder.
Press Windows-key and R and enter in the Run Box "cmd" without "
go to the directory where you mounted your boot.wim with the CD comand
i.e. "cd C\bootwim"
click enter, now you put that command:


ROOT_MultiUpload.bizd.bez.bat > output.txt 2>&1


that will log all the output. now go to i.e C:\bootwim and open the output.txt and copy some line from there in a Post so we can check that

-----------------------------------------------------
PS it would be better if your command would look like that


dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: c:\bootwim dism\offline

i changed the "mountdir: c:" to "mountdir: c:\bootwim"

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
KrX wrote:
hi

normally you should put it here:

Slim down boot.wim Vhhtds4g

at the mounted folder and than next to the windows folder.

------------------------------------

if you did that could you try this:

mount again your boot.wim and copy the Root batch to that folder.
Press Windows-key and R and enter in the Run Box "cmd" without "
go to the directory where you mounted your boot.wim with the CD comand
i.e. "cd C\bootwim"
click enter, now you put that command:


ROOT_MultiUpload.bizd.bez.bat > output.txt 2>&1


that will log all the output. now go to i.e C:\bootwim and open the output.txt and copy some line from there in a Post so we can check that

-----------------------------------------------------
PS it would be better if your command would look like that


dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: c:\bootwim dism\offline

i changed the "mountdir: c:" to "mountdir: c:\bootwim"

Something I did not get ...
My actions:
1. This is the path  C:\dism\iso is boot.wim
Slim down boot.wim <a href=Slim down boot.wim Fdcbe82469fe" />
2. Mounts in c:\bootwim\offline:
dism /mount-wim /wimfile:c:\dism\iso\boot.wim /index:1 /mountdir:c:\bootwim\offline
3. Copy the file ROOT_MultiUpload.biz here c:\bootwim\offline, run as administrator...
Slim down boot.wim <a href=Slim down boot.wim 19fc53f1debd" />
4. After work ROOT_MultiUpload.biz, dismantle, with preservation of image:
 Dism /Unmount-Image /MountDir:C:\bootwim\offline /commit
5. Here's what happened:
Slim down boot.wim <a href=Slim down boot.wim 18a2351b4148" />
Where is my mistake?
Please, treat with understanding. Thank you!

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
hey,

the error you get is this:

Error: 0xc1420117

The directory could not be completely unmounted. This is usually due to applications that still have files opened within the mount directory. Close these files and unmount again to complete the unmount process.
This error happens when you use another Dism.exe which is located in C:\Windows\System32. The correct application to use is C:\Program Files\Windows AIK\Tools\amd64\Servicing\Dism.exe, so you need to direct your command line tool to that location before you run the unmount-command (use cd C:\Path to change directory). Replace amd64 in the path with your architecture or leave it out to go in the Servicing folder inside Tools.


it seems like some process or file is still running from your mounted folder

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Yuriy wrote:
KrX wrote:
hi

normally you should put it here:

Slim down boot.wim Vhhtds4g

at the mounted folder and than next to the windows folder.

------------------------------------

if you did that could you try this:

mount again your boot.wim and copy the Root batch to that folder.
Press Windows-key and R and enter in the Run Box "cmd" without "
go to the directory where you mounted your boot.wim with the CD comand
i.e. "cd C\bootwim"
click enter, now you put that command:


ROOT_MultiUpload.bizd.bez.bat > output.txt 2>&1


that will log all the output. now go to i.e C:\bootwim and open the output.txt and copy some line from there in a Post so we can check that

-----------------------------------------------------
PS it would be better if your command would look like that


dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: c:\bootwim dism\offline

i changed the "mountdir: c:" to "mountdir: c:\bootwim"

Something I did not get ...
My actions:
1. This is the path  C:\dism\iso is boot.wim
Slim down boot.wim <a href=Slim down boot.wim Fdcbe82469fe" />
2. Mounts in c:\bootwim\offline:
dism /mount-wim /wimfile:c:\dism\iso\boot.wim /index:1 /mountdir:c:\bootwim\offline
3. Copy the file ROOT_MultiUpload.biz here c:\bootwim\offline, run as administrator...
Slim down boot.wim <a href=Slim down boot.wim 19fc53f1debd" />
4. After work ROOT_MultiUpload.biz, dismantle, with preservation of image:
 Dism /Unmount-Image /MountDir:C:\bootwim\offline /commit
5. Here's what happened:
Slim down boot.wim <a href=Slim down boot.wim 18a2351b4148" />
Where is my mistake?
Please, treat with understanding. Thank you!

C unmounting - figured out ... Thanks.
Slim down boot.wim <a href=Slim down boot.wim 5faf5d5dee25" />
But boot.wim, anyway does not change, the opposite - increased slightly.
Slim down boot.wim <a href=Slim down boot.wim 6ad7da46a812" />
What I'm doing wrong?

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
normally your bootwim folder should look like this after using the batch file:

Slim down boot.wim Vhhtds4g

maybe its a usrer-rights problem?

maybe try mounting the boot wim to your user desktop (like you see on my picture, i do the same)

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
KrX wrote:
hi

normally you should put it here:

Slim down boot.wim Vhhtds4g

at the mounted folder and than next to the windows folder.

------------------------------------

if you did that could you try this:

mount again your boot.wim and copy the Root batch to that folder.
Press Windows-key and R and enter in the Run Box "cmd" without "
go to the directory where you mounted your boot.wim with the CD comand
i.e. "cd C\bootwim"
click enter, now you put that command:


ROOT_MultiUpload.bizd.bez.bat > output.txt 2>&1


that will log all the output. now go to i.e C:\bootwim and open the output.txt and copy some line from there in a Post so we can check that

-----------------------------------------------------
PS it would be better if your command would look like that


dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: c:\bootwim dism\offline

i changed the "mountdir: c:" to "mountdir: c:\bootwim"

Please (right), the path to the desktop, to try

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Please (right), the path to the desktop, to try

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
what i meant was try mounting the boot wim to your desktop:

dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: C:\Users\KrX\Desktop\bootwim


just change KrX for your username:
C:\Users\KrX\Desktop\bootwim

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
hey i was just wandering. did you choose at winreducer the winsxs folder cleanup?

if no than there should be still a lot of files at your bootwim -> windows/winsxs

and maybe thats why your boot.wim is still so big

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
KrX wrote:
what i meant was try mounting the boot wim to your desktop:

dism / mount-wim /wimfile:c:\dism\iso\boot.wim / index: 1 / mountdir: C:\Users\KrX\Desktop\bootwim


just change KrX for your username:
C:\Users\KrX\Desktop\bootwim

Did as you advised ...
Create a folder bootwim on the desktop, made all the manipulation,
  but it's still not coming out ... can not be changed boot.wim.
What could it be?
Slim down boot.wim <a href=Slim down boot.wim 75c60b3277a7" />

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
KrX wrote:
hey i was just wandering. did you choose at winreducer the winsxs folder cleanup?

if no than there should be still a lot of files at your bootwim -> windows/winsxs

and maybe thats why your boot.wim is still so big


1) how about this?

-----------------------------

2)

KrX wrote:

if you did that could you try this:

mount again your boot.wim and copy the Root batch to that folder.
Press Windows-key and R and enter in the Run Box "cmd" without "
go to the directory where you mounted your boot.wim with the CD comand
i.e. "cd C\bootwim"
click enter, now you put that command:


ROOT_MultiUpload.bizd.bez.bat > output.txt 2>&1


that will log all the output. now go to i.e C:\bootwim and open the output.txt and copy some line from there in a Post so we can check that


could you try this command and upload the whole output.txt file and post it here.

because if you used with winreducer the winsxs folder cleanup the output.txt file should help me to check whats got wrong

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Maybe because it is impossible that I Windows Russian? Here is what the text file obtained by:
Slim down boot.wim <a href=Slim down boot.wim 68e4f79ced46" />

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
hmm thats really funny. normally it should work even if your language is Russian

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
KrX wrote:
hmm thats really funny. normally it should work even if your language is Russian

So what does not work?
It seems to do everything as you write ... Or not?

descriptionSlim down boot.wim EmptyRe: Slim down boot.wim

more_horiz
Okay ... So far, leave this venture ... We need to switch ... Shocked
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum