0

I am creating an installer that also needs to delete the Arial font (I am told Arial will be recreated from a cache if it gets deleted, and that's exactly what I want). Is there a way that I can do this in WiX or will I need to write a custom action?

Update: Users of my installer will 90% of the time have a hacked version of Arial which conflicts with the font fall back mechanism of Web Browsers. It is good to confirm that Arial will be recreated if I deleted it, as technically I can not redistribute an updated Arial font without permission.

Update 2: I was able to delete it, however inside the Fonts folder the Arial font is still there but looks orphaned. That is I can see it, but if I doulbe click it it says font is of incorrect format.

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
Ravi Chhabra
  • 1,730
  • 3
  • 18
  • 27
  • I think you shouldn't automatically delete a font, that is standard on system, even if it will be automatically recreated. It's like deleting something from system32, that is delivered with the system. – martin Feb 25 '10 at 13:20

1 Answers1

2

I think this could work, even if i did not recommend it in my comment:

   <Directory Id="FontsFolder">
      <RemoveFile Id="RemoveArial" On="install" Name="Arial.ttf"/>
   </Directory>
martin
  • 2,957
  • 3
  • 25
  • 46