Install Fonts with Inno Setup - Replacing fonts that are locked
<p>I'm using Inno Setup to install the Fontawesome font for a desktop application on Windows. First install usually works fine as the fonts aren't installed, but on subsequent installs I frequently run into locking problems:</p>

<p><a href="https://i.stack.imgur.com/FVZMk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FVZMk.png" alt="Inno Installer locked font file Dialog"></a></p>

<p>In order to install the font I'm using:</p>

<pre><code>Source: "FontAwesome.ttf"; DestDir: "{fonts}"; FontInstall: "FontAwesome";\
        Flags: uninsneveruninstall
</code></pre>

<p>Now I know I can use <code>Flags: onlyifdoesntexist</code> to install the fonts only if they don't exist and that does work. However, on occasion I need to update the Font due to a version change and new fonts that have been added.</p>

<p>The error apparently occurs only if something is using the font. Besides the main installed application, I'm using Chrome and have pages open that use FontAwesome and apparently that's also locking the installed font.</p>

<p>Ideally what I need to have happen is if the font is locked have it replaced after the next reboot or after the font becomes unblocked.</p>

<p>It also looks like Inno is trying to replace the font each and every time even though the the font version is the same. According to <a href="http://www.jrsoftware.org/ishelp/index.php?topic=filessection" rel="nofollow noreferrer">the docs</a> (bottom of the document) files are only supposed to be replaced if the install version is higher, but that doesn't appear to be happening with the font wanting to install each time.</p>

<p>Is there any way to make Inno properly deal with Font Updates if the font in question is in use?</p>