1

Problem occurs only on Windows Installer. How to fix that?

windows installer ugly font

Community
  • 1
  • 1
Doctor Coder
  • 932
  • 1
  • 8
  • 15
  • I've never seen this. Is it just this one MSI and/or on just this one machine? Did you log the installer? Does it show any warnings or errors? – Christopher Painter Sep 22 '17 at 22:19
  • I see that on several installers of different software (not all or not always). Only on my machine. No, haven't log yet. – Doctor Coder Sep 23 '17 at 03:40
  • That would seem to indicate something strange about your machine. I couldn't possibly tell you what that is without clues from logs or playing with the OS. – Christopher Painter Sep 24 '17 at 21:29
  • Hey, do you still have access to this MSI? Can you please check if it has been compiled with **UTF-8** set as codepage? This can apparently cause some weird font display in certain cases. If you have Orca installed, open the MSI in question and go to `Tools => Code Page...` Does it say **65001**? That would be [**UTF-8**](https://en.wikipedia.org/wiki/UTF-8). Normal is [**1252 - Latin**](https://en.wikipedia.org/wiki/Windows-1252) (or a similar character encoding - for example [1251 - Cyrillic](https://en.wikipedia.org/wiki/Windows-1251)). Or put the MSI on a share somewhere so we can check? – Stein Åsmul Feb 28 '18 at 10:00
  • I don think i have that msi anymore. – Doctor Coder Feb 28 '18 at 16:45
  • Never got an alert for your answer. If you have the product installed you can find a cached copy in the `%SystemRoot%\Installer` folder - but it is probably not worthwhile to spend any more time on it. The problem is very likely the UTF-8 issue. – Stein Åsmul Mar 07 '18 at 19:53
  • Problem isn't solved yet. I'll check that folder. – Doctor Coder Mar 08 '18 at 05:05
  • Added another possibility. I was sure this would be the right one, but I am no longer sure - please see separate answer added below. It is just for reference and future debugging - to give people new ideas essentially. – Stein Åsmul Jan 13 '19 at 11:34

2 Answers2

1

New discovery, please see wikipedia: https://en.wikipedia.org/wiki/AppLocale

"AppLoc.tmp in the AppPatch folder (%windir%\apppatch) causes a Mojibake issue of Windows Installer...Mojibake is the garbled text that is the result of text being decoded using an unintended character encoding... The result is a systematic replacement of symbols with completely unrelated ones, often from a different writing system."

Though it appears the above dialog shows the correct text, just with very garbled display (not garbled characters of different code pages), I want to add this issue here in case someone finds it whilst looking for answers when facing garbled MSI dialogs.

Stein Åsmul
  • 34,628
  • 23
  • 78
  • 140
0

It can't be a graphics card issue since the captions are fine. You are not running this MSI in a virtual machine are you? Or worse yet, in Wine (Linux)?

At a technical level the TextStyle Table in an MSI (if present) controls fonts used in the MSI dialogs. I am assuming that a particular font on your system is either corrupted or not working properly in whatever emulated environment you may be running in. This explains why it only happens with some MSI files and not all of them (each MSI may use a different font).

enter image description here

And just for the record: I doubt a log will tell you much, but try with msiexec.exe /I "Setup.msi" /L*V! "C:\Temp\msilog.log". Obviously substitute paths as appropriate. This will create a verbose log file and flush to log (slow, but will log everything - no log buffer lost). I suppose you could search for anything related to fonts, textstyle or typeface.

The real solution is obviously to work out what is wrong with your font, but before that we need to know if you are in an emulated environment or not. Apparently fonts dropped into the Fonts folder in Windows Explorer are automatically registered on the system, but you can also use VBScript : http://windowsitpro.com/scripting/trick-installing-fonts-vbscript-or-powershell-script. So I suppose the conclusion is that you can grab the problem font from any machine around you, preferably one that is the same OS, and then drag-and-drop the font to your Fonts folder and see if this resolves the problem. Obviously identify the exact problem font using the TextStyle table listed above. And backup the font that was already there (if any).

In order to view the TextStyle table you need a tool to open MSI files. The free one is Orca.exe from the Windows SDK. If the Windows SDK is already installed on your PC, search for "Orca-x86_en-us.msi" and install it. Then find Orca in the start menu.

If you don't have the Windows SDK installed and don't want to install it all (it is huge), then there are a bunch of alternative tools: What installation product to use? InstallShield, WiX, Wise, Advanced Installer, etc. Most of these are large, commercial tools. Your quickest bet would probably be Super Orca (I have not used it much, but it should be OK for such a simple task).

Here is a list of tools that is perhaps clearer (better overview): http://www.installsite.org/pages/en/msi/authoring.htm

UPDATE:

  • Did you identify the corrupted font, install it and then reboot and test again?
  • Rebooting should rebuild the font cache as far as I know, but there is a description here on how to delete the cache yourself. It is for Windows 8 though, should be the same in Win10: http://www.trishtech.com/2013/11/rebuild-fonts-cache-windows-8/
Stein Åsmul
  • 34,628
  • 23
  • 78
  • 140