FontInstall over-writes existing font with newer version (info)

97 views
Skip to first unread message

Joe Lenarz

unread,
Feb 12, 2021, 12:23:04 PM2/12/21
to innosetup
Hi,

I'm not able to get versioning to work with FontInstall. When including the line below under [Files], I expected a newer installed version of "MyFont" to NOT be over-written by an older version in the installer, but it isn't working. (Comparing "File version" as reported in Properties=>Details for the installed font.) The font in the installer always gets installed, no matter the version of the already installed font. Am I missing something, or does this not work for fonts? What "version info" is being compared? (Perhaps that is where my problem lies.)

Using Inno Setup 5.5.6

Source: "..\..\dist\MyFont.otf"; DestDir: "{fonts}"; FontInstall: "MyFont"; Flags: uninsneveruninstall fontisnttruetype; Components: Fonts;

Thank you!

Gavin Lambert

unread,
Feb 14, 2021, 3:49:45 PM2/14/21
to inno...@googlegroups.com
On 13/02/2021 6:23 am, 'Joe Lenarz' wrote:
> I'm not able to get versioning to work with FontInstall. When including
> the line below under [Files], I expected a newer installed version of
> "MyFont" to NOT be over-written by an older version in the installer,
> but it isn't working. (Comparing "File version" as reported in
> Properties=>Details for the installed font.) The font in the installer
> always gets installed, no matter the version of the already installed
> font. Am I missing something, or does this not work for fonts? What
> "version info" is being compared? (Perhaps that is where my problem lies.)

The only version info it can check is the version resource in EXE/DLL
files. Any other file type is considered to not have a version.

You can see which version it's detecting in the compiler log output, or
in the manifest file (if enabled).

Joe Lenarz

unread,
Feb 15, 2021, 10:04:38 AM2/15/21
to innosetup
Got it. Thank you for the clarification Gavin.
Reply all
Reply to author
Forward
0 new messages