[wix-users] Light.exe running when no changes

Rob Mensching rob at firegiant.com
Tue Nov 29 09:42:05 PST 2016


Yep. There are a couple lingering incremental build bugs in WiX v3.x. Hope to solve them in WiX v4.0.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Tuesday, November 29, 2016 6:54 AM
To: wix-users at lists.wixtoolset.org
Subject: Re: [wix-users] Light.exe running when no changes

FYI - I came across this issue when using the WixTagExtension and I think there are a couple of other known scenarios:

 https://github.com/wixtoolset/issues/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20incremental%20build


In my situation I resolved to take the rebuild hit for most projects (or not use the WixTagExtension in the situations where the rebuild created a problem).

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Scott Langham <Scott.Langham at appsense.com>
Sent: Tuesday, November 29, 2016 4:06:25 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Light.exe running when no changes

Hi, does anybody have any thoughts that could help me get past this.

I've got a WiX project which is supposed to build incrementally. But, every time I build it Light.exe runs.

It seems that some tracking files are created in an intermediate folder called obj\x86\Debug. One file "MyProj.wixproj.BindContentsFileListnull.txt" contains a list of references to files that are in the Temp folder, here's one line from that file:
C:\Users\MyUser\AppData\Local\Temp\p3qht4rl\cab_2_ConditionsInstaller\0

When the solution is built, the build log (in verbose mode) says:
Building target "Link" completely.
Input file "C:\Users\MyUser\AppData\Local\Temp\fkzirn0a\cab_2_ConditionsInstaller\0" does not exist.
I believe because that file is missing, MsBuild decides that it should link again. These are temp files, so it seems sensible that they would disappear. After every build, the list of files in the BindContentsFileListnull.txt changes to point at the same files in a new sub-folder of the Temp dir.

Other wix projects I have seem fine and don't keep rebuilding.

How can I fix this one?

The version of light.exe is: 3.10.2516.0

Oh, and I've found a build flag LeaveTemporaryFiles. If I set that to true incremental building works ok, but the temporary files (about 40Mb) are not cleaned up. This isn't really acceptable though as on build servers we have problems with the disk filling up as temporary files keep appearing. We rely on a nightly script that cleans them up. If these files are needed, it seems like they should be in the intermediate folder and not the temp folder, but I don't see any option to redirect them?

Thanks,
  -Scott

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list