best way to keep modified dictionary across AI upgrades? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

best way to keep modified dictionary across AI upgrades?

G'day,

For my project, I need to edit the "ui_en.ail" dictionary and change some messages. The messages I need to change are not exposed anywhere in the AI GUI, so I must edit them directly in the dictionary.

When I upgrade to a newer version of AI, one of the dialogs asks "Setup Wizard can search for older versions of Advanced Installer and remove them. Would you like to remove those versions?". I typically choose "Yes, remove older versions" because I prefer to have only the most current version installed. When the old version is uninstalled, the old "ui_en.ail" file is removed and my customized messages are then lost.

I'm wondering if anyone else has experienced the same issue and could recommend a clean, flexible way to preserve my customized ail file across AI upgrades.

One solution would be to submit my customized "ui_en.ail" file into our source-control system. Before building the project, the build script would need to swap-out the default dictionary with my customized version. After the AI project has finished building, the build script could then swap-back the original dictionary.
However, the limitation of that approach is that I do not always build the AI project via our build script. For testing purposes, I sometimes build the project directly from the AI GUI. In that situation, I cannot be sure that my project will use my customized dictionary and not the default dictionary (for example, maybe I recently upgraded AI and forgot to manually swap-out the "ui_en.ail" file).

Any suggestions or tips would be greatly appreciated.

thanks,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: best way to keep modified dictionary across AI upgrades?

Hi Todd,

We do not really encourage modifying the original dictionary (ui_en.ail in your case). What you might want to do is copy-paste the dictionary then add it from the Dictionaries tab, Translations page. Set your copy to a higher priority than the original ui_en.ail, so that it overrides it. Do your modifications in the copy. You should save your copy someplace else on the disc so it is not overwritten when Advanced Installer is upgraded.

Do not forget to restart Advanced Installer when making changes the dictionary so that they reflect when building the project. We will make improvements not to require the restart in the future, but for now this needs to be done.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: best way to keep modified dictionary across AI upgrades?

Thanks for your suggestions, Gabriel. That is exactly what I was looking for!

I read the dictionaries documentation, but the part about custom dictionaries is a bit sparse. I did not realize that I could just copy the English dictionary, rename the copy, edit the copy, and then simply add it to the project.

In my copied dictionary (ui_en_ProductName.ail) I removed all of the strings except for those strings which I customized. This results in a much smaller dictionary, and makes it easy to see the differences between my customized version and the original version. I tested this (after closing AI, restarting, and rebuilding my project) and it seems to work fine. My custom dictionary is listed as the highest priority, so the customized strings in my version trump the equivalent strings in the original version.

Is it safe to trim my custom dictionary in this manner, so that it contains only those strings which I needed to edit? Or should my custom dictionary contain *all* of the strings from the original dictionary?

Thanks for your help,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: best way to keep modified dictionary across AI upgrades?

Hi Todd,

It's completely safe. Since the strings aren't in your custom dictionary, they will default to the ones in the original .ail.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: best way to keep modified dictionary across AI upgrades?

Thank you for confirming, Gabriel.

Return to “Common Problems”