WiX 3.0 throws error 217, while being executed by continuous integration

前端 未结 12 1722
醉酒成梦
醉酒成梦 2020-12-07 14:23

This is the error that is thrown by our automated build suite on Windows 2008, while running ICEs (after migrating from WiX 2.0 to WiX 3.0):

LGHT0217:

12条回答
  •  清歌不尽
    2020-12-07 15:19

    imagi is totally right! I could not believe this is the true answer. Supressing validation and making TFS user Administrator are not good solutions. Plus I could not find NT\Authority to add it to Administrators group and was totally stuck in this.

    I got the same error on Windows Server 2012 Datacenter as Build Agent. To solve the problem :

    1. List item
    2. Go to Environment Variables on the build agent machine
    3. Create two System Variables
    4. "PF86" which is equal to "C:\Program Files (x86)"
    5. "PF" which is equal to "C:\Program Files"
    6. They are so short because I want to save characters.I made them without the final backslash because TEMP, TMP and others were made so and I decided to stick to MS standard for these variables.
    7. Edit PATH variable by substituting every "C:\Program Files (x86)" with %PF86% and every "C:\Program Files" with %PF%
    8. Close and build and enjoy!
    9. It worked for me. :)

    UPDATE I found a better solution : Rapid Environment Editor will do all this and even more for you. Automatically.

提交回复
热议问题