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!

ElyCyan
Posts: 18
Joined: Tue Jun 26, 2012 12:49 am

Relative Folder Path Value in Custom Dictionary

It appears that the LicenseAgreementDlg stores the path to the RTF file in the dictionary in "Control.Text.LicenseAgreementDlg#AgreementText_2", meaning that if I used the same dictionary in two different projects, they'd point to the same file.
When I edit the custom dictionary to something like this:
<STRING id="Control.Text.LicenseAgreementDlg#AgreementText_2" value="InstallerSupportFiles\eula.rtf"/>
I get errors like this:
Creating MSI database... error.
Failed to read RTF file "C:\PATH\TO\INSTALLER\AdvancedInstaller\EUNE_Installer\InstallerSupportFiles\InstallerSupportFiles\eula.rtf". Make sure you localized correctly the path for "Control.Text.LicenseAgreementDlg#AgreementText_2".

Build finished because an error was encountered.
I don't understand why "InstallerSupportFiles" is being put in twice. Any ideas?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Relative Folder Path Value in Custom Dictionary

Hi,

I'm afraid I don't fully understand what is your scenario. Can you give us more details about your scenario (maybe exemplify)?

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: Relative Folder Path Value in Custom Dictionary

Sure. So I have several installer projects for various global regions, some of which share languages between them. Our localization team has completely re-translated the standard dictionaries. As such, I have dictionaries with the "Control.Text.LicenseAgreementDlg#AgreementText_2" string for our installer projects. Each project has a similar folder called "InstallerSupportFiles" on the same level as the .aip file where we have localized EULA files.

So that I can share these custom dictionaries between installer projects, I'd like to use a relative path in the "Control.Text.LicenseAgreementDlg#AgreementText_2" string instead of a full path. It doesn't seem to work, and throws those strange errors.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Relative Folder Path Value in Custom Dictionary

Hi,

Unfortunately, Advanced Installer does not support relative paths for EULA files, but I added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

However, you can use relative paths for the EULA files that are located in the same directory as the .AIP (project file):

Code: Select all

 <STRING id="Control.Text.LicenseAgreementDlg#AgreementText_2" value="eula.rtf"/>
Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”