how to localize MainAppUrl / main MSI URL - 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

how to localize MainAppUrl / main MSI URL

G'day

I'm using AI 7.7 build 28804

My project is configured for a web-based / online install.

I recently switched from supporting a single language (English) to supporting multiple languages, and I'm struggling with how to localize the URL for the main MSI. As mentioned in some of my other posts concerning localization, I've read all of the AI localization documentation, created a custom dictionary, etc. I've done my homework.

I am building one installer per language, so the URL for the main MSI must include some kind of language code / id / tag.

As a simple test, I created a new property "L10N_TEST". The default value is "EnglishTest". I then localized the value of that property, choosing "Always translate this string" and "Using specified localization identifier". I closed my AIP project, added a new entry to my custom dictionary, saved the dictionary, and reopened my AIP project. I checked that my custom dictionary is listed first on the "Dictionaries" tab. My custom dictionary looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="multilanguage" ignore="en">
  <ENTRY id="Property.L10N_TEST">
    <STRING lang="en" value="EnglishTest"/>
    <STRING lang="de" value="GermanTest"/>
  </ENTRY>  
</DICTIONARY>
On the "Bootstrapper" page, I have selected "Retrieve from on-line location" for the MSI, and the URL value is:

Code: Select all

[|L10N_TEST]
When I then build my packages, the MainAppUrl is always set to the default value "EnglishTest" and is never localized. I have verified this in three different ways:
1) added logging to the MSI Command Line and checked the log
2) checked the value of MainAppURL directly inside the bootstrapper EXE (assuming "Include install files in EXE" option)
3) checked the value of MainAppURL inside the setup INI (assuming "Leave install files outside" option)

Just to be sure it wasn't a problem with project segments, I went to the Languages page and selected *all* project segments for translations. This added the following line to my AIP file:

Code: Select all

<ATTRIBUTE name="TranslateSegments" value="58405516501581819"/>
I saved my project, closed, reopened, rebuilt and retested but the problem persists.

What I want is to generate URLs like:

Code: Select all

http://MyDownloadServer/en/MyProduct.msi
http://MyDownloadServer/de/MyProduct.msi
http://MyDownloadServer/fr/MyProduct.msi
Is there a reason my localized property is not being localized when used in the MSI URL field?
Is there another way to achieve this? (Building a single multi-language package is not an option for me, unfortunately, as the file-size would be too large)

Thanks for any help you can provide,
Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: how to localize MainAppUrl / main MSI URL

Hi Todd,

This seems to be an issue with Advanced Installer, thank you for reporting it. We have now fixed it, however the fix will not be available in the next version of Advanced Installer, since that is scheduled soon, and QA has already approved it.

It will be available after this version though, which will closely follow the upcoming version of AI. So it's not a long wait.
Unfortunately, there is no workaround that I could provide you with.

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

Re: how to localize MainAppUrl / main MSI URL

Understood. Thanks for confirming so quickly, I do appreciate it.

-Todd

Return to “Common Problems”