Wix Cache Cabinet Not Working

I can't seem to get wix cabinet caching to work.

I have

<PropertyGroup> <CabinetCreationThreadCount>3</CabinetCreationThreadCount> <CabinetCachePath>cabs</CabinetCachePath> <ReuseCabinetCache>True</ReuseCabinetCache> </PropertyGroup> 

in wixproj.

 <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="mszip"/> <Media Id="2" Cabinet="static.cab" EmbedCab="yes" CompressionLevel="mszip"/> 

in wxs

and the component that I know 100% never changes with a mark

  <Component DiskId="2" ... 

I see cabin files created in the cabs directory, but every time I build, I see the modified time of the cabin file change, which means that it restored the cabinet instead of reusing one of the cache.

Using Wix 3.6

How can I get this working or debug the problem further?

+4
source share
1 answer

Are you building or rebuilding (i.e. /t:build or /t:rebuild )? WiX Import will delete the generated files during recovery. It is also possible that this happens even if you are just building. Create a verbose log by passing /v:diag to MSBuild, but be sure to redirect the file like this:

 msbuild /t:build /v:diag 

If this does not display deleted CAB files, I recommend checking out http://wixtoolset.org for your support channel.

0
source

Source: https://habr.com/ru/post/1495856/


All Articles