relativ paths for ReadmeRTFPath and LicenseAgreementRTFPath - Advanced Installer Community
BMarx
Posts: 5
Joined: Tue Jan 07, 2014 11:17 am

relativ paths for ReadmeRTFPath and LicenseAgreementRTFPath

Hi,

I'm working with AdvancedInstaller 11.1 professional.
I have a multi language project with different readme and Licence RTF documents for each Language. I have managed to solfe this with a FilesDictionary.ail file.
The paths in this file were created as absolute paths. This doesn't work for diffent locations or different versions which have different paths.
I can change the paths to relativ paths with an editor and it works but when I start AdvancedInstaller all relativ paths get changed back to absolute paths.

Here is my FilesDictionary.ail file:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="multilanguage" ignore="de">
  <ENTRY id="ReadmeRTFPath">
    <STRING lang="de" value="..\..\..\Languages\German\Release\ReadMe.rtf"/>
    <STRING lang="fr" value="..\..\..\Languages\French\Release\ReadMe.rtf"/>
    <STRING lang="en_GB" value="..\..\..\Languages\English\Release\ReadMe.rtf"/>
  </ENTRY>
  <ENTRY id="LicenseAgreementRTFPath">
    <STRING lang="de" value="..\..\..\Languages\German\Release\Licence.rtf"/>
    <STRING lang="fr" value="..\..\..\Languages\French\Release\Licence.rtf"/>
    <STRING lang="en_GB" value="..\..\..\Languages\English\Release\Licence.rtf"/>
  </ENTRY>
</DICTIONARY>
Also the relative path doesn't seem to be relativ to the dictionary file but relativ to the output files?

Everything else in Advanced Installer seems to work with relativ paths.

kind regards
B.Marx
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: relativ paths for ReadmeRTFPath and LicenseAgreementRTFP

Hi,

I am not sure what do you mean when you say the paths become absolute. Do you mean Advanced Installer is editing your dictionary file automatically and changing the source paths?

Also, the paths are relative to the project root path, as mentioned in the linked article.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BMarx
Posts: 5
Joined: Tue Jan 07, 2014 11:17 am

Re: relativ paths for ReadmeRTFPath and LicenseAgreementRTFP

Thats correct. After rebuilding my projekt all paths in the output get changed back to absolute paths.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: relativ paths for ReadmeRTFPath and LicenseAgreementRTFP

Can you send us at support at advancedinstaller dot com the project and dictionary files?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BMarx
Posts: 5
Joined: Tue Jan 07, 2014 11:17 am

Re: relativ paths for ReadmeRTFPath and LicenseAgreementRTFP

I'm sorry. I tried to reproduce the problem I had but now everything is fine.
Dictionaies show up with absolute paths in project but work with relativ paths in the dictionary file it self. See attached file.
I must have had some problems with subversion.
When I initialy created the dictionary all paths were absolute. I changed this to relativ and merged it into another branch of the project. So I probably made a mistake while merging.
Attachments
snapshot.png
snapshot.png (10.09 KiB) Viewed 3899 times

Return to “Common Problems”