Msi two times larger than msm

后端 未结 2 905
抹茶落季
抹茶落季 2021-01-25 03:06

I have a .msm of 100MB and when I build my WiX project I get a .msi of 200MB Here some code:



        
相关标签:
2条回答
  • 2021-01-25 03:10

    As Chris says, you can try to enable high compression as illustrated here:

    <Media Id="1" Cabinet="product.cab" CompressionLevel="high" EmbedCab="yes" />
    

    Read the media element documentation for more information. The "high" compression setting enables LZX instead of mszip format as far as I know.

    Here is a post with info on the various compression levels available for the MSI: What is the compression method used by MSI files?


    Some Links:

    • What is the compression method used by MSI files?
    • http://wixtoolset.org/documentation/manual/v3/xsd/wix/media.html
    0 讨论(0)
  • 2021-01-25 03:11

    So when you set compression to high the MSI is 100MB or about the same size as the .MSM? So what's the problem here?

    The merge process extracts the files from the MSI and places them into the MSI. If the MSM had a higher compression setting then the MSI you could expect the package to expand in size.

    0 讨论(0)
提交回复
热议问题