views:

34

answers:

1

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.

+1  A: 

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
Thanks. Will try it out. :)
Ravi Chhabra
Don't forget ariali.ttf, arialbd.ttf and arialbi.ttf.
Michael Urman

related questions