ESD <> WIM Conversion batch

Discussion in 'Scripting' started by liliactr, Apr 16, 2014.

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    One (x86 pro vl)
     
  2. Smorgan

    Smorgan Glitcher

    Mar 25, 2010
    1,854
    1,048
    60
    Added this back to the list of tools I use because the WIM -> ESD converter and reverse is truly awesome to have.
     
  3. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,301
    14,780
    240
    wimlib-1.7.4

    Update, wimlib-1.7.4 is out:
    http://sourceforge.net/projects/wimlib/files/
    changelog:
    The Windows binary distribution no longer contains third party DLLs.
    These dependencies are instead compiled directly into the libwim DLL.




    Added more fixes for wimlib on non-x86 architectures such as ARM.




    Extracting files to a Windows PE in-memory filesystem no longer fails if
    the target files do not yet exist.




    Improved the performance of XPRESS compression and LZMS decompression.




    Enabled SSSE3 accelerated SHA-1 computation in x86_64 Windows builds.
    It will automatically be faster on newer Intel and AMD processors.




    Removed the --with-imagex-progname and --enable-more-assertions
    configure options.
     
  4. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,793
    771
    60
    #44 LiteOS, Feb 9, 2015
    Last edited by a moderator: Apr 20, 2017
    can u add option to deploy to drive pls
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    #45 abbodi1406, Feb 14, 2015
    Last edited by a moderator: Apr 20, 2017
    Code:
    File: ESD2WIM-WIM2ESD-wimlib-2.7z
     MD5: 60c2d8b78b48fc2f3ab850d5eac3beca
    SHA1: db0d0c8755b50fd1e5da5fdbad8b8354180840c2
    
    Download
    Mirror
    - Updated wimlib-imagex to latest beta
    - Added option for applying image to another drive
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    wimlib-1.8.0-BETA4

    according to NEWS.txt, it now provide the same or better ESD compression level (file size) than Dism, and still faster
    but it will require/use more memory to achieve this
    Improved the LZMS compressor. It now provides a compression ratio
    slightly better than WIMGAPI while still being faster and using slightly
    less memory.

    The compression chunk size in solid resources, e.g. when capturing or
    exporting a WIM file using the '--solid' option, now defaults to 64 MiB
    (67108864 bytes) instead of 32 MiB (33554432 bytes). This provides a
    better compression ratio and is the same value that WIMGAPI uses. The
    memory usage is less than 50% higher than wimlib v1.7.4 and is slightly
    lower than WIMGAPI's memory usage, but if it is too much, it is still
    possible to choose a lower value, e.g. with the '--solid-chunk-size'
    option to wimlib-imagex.
    i'll wait until final release to update the script pack
    in the mean time, one could download the beta and replace current wimlib-imagex.exe and libwim-15.dll with new ones for each arch
     
  7. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,301
    14,780
    240
    Well I assume that if I'm going to dedicate to do this kind of work, I mean servicing images etc, a lot or RAM I must have. As I have 12GB guess there's no problem for me :D
     
  8. rhahgleuhargh

    rhahgleuhargh MDL Member

    Feb 9, 2015
    123
    31
    10
    @abbodi1406,
    Thx a lot for your script it works like a charm to transform ESD file from Microsoft Media Creation Tool into WIM !
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    #49 abbodi1406, Feb 26, 2015
    Last edited by a moderator: Apr 20, 2017
    wimlib v1.8.0 has been released.
    Code:
    File: ESD2WIM-WIM2ESD-wimlib-3.7z
     MD5: 6737bcea44267180a0c234f6ba182ca5
    SHA1: 1071a5563721fe458e5cdc475faede35e7b4f5c5
    
    Download
    Mirror
    quick test result:
    Code:
    source: boot.wim / 206 MB / both indexes
    
    wimlib : 131 MB in ~ 7:30 minutes
    dism   : 139 MB in ~ 12:00 minutes
     
  10. hol1_diver

    hol1_diver MDL Novice

    Apr 4, 2015
    1
    0
    0
    I downloaded ESD2WIM-WIM2ESD-wimlib-3.7z and used it to convert windows 8.1 Pro install.esd to install.wim and it worked fine on a Windows 7 environment using your script. Thanks guys you did a great job.
     
  11. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,793
    771
    60
    #51 LiteOS, Apr 22, 2015
    Last edited: Apr 22, 2015
    N,m

    Failed to create a hard or symbolic link when extracting a file from the WIM
     
  12. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,730
    759
    60
    I get warnings about hardlink errors when I convert my win7 install.wim to install.esd.
    The win7 esd file works 100%.
    When I convert Svr 2012r2, win8+ & win10 from wim to esd I get no warnings...
     
  13. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,793
    771
    60
    7zip last ver also bypass this problem
     
  14. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,793
    771
    60
    @abbodi1406

    maybe u can make it work....

    when mounting a drive to ntfs dir on another drive
    and extracting the install.wim, it show hardlink error but its still booting
    however updating failed

    maybe u can make wim-imagex work around it and fix it?
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    #55 abbodi1406, Apr 23, 2015
    Last edited by a moderator: Apr 20, 2017
    I never used that's option actually
    but reading wimlib docs leads to this option: --norpfix
    add it to this line:
    Code:
    "%wimlib%" apply "%WIMFILE%" %_index% %_ltr%
    to be
    Code:
    "%wimlib%" apply "%WIMFILE%" %_index% %_ltr% --norpfix 
    and be sure to run the script as admin
     
  16. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,793
    771
    60
    #56 LiteOS, Apr 23, 2015
    Last edited: Apr 23, 2015
    wont work :\
    with 7zip its working but windows update failed

    Im trying make like SSD edition
    when installing windows on SSD the cache dir like
    Winsxs will be on HDD partition drive with diskpart mount
    so SSD footprint wont get bigger

    even installing more Microsoft application
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    Did you try dism?
     
  18. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,793
    771
    60
    #58 LiteOS, Apr 23, 2015
    Last edited: Apr 23, 2015
    no i will try
    i check imagex.exe but there no norpfix option there


    edit:
    doesn't work too
    The system cannot move the file to a different disk drive.
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,576
    51,411
    340
    wimlib is better

    that would work

    you may make it
    wimlib-imagex export install.wim all install.esd --solid
     
  20. balubeto

    balubeto MDL Addicted

    Dec 22, 2009
    508
    10
    30
    #60 balubeto, Jul 26, 2015
    Last edited by a moderator: Apr 20, 2017
    Using Windows ADK and having to convert the install.wim to install.esd file, I should write:

    Code:
    dism /Export-Image /SourceImageFile:"<Windows_Files_Path>\sources\install.wim" /SourceIndex:<Image_Index> /DestinationImageFile:"<Windows_Files_Path>\sources\install.esd" /Compress:recovery /CheckIntegrity
    
    for each volume image stored in the install.wim file. Right?

    At this point, I could delete the install.wim file from the installation DVD of Windows 8.x/10 and replace it with the install.esd file. Right?

    Thanks

    Bye
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...