[compact.exe] Reducing Windows 8/10/11 size by half v1.01

Discussion in 'Scripting' started by LiteOS, Dec 8, 2022.

  1. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,198
    974
    90
    #1 LiteOS, Dec 8, 2022
    Last edited: Jan 19, 2023
    Tool needed to runas TI
    https://www.nirsoft.net/utils/advanced_run.html
    *choosing "c:\*" should be on new clean system to avoid compressing user data if not intended
    *if intended runas ur own user [while it runs as TI] without /f switch to save time
    *use /f to force recompressing exe files to new format
    *impact on performance should go down the more the cmd is closer to bottom
    *run from Windows PE to compress used/locked files


    Code:
    run as admin
    *for lowest footprint but have nice cpu
    *reduce 300mb more compare to XPRESS4K for each 6gb[?]
    compact.exe /c /s /a /i /exe:lzx "C:\*"
    
    *for low footprint and have ok cpu
    compact.exe /c /s /a /i /exe:XPRESS4K "C:\*"
    
    run as TI (advancedrun.exe needed)
    
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact.exe /c /s /a /i "c:\*"" /run
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact.exe /c /s /a /i "c:\windows\*"" /run
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact.exe /c /s /a /i "c:\windows\winsxs\*"" /run
    
    u can also make combination to decrease performance impact by uncompressing exe files just in windows or system32 folders
    [for low-end pc and lowest footprint without compromise performance too much]

    Code:
    compact.exe /c /s /a /i /exe:lzx "C:\*"
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact /U /A c:\windows\*.exe" /run
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact /U /A c:\windows\system32\*.exe" /run
    
    if there still problem uncompress dll files too


    notification:
    btw u might wanna use runfromtoken64.exe
    due the limit of memory[?] with advanced_run

    Code:
    461571 files within 78213 directories were compressed.
    99,491,326,567 total bytes of data are stored in 63,656,390,360 bytes.
    The compression ratio is 1.6 to 1.
     
  2. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    374
    171
    10
    Isn't it the same Dism++?

    [​IMG]
     
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,701
    5,104
    120
    If you have a good computer -
    It not needed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,198
    974
    90
    #4 LiteOS, Dec 9, 2022
    Last edited: Dec 9, 2022
    (OP)
    cant tell if there option to compress without exe files

    @Dark Dinosaur
    same good pc have small disks or small partitions or sometimes need few extra gb
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,005
    93,798
    450
    Don't those PCs usually also have low end cpu and little ram, making using a compacted OS very hard?
     
  6. 12 lb Turkey

    12 lb Turkey MDL Junior Member

    Nov 24, 2022
    77
    45
    0
    My thoughts are CompactOS is more useful if there's enough free memory to cache recently decompressed files. Otherwise you repeat the same perf hit every time a file is read. With compression you can't just randomly read block XYZ from a large file. You must load all (or a large part of the file) to decompress the data first.

    Compression is highly variable, so it's difficult to benchmark performance.
     
  7. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,198
    974
    90
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact /U /A c:\windows\*.exe" /run
    AdvancedRun.exe /Runas 8 /EXEFilename cmd.exe /CommandLine "/c compact /U /A c:\windows\system32\*.exe" /run

    uncompressing those folders should reduce the impact on performance for those low-end pc

    is automatic switch cant have much control