Cleanup install.wim after applying all updates.

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

  1. mrjohnson38

    mrjohnson38 MDL Novice

    Joined:
    Sep 20, 2020
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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

    Joined:
    Jan 21, 2011
    Messages:
    286
    Likes Received:
    148
    Trophy Points:
    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

    Joined:
    Sep 20, 2020
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I don't want to use third-party programs. I just don't trust them.
     
  4. kaljukass

    kaljukass MDL Guru

    Joined:
    Nov 26, 2012
    Messages:
    2,436
    Likes Received:
    883
    Trophy Points:
    90
    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?
     
  5. adric

    adric MDL Addicted

    Joined:
    Jul 30, 2009
    Messages:
    846
    Likes Received:
    580
    Trophy Points:
    30
    #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

    Joined:
    Dec 4, 2011
    Messages:
    226
    Likes Received:
    106
    Trophy Points:
    10
    Just convert it from WIM to ESD
     
  7. KleineZiege

    KleineZiege MDL Addicted

    Joined:
    Dec 11, 2018
    Messages:
    525
    Likes Received:
    254
    Trophy Points:
    30
    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

    Joined:
    Oct 30, 2009
    Messages:
    35,567
    Likes Received:
    59,634
    Trophy Points:
    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

    Joined:
    Sep 20, 2020
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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

    Joined:
    Oct 30, 2009
    Messages:
    35,567
    Likes Received:
    59,634
    Trophy Points:
    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.