locked
How to get wix working in a build? RRS feed

  • Question

  • I have a project with a wix project and it throws the following errors. The surprising fact is that wix seems to be available:

    (These errors get repeated from 'ICE01' to 'ICE09' with the same message)

    light.exe: Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See http://wix.sourceforge.net/faq.html#Error217 for details and how to solve this problem. The following string format was not expected by the external UI message logger: "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.".

    Wednesday, November 21, 2012 2:41 AM

Answers

  • Hi CadErik,

    Thank you for your post.

    Can you build the Wix project properly with local MSBuild?

    As far as I know, use team build build Wix project, you need install WIX in build machine, but for hosted build machine, WIX is not in the list. You can deploy and use an on-premises build controller instead.

    The hosted build server is deployed with the following software:

    • Windows Server 2008 R2 (64-bit environment)
    • Team Foundation Build (Team Foundation Server 2012)
    • Visual Studio
      Visual Studio 2012 Ultimate RTM
      Visual Studio SDK 2012 RTM
      Visual Studio 2010 SP1
    • The .NET Framework
      .NET 4.5
      .NET 3.5 SP1
    • Windows Azure
      SDK 1.7
      SDK 1.6
      Integration Components 1.6
    • SharePoint 2010
    • Web Deploy 3.0
    • TFS 2012_BuildExtensions.msi (for Java)

    You can find more information about hosted build machine from https://tfs.visualstudio.com/en-us/learn/build/hosted-build-controller-in-vs/

    If anything is unclear, please free feel to let me know.

    Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Lily_WuModerator Tuesday, November 27, 2012 4:17 AM
    • Unmarked as answer by CadErik Tuesday, November 27, 2012 5:36 AM
    • Marked as answer by Lily_WuModerator Tuesday, December 4, 2012 8:59 AM
    Thursday, November 22, 2012 5:40 AM
    Moderator

All replies

  • Hi CadErik,

    Thank you for your post.

    Can you build the Wix project properly with local MSBuild?

    As far as I know, use team build build Wix project, you need install WIX in build machine, but for hosted build machine, WIX is not in the list. You can deploy and use an on-premises build controller instead.

    The hosted build server is deployed with the following software:

    • Windows Server 2008 R2 (64-bit environment)
    • Team Foundation Build (Team Foundation Server 2012)
    • Visual Studio
      Visual Studio 2012 Ultimate RTM
      Visual Studio SDK 2012 RTM
      Visual Studio 2010 SP1
    • The .NET Framework
      .NET 4.5
      .NET 3.5 SP1
    • Windows Azure
      SDK 1.7
      SDK 1.6
      Integration Components 1.6
    • SharePoint 2010
    • Web Deploy 3.0
    • TFS 2012_BuildExtensions.msi (for Java)

    You can find more information about hosted build machine from https://tfs.visualstudio.com/en-us/learn/build/hosted-build-controller-in-vs/

    If anything is unclear, please free feel to let me know.

    Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Lily_WuModerator Tuesday, November 27, 2012 4:17 AM
    • Unmarked as answer by CadErik Tuesday, November 27, 2012 5:36 AM
    • Marked as answer by Lily_WuModerator Tuesday, December 4, 2012 8:59 AM
    Thursday, November 22, 2012 5:40 AM
    Moderator

  • Can you build the Wix project properly with local MSBuild?

    As far as I know, use team build build Wix project, you need install WIX in build machine, but for hosted build machine, WIX is not in the list. You can deploy and use an on-premises build controller instead.


    The odd part about the whole build is that light and candle did execute on the TFS server - so some sort of Wix install has to be there, otherwise the msbuild would blow. My current project is building on local msbuild.

    Tuesday, November 27, 2012 5:38 AM
  • Hi CadErik,

    For you unmark the post, would you please let us know which part is unclear for you?

    Are you using on-premises TFS or Team Foundation Service(https://tfs.visualstudio.com/en-us/)?

    Do you install WIX in local machine so that you can use local msbuild to build the project? 

    Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, November 29, 2012 8:35 AM
    Moderator
  • Hi CadErik,

    Since we haven't heard from you for a long time, I close this case now. I mark useful reply as answer. If you have any concerns, please feel free to reopen it or submit a new question. Thanks for your understanding.

    Regards,


    Lily Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, December 4, 2012 8:59 AM
    Moderator
  • Hello is this still an issue or maybe again?

    I'm  not able to complete a build in hosted build server with the Wix in the solution. Without it builds fine.

    Getting error's like "light.exe: Error executing ICE action 'ICEM01'..... ICEM02 03 04 05 etc ICEM29...

    Locally building the solution works fine aswell Debug as Releasebuilds..

    I'm trying for day's now... Can't find a howto to check what I'm missing. Can anyone pinpoint me in a direction article where I can find a solution?

    Would be great!

    Regards

    Bas

    Thursday, November 14, 2013 11:30 AM
  • Hi,

    I think the problem is that the WIX compilation requires administrator privileges. In the Azure hosted TFS the build does not run with administrator privileges. 

    It's possible to suppress the ICE validation and that way bypass the privilege issue:

    Right Click the relevant wix project -> properties -> Tools settings

    Check Supress ICE validation

    Br,

    Henrik


    • Edited by Larsen1 Friday, August 15, 2014 3:27 PM
    • Proposed as answer by LoraineMarie Wednesday, September 30, 2015 2:39 PM
    Friday, August 15, 2014 2:57 PM
  • This worked for me building on a TFS 2013 build server in which the build process has limited permissions.

    1) Add the following to the wixproj file

        <RunWixToolsOutOfProc>true</RunWixToolsOutOfProc>

    2) Open the project in VS

    -view the properties of the wixproj file,

    -select "Tool Settings"

    check "Suppress ICE validation"


    Friday, January 23, 2015 9:31 PM