How do you rename existing text styles? - Advanced Installer Community
Kieutrang
Posts: 4
Joined: Mon Aug 26, 2019 9:20 am

How do you rename existing text styles?

I am using Advanced Installer version 14.2 and would like to rename the predefined text styles DlgFont8, DlgFont8Bold etc. to something more meaningful for my projects. (I have a good reason for doing this.) The Edit Text Style dialogue does not allow the identifier to be renamed. Why not? Is there a way to do it?

Similarly, the pre-defined text styles with property names (CfTitleFont & DlgFontBold8) do not allow the property names to be renamed. Why not? Is there a way to do it?

I can't do it from the table editor either.

And I can't hack the AIP file because the predefined text styles do not appear in that file. This leads me to believe that the predefined text style names are hard-coded, which is a pretty stupid thing to do.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How do you rename existing text styles?

Hello and welcome to Advanced Installer forums,

The TextStyles are defined by us in a fragment that is read-only and which we deliver in "Program Files".

Indeed, as you have mentioned, you can not edit them from within the project.

As a workaround, you could create new text styles and name them as you wish.

However, if you insist on changing the names of the initial text styles (which I do not recommend), you can find the fragment in the following location:

"C:\Program Files (x86)\Caphyon\Advanced Installer 16.2\themes\<theme>\fragments\UI.aip"

and the component name is:

<COMPONENT cid="caphyon.advinst.msicomp.MsiTextStyleComponent">

By doing this, you will have to repeat the process after every Advanced Installer upgrade. Additionally, all of their references must be replaced (find and replace in every fragment).

Hope this helps.

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

Return to “Common Problems”