Special character in product name breaks mtx filename
Posted: Tue Oct 19, 2021 10:57 am
I have an issue with special characters in product name.
As I understand the mtx language file needs to have the same file name as the product name. For example, if I have set the product name to "MyProduct", the file is named "MyProduct.mtx".
If I use, for example, a colon in the product name, say "My:Product", it is not possible to have a matching mtx-file, because of the colon, which can not be used in filenames.
My current solution for this problem (found in this forum) is as follows. I set product name to "MyProduct" and in the first line of MSI code I set the variable TITLE to "My:Product". It works fine in setup dialogs. But it is displayed not correct in the UAC dialog asking for admin rights and some other small startup dialogs preparing the setup. The text for product name displayed there is still "MyProduct" (without colon).
Running the localization wizard in InstallAware, also breaks with an error if product name contains a colon.
Is there a way to set product name with special characters or to achieve, in addition to my above solution, displaying product name with special characters in UAC and startup dialogs, too?
As I understand the mtx language file needs to have the same file name as the product name. For example, if I have set the product name to "MyProduct", the file is named "MyProduct.mtx".
If I use, for example, a colon in the product name, say "My:Product", it is not possible to have a matching mtx-file, because of the colon, which can not be used in filenames.
My current solution for this problem (found in this forum) is as follows. I set product name to "MyProduct" and in the first line of MSI code I set the variable TITLE to "My:Product". It works fine in setup dialogs. But it is displayed not correct in the UAC dialog asking for admin rights and some other small startup dialogs preparing the setup. The text for product name displayed there is still "MyProduct" (without colon).
Running the localization wizard in InstallAware, also breaks with an error if product name contains a colon.
Is there a way to set product name with special characters or to achieve, in addition to my above solution, displaying product name with special characters in UAC and startup dialogs, too?