Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Install Fonts with installer

You are always welcome!

I am glad everything is working as expected now.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vuxuancu
Posts: 1
Joined: Wed Oct 12, 2022 9:04 am

Re: Install Fonts with installer

Hi. I did as instructed:
To install a font follow these steps:
- go to the "Files and Folders" page
- in the directory tree, navigate to "Windows Volume\Windows\Fonts"
- add your font file there
- right click your font file and choose Properties from the context menu
- in the "Font" tab, check the "Register font" checkbox.
- if your font file is a "True-Type" or "True-Type Collections" font, leave the "Registration Name" field blank, otherwise provide a name for your font
The fonts also appear in C:\Windows\Fonts after installation. But when I run my application, lines using that font will be returned to default.
How can I fix this problem?
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Install Fonts with installer

Hello and welcome to our forums,

If the font is correctly installed by your setup, but somehow your application does not see it, then the problem relies in your application which I can not really help much with.

After a bit of research, I found the following StackOverflow thread:

Using a font that a user doesn't have installed

In addition to that, here's a Microsoft article:

Embed a font

which states that:
If you add a custom font to your application, you must embed it in your application for users to see the font.
With that being said, you might need to embed the font into your application.

Hope it helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Orion33
Posts: 11
Joined: Tue Aug 15, 2023 2:54 pm

Re: Install Fonts with installer

There's a bit of a problem. In the simple version we have the option to embed a font in the installer and enable the "Register in system" option. But font registration is possible only with administrator permissions. However, the "Run as administrator" checkbox is not available in the simple version. Would like to solve this collision: either remove the font from the free edition, either add running as administrator to it.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Install Fonts with installer

Hello,

The "Run as administrator" option is not available because that will turn your setup package from an MSI to an EXE.

The easiest way to overcome this would be to run your MSI with administrator rights.

In order to do so, please:

- open a command prompt as administrator

- run the following command

Code: Select all

msiexec /i <path_to_MSI>\yourMSI.msi
This way, the MSI will run as administrator and the registration of the font should be done just fine.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Orion33
Posts: 11
Joined: Tue Aug 15, 2023 2:54 pm

Re: Install Fonts with installer

Thank you for your reply. Yes, that will probably help. But such manipulation may be difficult for the end user. However, the main theme of the message was the inconsistency of options in simple and professional mode. By the way, if you set the installation to the Program Files folder in the settings, the installer automatically asks for an elevation of access rights. Why can't you do the same for font installation?
Indeed, it's solved right here
Снимок экрана 2023-08-17 152522.png
Снимок экрана 2023-08-17 152522.png (2.22 KiB) Viewed 3934 times
Then administrator rights are requested during the installation process and the fonts are installed correctly. I think you should add automatic selection of this option when the developer selects the font registration option.
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Install Fonts with installer

Hello,

Thank you for providing these details. We will certainly keep this in mind for possible future improvements.

Also, please note that fonts can also be installed for non-admin users. Microsoft supports installing fonts without privileges. As of Windows 10 version 1803 (released in April 2018), non-admin font installation was added.
For more details, please check the
Font installation for non-admin user
article.

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Orion33
Posts: 11
Joined: Tue Aug 15, 2023 2:54 pm

Re: Install Fonts with installer

Is it possible to run scripts on a simple plan?
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Install Fonts with installer

Hello,

I'm afraid that the Custom Actions support is available only for "Professional" projects or higher.

Let us know if there is anything else we can help you with.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”