I've build an Installer that uses custom Actions written in a C# project.
My need: I have some validation and error messages I want to sent to a Session Property called CA_RESPONSE_MESSAGE.
When This Property is filled (allong with an ERROR_CODE property) I show a custom error message.
These messages are actually stored in a .resx file in my custom action project.
The default language of my AIP is English, and I also have French and German in it.
I have .resx files in my c#-custon actions project for each of these languages, that contain the translations for these languages (again being fall-back English).
When I start my installer in English everything works perfect. As soon as I select an other language, all the Messages that come from the CustomAction dll are still in English.
I tried to set the Thread to the correct Language chosen in the installerwithout success..
I even tried loading the resources with the explicit option setting the cultureInfo class to the selected language...
Code: Select all
Strings.ResourceManager.GetString("MessageErrorPasswordMissing", Thread.CurrentThread.CurrentCulture);but it seems that advanced Installer, never included de FR /DE Sub folders That .Net generates, when you have localization on a project.
Can someone help me out, on how I can get to it. Or an alternate solution.... I was thinking of sending an LocalizationId to an Advanced Installer property and then read the translations stored in AI..
But I have no Idea if this is even possible.
Thank you for your help
FOLLOW US
Get the latest news in Application Packaging