I'm using AI 7.7 build 28804
===== Project Config =====
- configured with multiple languages (currently English and German)
- configured to build one installer per language
===== Problem =====
I'm struggling with a msgbox localization issue. During the uninstall, I prompt the user with a Yes/No msgbox which asks whether user data and settings generated by my app should be deleted. I would like the msgbox buttons to be localized according to the installer language, *not* according to the OS locale. For example, if my installer language is German but running on an OS with English locale, the msgbox buttons should be in German - Ja/Nein.
===== Uninstall Cleanup =====
Originally, my project relied on the Uninstall Cleanup functionality to create the msgbox. After inspecting my .aip project, it seems this functionality is contained in ResourceCleaner.dll
The Yes/No msgbox created by the Uninstall Cleanup behaves correctly - the button text is localized according to the installer's language, regardless of the OS locale.
===== Predefined Custom Action =====
For several reasons, I switched to a predefined custom action to create the msgbox, and abandoned the "Uninstall Cleanup" approach. As part of the uninstall sequence, I added a predefined custom action:
- source path = <AI_CUSTACTS>aicustact.dll
- source type = dll
- function name = MsgBox
- action data = (my message to the user)
===== Summary =====
It seems that msgbox localization is different between ResourceCleaner.dll and aicustact.dll; ResourceCleaner.dll uses the installer's language (which is correct, in my opinion) while aicustact.dll uses the OS locale.
Is there a specific reason for this difference? I would like the "MsgBox" predefined custom action to use the installer's language to localize the Yes/No button labels; is this possible?
Thanks,
Todd