[wix-users] Help on font installation

Joel Budreau joel.budreau at gmail.com
Fri Oct 6 12:10:06 PDT 2017


Drop SharedDllRefCount=“yes”. That will add unnecessary component references that could keep the files installed after an uninstall.

- Joel

> On Oct 2, 2017, at 11:34 PM, Akshay Mehta via wix-users <wix-users at lists.wixtoolset.org> wrote:
> 
> Hello all,
> 
> I'm new to WIX and trying to include fonts to my msi package. What i want is to install few fonts whenever my application is installed and uninstall those fonts whenever user uninstalls the application.
> 
> I've added following code:
> 
> <DirectoryRef Id="TARGETDIR">
>      <Directory Id="FontsFolder" Name="Fonts">
>        <Component Id="RobRegular" Guid="my guid 1" SharedDllRefCount="yes" DiskId="1">
>          <File Id="RobotoRegular.ttf" Source="$(var.SOURCE_FONTS_DIRECTORY)\Roboto Regular.ttf" TrueType="yes" ShortName="RobR.ttf" Name="Roboto Regular.ttf" Vital="yes" />
>        </Component>
>        <Component Id="RobBold" Guid="my guid 2" SharedDllRefCount="yes" DiskId="1">
>          <File Id="RobotoBold.ttf" Source="$(var.SOURCE_FONTS_DIRECTORY)\Roboto Bold.ttf" TrueType="yes" ShortName="RobBd.ttf" Name="Roboto Bold.ttf" Vital="yes"/>
>        </Component>
>        <Component Id="RobI" Guid="my guid 3" SharedDllRefCount="yes" DiskId="1">
>          <File Id="RobotoItalic.ttf" Source="$(var.SOURCE_FONTS_DIRECTORY)\Roboto Italic.ttf" TrueType="yes" ShortName="RobI.ttf" Name="Roboto Italic.ttf" Vital="yes"/>
>        </Component>
>        <Component Id="RobBoldI" Guid="my guid 4" SharedDllRefCount="yes" DiskId="1">
>          <File Id="RobotoBoldItalic.ttf" Source="$(var.SOURCE_FONTS_DIRECTORY)\Roboto BoldItalic.ttf" TrueType="yes" ShortName="RobBdI.ttf" Name="Roboto BoldItalic.ttf" Vital="yes" />
>        </Component>
> .......
> 
> Also added respective "component ref tags" in feature section.
> 
> Problem I'm facing: The fonts get installed but does not uninstall on  uninstallation of application. Sometimes the previously installed fonts gets removed after a running a new installer.
> 
> I'm not having any clue, where I'm going wrong. Or, what things should I check.
> 
> 
> Any suggestions would be really helpful.
> 
> Thanks in advance.
> 
> Thanks,
> Akshay Mehta.
> 
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list