> I hooked onto the WixSourceGenerated event and modified the XDocument file to correct the font source to Source="C:\Windows\Fonts\Roboto-Light.ttf" from Source="..................\Windows\Fonts\Roboto-Light.ttf". This corrected the issue, the font installed correctly once this was done. Perhaps a bug?
I only noticed this post.
You don't have to resort to WixSourceGenerated when relative path is a challenge. You can place the full path directly to the file constructor. I know it seems that it didn't work in your case but when I modified the code sample to include one of the system fonts like this:
It actually preserved the path as expected:
Thus I am not sure about the cause of that conversion to the relative path in your sample.
I only noticed this post.
You don't have to resort to WixSourceGenerated when relative path is a challenge. You can place the full path directly to the file constructor. I know it seems that it didn't work in your case but when I modified the code sample to include one of the system fonts like this:
new Dir("%Fonts%", new File(@"C:\Windows\Fonts\yuminl.ttf")
<ComponentId="Component.yuminl.ttf"Guid="6f330b47-2577-43ad-9095-18616b080af8"><FileId="yuminl.ttf"Source="C:\Windows\Fonts\yuminl.ttf"/></Component>