Updater issues with accented letters in AppDir path - Advanced Installer Community
tkarpati
Posts: 1
Joined: Mon Dec 07, 2020 12:46 pm

Updater issues with accented letters in AppDir path

Hi,

We've ran into an issue with the Updater in case the user installs our product into a folder that has accented letters in its path, for example C:\Users\Árvíztűrő Jenő\AppData\Local\Programs. The AppDir property which supposed to hold and absolute path to the product's application directory is invalid due to the wrong encoding of the INI. If the path is invalid, Updater always returns 0 which means "updates found" even if the application is on the latest version.

The issue has 2 parts:
  • The MSI installer which creates the updater.ini file uses ANSI encoding which doesn't support these characters (ű, ő etc.)
  • The Updater can't detect updates if the INI file has UCS-2 LE BOM encoding (other encodings, like UTF-8 result in INVALID_CLIENT_CONFIG)
Since we can't update from AI v12.4.2 due to multiple reasons, we've tried to workaround the issue by converting the INI into UCS-2 LE BOM encoding automatically when we detect if AppDir is different than the actual path to the product. This seems to be working fine and the path is valid, but even if there is an update, Updater returns with 0xE0000011 (no updates found).

Can you suggest a solution to this (if any)?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Updater issues with accented letters in AppDir path

Hello and welcome to our forums,
we've tried to workaround the issue by converting the INI into UCS-2 LE BOM encoding automatically when we detect if AppDir is different than the actual path to the product. This seems to be working fine and the path is valid, but even if there is an update, Updater returns with 0xE0000011 (no updates found).
Do you manually convert the INI file to the UCS-2 LE BOM encoding (e.g. using Notepad++)?

If that is the case, please note that you can do that from your Advanced Installer project. Open the project that is used to build the INI file --> "Build" page --> "Encoding" section --> "UCS-2 encoding (support Unicode characters to be displayed)"

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”