Installing a font with Wix not to the local font folder

后端 未结 4 1245
醉酒成梦
醉酒成梦 2021-02-07 04:17

I am using Wix to create an installation for a website.

When adding a font, WiX picks up on the .ttf extension and requires you to install it to the local Font folder (W

4条回答
  •  醉梦人生
    2021-02-07 05:03

    After the issue being raised months later we managed to find the issue:

    The KeyPath solution was half of the answer (See Alex's Answer). Without using the KeyPath attribute in WiX, the below solution will not work.

    The other part is the Internal Consistency Evaluators (ICE) that WiX runs through Linker (light.exe) when packaging the MSI. The ICE rule ICE07, checks the contents of the files, and if it determines that the file is a font, will force the file in Windows/Fonts.

    To stop this happening, you need to disable this rule when light.exe runs. To do this, you add the -sice: parameter after light.exe. For our example it would be:

    light.exe -sice:ICE07
    

    You can disable multiple rules by adding more -sice parameters.

提交回复
热议问题