[wix-users] How to set DefaultCompressionLevel in the wixproj

David Bernstein bernstein.david at microsoft.com
Thu Feb 4 00:06:49 PST 2016


Thanks Bob. 
I'm running WiX 3.10.2.2516 too. I checked the logs as you suggested and saw -dcl:low even though I was passing none.
I closed the VS process and started it over and now -dcl:none is being passed as expected.
I didn't change anything other than that.
I have DefaultCompressionLevel set to none in a PropertyGroup way before wix.targets was imported and I didn't change this between the tests.
IIUC WIX_COMPRESSION_LEVEL overrides the compression level when writing the cab, so even if I forgot it on (which I didn't), it shouldn't impact the dcl command-line argument passed.

So the bottom line is that it is working now, but I'm not sure where the -dcl:low came from previously (not even mszip).

Many thanks,
David

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Bob Arnson
Sent: Wednesday, February 3, 2016 7:53 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] How to set DefaultCompressionLevel in the wixproj

Works for me with WiX v3.10.2. Check a verbose MSBuild log to see if the property's getting set and/or if -dcl is passed on the Light.exe command line.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of David Bernstein
Sent: Wednesday, 3 February, 2016 11:24
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] How to set DefaultCompressionLevel in the wixproj

Hi,

How can I set the DefaultCompressionLevel in the wixproj so it works also for VS and also for msbuild?

Running Light.exe with an explicit "-dcl:level" switch works well.
So does setting the environment variable "WIX_COMPRESSION_LEVEL=level" and using VS or msbuild.
However, adding the following to wixproj
  <PropertyGroup>
    <DefaultCompressionLevel>level</DefaultCompressionLevel>
  </PropertyGroup>
doesn't seem to work, despite of what I understood from https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fwww.joyofsetup.com%2f2008%2f01%2f28%2fnew-wix-feature-defaultcompressionlevel%2f&data=01%7c01%7cDAVBERNS%40064d.mgd.microsoft.com%7cd95af1a2f01042bfd4a708d32cc2cda9%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=TB5js911pl6qI3OIQ4CV13qmcm8GaeN07ERsV3fOKJ4%3d

(I tested with level=none)

Thanks,
David

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cDAVBERNS%40064d.mgd.microsoft.com%7cd95af1a2f01042bfd4a708d32cc2cda9%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=X8kcYRgfDEwx%2bOOaxv0d7N2162Tklu1bZ5D6PE1jzYM%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cDAVBERNS%40064d.mgd.microsoft.com%7cd95af1a2f01042bfd4a708d32cc2cda9%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=X8kcYRgfDEwx%2bOOaxv0d7N2162Tklu1bZ5D6PE1jzYM%3d


More information about the wix-users mailing list