WiX ICE validation errors

前端 未结 6 1960
臣服心动
臣服心动 2020-12-23 09:28

I\'m having some strange issues with WiX on my local machine. The problem is intermittent, but after a few rebuilds of the solution, the WiX project starts throwing ICE vali

相关标签:
6条回答
  • 2020-12-23 09:45

    Try adding <RunWixToolsOutOfProc>true</RunWixToolsOutOfProc> to your WiX project file.

    We've had the same issue for a while, and tried various workarounds including deleting the temporary files and setting the msbuild environment variable. These all appeared to work for a while, but eventually (sometimes after a few days) the problem would come back again.

    I noticed that on my machine devenv.exe was the process that was locking the files that light.exe was trying to delete. I also stumbled across an unrelated thread which mentioned this project setting to make the WiX tools run out of process. I thought it could be worth a try and it appears to have cured the problem for us (so far...)

    0 讨论(0)
  • 2020-12-23 09:49

    I too had faced same the issue. In project properties, go to Tool Settings and click Suppress ICE validation.

    Enter image description here

    0 讨论(0)
  • 2020-12-23 09:50

    For ICE30: ICE Internal Error 100. API Returned: 1615, please try this and see if it works:

    1. Close all instances of Visual Studio (may be just the one that matters but just in case)
    2. Go to C:\Documents and Settings\\****user id****\\Local Settings\Temp\.
    3. Clear all the folders that look like this .. 's12qgaks'. Basically it contains the MSI files
    4. Open the solution and recompile.

    Good luck!

    0 讨论(0)
  • 2020-12-23 09:53

    I had this issue as well and solved it in my environment.

    Short answer:

    Add the environment variable MSBUILDDISABLENODEREUSE=1 and restart Visual Studio

    Long answer:

    There was a warning during build that I first didn't see since I was too focused on the error:

    Failed to delete temporary directory: C:\Users[username]\AppData\Local\Temp\5[uniqueFolderName] light.exe

    I tried to remove the folder manually, but it was in use by another process.

    It turns out that a lot of MSBuild.exe processes are started during build and then not closed again. You can read more about the reason for that and what you can do to change that behavior in Stack Overflow question msbuild.exe staying open, locking files.

    This thread: it and the solution in this thread:

    I hope this answer can help someone else.

    0 讨论(0)
  • 2020-12-23 09:56

    I had the same issue. It turned out to be my Anti Virus software (OfficeScan) It had the intermediate files created by Light.exe locked and the validation process failed. Excluding the temp folder from virus scan or turning off ICE validation is not an acceptable solution.

    If anyone has a better solution. I would like to know.

    0 讨论(0)
  • 2020-12-23 09:59

    For me MSBUILDDISABLENODEREUSE=1 (or /nr:false on command line) did not solve the problem. But <RunWixToolsOutOfProc>true</RunWixToolsOutOfProc> did its job done.

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