Compressing wim just a tiny bit

Discussion in 'Windows 7' started by ryouga, Oct 20, 2014.

  1. ryouga

    ryouga MDL Member

    Apr 15, 2008
    144
    1
    10
    I have made a custom wim, added drivers for my 2 motherboards, added directx and .net 4.5.2 and its just 11 megabytes too big for a dvdrw !!!!

    Is there one or two files to remove or some way to compress it just a little tighter?
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    7,407
    23,090
    240
    #2 abbodi1406, Oct 20, 2014
    Last edited by a moderator: Apr 20, 2017
    Code:
    "\Users\Public\Music\Sample Music"
    "\Users\Public\Pictures\Sample Pictures"
    "\Users\Public\Recorded TV\Sample Media\"
    "\Users\Public\Videos\Sample Videos"
    
    Code:
    \Windows\winsxs\ManifestCache\
    Remove the files inside not the folders themselves
     
  3. ryouga

    ryouga MDL Member

    Apr 15, 2008
    144
    1
    10
    #3 ryouga, Oct 20, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)

    Hmmm not sure how to do that as I used Wintoolkit and WinAIO to make the wim(and DISM to merge 2 swms to remove all but 1 version of windows from indexes)
     
  4. steven4554

    steven4554 MDL Addicted

    Jul 12, 2009
    890
    1,228
    60
    You could use a usb flash drive to install your customized installation of Win7, be much faster than a Dual Layer DVD.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. ryouga

    ryouga MDL Member

    Apr 15, 2008
    144
    1
    10
    Thanks but I want to have it filed away with discs so I have little chance of losing it.

    Anyway still looking, its annoying when its 11 meg too big as surely I can remove something though I know there is files in public folders
     
  6. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,313
    120

    The sample video.wmv is about 25MB in the italian version, I guess it should be more or less the same on other languages.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,365
    210
    #7 murphy78, Oct 24, 2014
    Last edited by a moderator: Apr 20, 2017
    Try making a cmd script like this?:
    Code:
    @echo off
    dism /mount-wim /wimfile:c:\custom-windows\sources\install.wim /index:1 /mountdir:c:\mount
    del /q/f "c:\mount\Users\Public\Music\Sample Music\*.*"
    del /q/f "c:\mount\Users\Public\Pictures\Sample Pictures\*.*"
    del /q/f "c:\mount\Users\Public\Recorded TV\Sample Media\*.*"
    del /q/f "c:\mount\Windows\winsxs\ManifestCache\*.*"
    dism /unmount-wim /mountdir:c:\mount /commit
    dism /export-image /sourceimagefile:c:\custom-windows\sources\install.wim /sourceindex:1 /destinationimagefile:c:\temp\install.wim /checkintegrity
    move /y c:\temp\install.wim c:\custom-windows\sources\
    Save that as somefile.cmd and run as admin after editing the various paths.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    Have you tried to re-export the wim after editing it? In my experience, if you edit a wim, add updates etc. it will have leftover files inside the wim. If you re-export the wim with /maximum it cleans it up. You may find you save hundreds of megabytes.