Wrong language on maintenance when using .exe package - Advanced Installer Community
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Wrong language on maintenance when using .exe package

I am using a multi-language EXE package. I install in English. If I enter maintenance using Control Panel, the maintenance UI language is English, as expected. However, if I use the original EXE package to enter maintenance mode, I am getting the wrong language, Japanese (1041). The /exelog shows this:

2015-11-10 @09:50:49-Language selected programatically for UI:1041

I am on an English OS with all English settings. This happens on Windows 7 and Windows 8.

I have noticed that this problem is sporadic. Sometimes a full rebuild of the project fixes it; sometimes not. I have noticed in the registry after the initial install:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Caphyon\Advanced Installer\{94A666D6-490B-49B2-B77C-0CCB865C42CE}\InstallLanguage is 1033, as expected.

It does not matter what language I choose for the initial install -- maintenance always selects 1041.

Any ideas?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Wrong language on maintenance when using .exe package

Hello,

Most likely this is happening because you are using a different Product Code for each language.
So, can you please choose the same ProductCode for English and other languages and see if the behavior still persist? In order to achieve that, you can go in the Product IDs tab from the Product Details page.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Re: Wrong language on maintenance when using .exe package

Thanks. I'm already using the same Product Code for all languages.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Wrong language on maintenance when using .exe package

Hello,

I'm not sure why you encountered the this behavior.
In order to have a better view about this, can you please send us the .AIP (project file) and the full verbose log to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Also, can you please tell us what is the machine OS where you are running the package?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Re: Wrong language on maintenance when using .exe package

Ok, thanks. I will see if I can reproduce it with a test project, but I may not get to it for a bit.

The problem happens on every OS I've tried -- Windows 7, 8 32/64-bit. Again, I think something is happening during the build, because some builds are okay.
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Re: Wrong language on maintenance when using .exe package

Just wanted to note:

I frequently diff the project file before I commit changes to our source control system. By doing this, I have noticed that in the following element under <COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">:

<ROW Property="ProductCode" Value="1041:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 1033:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 1031:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 1042:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 3082:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 2052:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 1036:{94A666D6-490B-49B2-B77C-0CCB865C42CE} 1046:{94A666D6-490B-49B2-B77C-0CCB865C42CE} " Type="16"/>

the LCIDs seems to randomly get reordered when saving the project. In fact, if I just open the project, make no changes, and merely save it, the order of these LCIDs will change. And I've noticed that 1041 and 1033 get swapped, among others. Sometimes 1041 is listed first, sometimes 1033. And that is interesting since it is Japanese (1041) that I see when running maintenance from the setup.exe after installing in English (1033). It definitely seems like something is loose here. Hope that helps.
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Re: Wrong language on maintenance when using .exe package

I've done some more testing regarding this issue using 12.6.1. I'm hoping you can investigate it, as it causes some annoying problems.

You can easily reproduce the issue by creating an EXE project with the following properties:
  • English default language.
  • "Use Enhanced User Interface" set to "Always."
  • Add Japanese.
  • "Create only a multilingual package" option selected.
  • "Display language selection dialog" option selected.
  • Use same Product Code for both languages.
Note that when you close Advanced Installer, then re-open it and save the project (you don't need to make any changes), the "ProductCode" property value in the project file (as mentioned in post above) has the LCIDs swapped (1041 and 1033). This is related to the issue. On my machine, when 1041 is listed first, the odd behavior occurs. When 1033 is listed first, it does not. However, on our build server, the behavior is the opposite -- when 1033 is listed first, the odd behavior occurs. This is what makes this issue particularly frustrating -- I have to make sure this property value is in the right state for our build server before checking in the file. Every time the tool is closed and reopened, the swap happens on first save.

When in the bad state, if you do the initial install in English, and then launch maintenance mode from the EXE file, the language will be Japanese. I've tested this behavior with several other languages -- I've only found two that cause this problem, Japanese and Indonesian. The other languages I tested (about 7 or 8) do not cause this odd swapping behavior in the project file and the issue does not occur. This is a very strange bug.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Wrong language on maintenance when using .exe package

Hello Steve,

I apologize for this delayed reply.

Indeed, this is an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention. We'll notify you when the fix will be available.

Until then, I'm afraid I'm not aware of any workaround you can use, other than using the "Create separate packages" option from "Translations page -> Languages tab".

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Wrong language on maintenance when using .exe package

Hello,

This was fixed in version 13.0 of Advanced Installer released on June 2nd, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”