Do not include duplicate files multiple times in the Inno Setup installer

后端 未结 2 1366
执笔经年
执笔经年 2020-12-06 23:21

Can the size of my installer be reduced?

At the moment I have this code for my GoogleAuthAndSync support utility:

; Google Calendar Interface v3
Sour         


        
2条回答
  •  醉酒成梦
    2020-12-06 23:57

    I found the solution that allows InnoSetup compiler to succesfully deduplicate files during compression, the intrested part of my config is:

    Compression=lzma2/ultra64
    LZMANumBlockThreads=4
    CompressionThreads=4
    LZMADictionarySize=262144 ; this allows to find duplicated files and succesfully deduplicate them (but compressor consumes up to 2.5GB / ram during compilation)
    LZMAUseSeparateProcess=yes
    SolidCompression=yes
    

    InnoSetup version is 6.0.2 (u)

提交回复
热议问题