Project Language and Using Templates - Advanced Installer Community
ElyCyan
Posts: 18
Joined: Tue Jun 26, 2012 12:49 am

Project Language and Using Templates

I'm creating installers for all of our company's supported regions, some of which don't include English. Since these regions have different source files, I'm creating several Advanced Install projects; the installer logic, on the other hand, is mostly the same.

I've completed my North American installer, which only has English, but now I'm looking to use another region that doesn't have English whatsoever. How can I reuse the logic I've made in the North American installer for these new regions, but not be locked into the "project language" of English?
ElyCyan
Posts: 18
Joined: Tue Jun 26, 2012 12:49 am

Re: Project Language and Using Templates

I've tried saving my North American project as a template. When making a new project based on that template and expanding the options button to change the project language, the dropdown menu for languages is unusable.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Project Language and Using Templates

Hi,
I've tried saving my North American project as a template. When making a new project based on that template and expanding the options button to change the project language, the dropdown menu for languages is unusable
Unfortunately, this is a limitation in our translation framework and it cannot be changed.

As a workaround, you can go in the Translations page, select all the languages you need and check the "Create separate packages" options. Then, go in the Files and Folders page and add the resources for all your languages. Finally, in the Organization page, you can organize your files into different components (or features) and set a condition for them to be installed by their corresponding language (i.e. ProductLanguage = 1033 for English).

If you have files with the same name for different languages in the Files and Folders page, you can use the method described in the How do I install two files with the same name in the same folder? tutorial.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ElyCyan
Posts: 18
Joined: Tue Jun 26, 2012 12:49 am

Re: Project Language and Using Templates

That will do for now, but we'll be in trouble if a new multi-language region arises that needs to not include English. This would be an amazing feature to be added.

I read that tutorial, and it works fairly fine. I have two questions. Assume I have 2 languages I want to substitute on. Using that tutorial, I have a folder for each language. This makes a component with which I can set a condition based on ProductLanguage like explained.
  • Can I have a default file in the parent folder which these conditional files will overwrite if the condition is true? My quick testing today seemed to indicate that it wouldn't overwrite, even if I had selected "Always overwrite existing files" in the operations tab.
  • Can I use a text-update action instead of using a whole file? (I'd like to use: http://www.advancedinstaller.com/user-g ... nodes.html) I'd rather use this so I don't have to keep a ton of versions of the same file, but I rather avoid using custom actions as described in viewtopic.php?f=5&t=25016.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Project Language and Using Templates

Hi,
but we'll be in trouble if a new multi-language region arises that needs to not include English.
I'm afraid I don't fully understand what you mean here. Can you please explain a little more in details?
Can I have a default file in the parent folder which these conditional files will overwrite if the condition is true? My quick testing today seemed to indicate that it wouldn't overwrite, even if I had selected "Always overwrite existing files" in the operations tab.
In order to achieve this, you can go in the Table Editor page, select the "File" table and modify the "Sequence" column related to your files, so that the file located in the parent folder will be installed before the conditional files. The "Always overwrite existing files" option is useless in this case.
Can I use a text-update action instead of using a whole file? (I'd like to use: http://www.advancedinstaller.com/user-g ... nodes.html) I'd rather use this so I don't have to keep a ton of versions of the same file, but I rather avoid using custom actions as described in viewtopic.php?f=5&t=25016.
You can use a "Text File Update" operation, but you also need to use custom actions as described in the Text file update based on property condition thread. So, I'm not sure if this would be the best solution for you.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ElyCyan
Posts: 18
Joined: Tue Jun 26, 2012 12:49 am

Re: Project Language and Using Templates

Hi,
but we'll be in trouble if a new multi-language region arises that needs to not include English.
I'm afraid I don't fully understand what you mean here. Can you please explain a little more in details?
We usually distribute our installers as multilanguage packages. If we want to make an installer for a region that has several languages not including English, there does not seem to be a way to accomplish that since I can not remove English from my installer project without remaking it from scratch.

And I believe I got the text-replace working. I'm using multiple subfolders that install their contents to the parent directory, exactly how that tutorial says; instead of using a file, I use a text-replace action inside the subfolder which is tied to the component that the sub-folder has created. This has worked so far. Can you think of any downsides to this approach?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Project Language and Using Templates

Hi,
Can you think of any downsides to this approach?
No, this approach should work without problems. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”