WIM Compression Type Values

Sinical

New Member
I'm trying to disable the wim compression and make it none in the settings.xml file but I can't find any reference online to which number is equal to "none" compression.

It's set to 2 by default, maybe 0?
 
Practically every 3rd-party Windows image tool use the same wimlib library.
https://wimlib.net/apidoc/wimlib_8h.html


Untouched W7 SP1 ISO
Code:
imagex.exe /info install.wim | findstr "Compression"
Compression: LZX
Compression chunk size: 32768

04/12/2011  02:38 AM     2,954,401,643 install.wim

<WimCompression>0</WimCompression>
9/10/2022 1:26:31 PM Exporting F:\Y50-70\PURGE\Downloads\Releases\Win7_Ult_SP1_English_x64\Sources\install.wim:1 -> G:\src\NTLite\NLTmpWExp16cbf36b\install.wim
9/10/2022 1:26:31 PM - WG Export
9/10/2022 1:26:31 PM GWH
9/10/2022 1:26:39 PM Image compression: 0
9/10/2022 1:26:39 PM GWH
9/10/2022 1:31:38 PM Deleting temporary files: G:\src\NTLite\NLTmpWEDst16cbf36b1
9/10/2022 1:31:38 PM Deleting temporary files: G:\src\NTLite\NLTmpWESrc16cbf36b1
9/10/2022 1:31:38 PM Exporting F:\Y50-70\PURGE\Downloads\Releases\Win7_Ult_SP1_English_x64\Sources\install.wim:2 -> G:\src\NTLite\NLTmpWExp16cbf36b\install.wim
9/10/2022 1:31:38 PM - WG Export
9/10/2022 1:31:38 PM GWH
9/10/2022 1:32:07 PM Image compression: 0
9/10/2022 1:32:07 PM GWH
9/10/2022 1:39:25 PM Deleting temporary files: G:\src\NTLite\NLTmpWEDst16cbf36b2
9/10/2022 1:39:25 PM Deleting temporary files: G:\src\NTLite\NLTmpWESrc16cbf36b2
9/10/2022 1:39:25 PM Exporting F:\Y50-70\PURGE\Downloads\Releases\Win7_Ult_SP1_English_x64\Sources\install.wim:3 -> G:\src\NTLite\NLTmpWExp16cbf36b\install.wim
9/10/2022 1:39:25 PM - WG Export
9/10/2022 1:39:25 PM GWH
9/10/2022 1:39:54 PM Image compression: 0
9/10/2022 1:39:54 PM GWH
9/10/2022 1:47:16 PM Deleting temporary files: G:\src\NTLite\NLTmpWEDst16cbf36b3
9/10/2022 1:47:16 PM Deleting temporary files: G:\src\NTLite\NLTmpWESrc16cbf36b3
9/10/2022 1:47:17 PM Exporting F:\Y50-70\PURGE\Downloads\Releases\Win7_Ult_SP1_English_x64\Sources\install.wim:4 -> G:\src\NTLite\NLTmpWExp16cbf36b\install.wim
9/10/2022 1:47:17 PM - WG Export
9/10/2022 1:47:17 PM GWH
9/10/2022 1:47:45 PM Image compression: 0
9/10/2022 1:47:45 PM GWH
Code:
imagex.exe /info install.wim | findstr "Compression"
Compression: NONE

09/10/2022  01:55 PM     6,771,905,205 install.wim
 
I got around to testing this today on W10 21H2, here's that data for anyone curious:

Original ISO:
5.47 GB

Convert to WIM, WimCompression 2 (default):
4.92 GB (7 minutes to export)

Convert to WIM, WimCompression 0 (none):
9.07 GB (9 minutes to export)

Note: when converting to WIM in NTLite the only modifications were to trim all intall.wim editions except Home (core).

For anyone wondering why you'd want to play with the compression, the gist of it is, if you want a faster installation of Windows then uncompressed should be better since the CPU doesn't have to uncompress the files first before installing them, but in other places outside of Windows Setup, such as while copying the files to a USB drive it will take longer since the files are bigger. There's certainly pros and cons in either direction, and I don't think either choice is superior to the other, it mostly just depends on your personal circumstances and the machines you are dealing with.
 
Back
Top