Cleanup install.wim after applying all updates.

Discussion in 'Windows 7' started by mrjohnson38, Sep 22, 2020.

  1. mrjohnson38

    mrjohnson38 MDL Novice

    Sep 20, 2020
    4
    0
    0
    Hi.

    After applying all updates to install.wim its size increased from 2.5 to 4.5Gb. It`s too big. I cannot cleanup it with Dism /Image:C:\XXX /Cleanup-Image /StartComponentCleanup /ResetBase like on Windows 10. How then you can cleanup??? Is there any dism command to do it for Windows 7 install.wim?

    PS: I don't want to split install.wim. I need to clean it up. Like I did it with install.wim on Windows 10.
     
  2. CEW

    CEW MDL Senior Member

    Jan 21, 2011
    296
    155
    10
    #2 CEW, Sep 22, 2020
    Last edited: Sep 22, 2020
    You could apply the image to a spare partition. Boot into it and at first oobe window, press ctrl+shift+F3 to reboot into audit mode. Use sysprep to generalize.
    Reboot into your normal installation. Then run Run dism++ and point cleanup at the sysprepped partition. Then capture it as install.wim
     
  3. mrjohnson38

    mrjohnson38 MDL Novice

    Sep 20, 2020
    4
    0
    0
    I don't want to use third-party programs. I just don't trust them.
     
  4. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,396
    1,322
    120
    So far, you've only said what you don't want to do,
    maybe you now would say what you really want to do then?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. adric

    adric MDL Expert

    Jul 30, 2009
    1,249
    1,324
    60
    #5 adric, Sep 22, 2020
    Last edited: Sep 22, 2020
    Then it looks like your stuck with the image you have. My .wim for x64 (incl. August) is
    2.963 GB using Dism++ as described above.
     
  6. joluboga

    joluboga MDL Member

    Dec 4, 2011
    238
    114
    10
    Just convert it from WIM to ESD
     
  7. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,681
    1,929
    60
    I go out with the size that it already has an install.esd, otherwise it would be way above it
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,233
    94,612
    450
    #8 Enthousiast, Sep 22, 2020
    Last edited: Sep 22, 2020
    A fully updated win 7 x64 install.esd will be around 2,77 GB (2.976.752.120 bytes) not 4.5GB.

    install.wim would be approx. 4,84 GB (5.199.169.646 bytes).

    You can't dism resetbase on win 7, but there are ways to cleanup the sxs folder but can't advise to do it.
     
  9. mrjohnson38

    mrjohnson38 MDL Novice

    Sep 20, 2020
    4
    0
    0
    I haven't used Windows 7 for a long time. It seems dism Windows 7 did not support converting wim to esd before. Correct me if I'm wrong.
    ESD uses better compression. Will this affect the installation time when compared with WIM?
    When i install all updates on live os it`s +8 gb to disk "C". If I install ESD with all updates inside, the size will not change +/- ?
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,233
    94,612
    450
    Win 7 setup can't handle install.esd, you have to use a win 8.1/10 boot media.

    The installation footprint can be a little bit different but not because using an install.esd, it will be because of the difference in offline or online updating.