Show language based readme file on exit - 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!

selisoft
Posts: 7
Joined: Sat May 26, 2012 12:55 pm

Show language based readme file on exit

Hello,
how can I show different readme files based on installer language on exit?
(like LicenseAgreement-Dialog with localized license file)

It would help, if readme file text field could set to something like this:
[ProgramFilesFolder][Manufacturer]\[ProductName]\[ProductLanguage]\Readme.txt

I could also set a property with the path of the localized readme file and use this property.

Also: How can I create different Shortcuts (with different targets and names) based on the ProductLanguage?
> It would help, if I could move the shortcut feature to a separate component and add a condition to this component.
At this time the target file and the shortcut resides in the same component.

Thank you,
Josef
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Show language based readme file on exit

Hello Josef,
how can I show different readme files based on installer language on exit?
(like LicenseAgreement-Dialog with localized license file)

Here's a thread that debates how to "Localize Readme file on ExitDialog". Additional to the solution presented in this thread you should perform one more step:
- Go to "Custom Actions" page and add a "Set installer property" custom action with sequence under "Wizard Dialogs Stage -> MigrateFeatureStates" standard action like this:
  • Property: AI_README_FILE
    Formatted: [ReadmeFolder]ReadmeFilename
Please keep in mind that in the "Formatted" field you should add the folder containing the readme file and, then manually add the readme filename.
Here's attached a sample which implements your scenario.
sample.zip
(3.9 KiB) Downloaded 416 times
How can I create different Shortcuts (with different targets and names) based on the ProductLanguage?

In order to achieve this you can condition the related shortcuts installation. Go to "Organization" page and select the shortcuts components. In the "Condition" field from "Component Properties" right pane use our "Test if the language of the installation matches the one you specify" predefined condition from the "Edit Condition" dialog in order to condition your shortcuts components installation. Here's a thread that debates how to "Create shortcuts if conditions".

If you have any question let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
selisoft
Posts: 7
Joined: Sat May 26, 2012 12:55 pm

Re: Show language based readme file on exit

Hello Daniel,

thank you for your quick answer.

AI_README_FILE was the missing link.
How can I find such values by my own?

One more question:
I use "Control.Text.ExitDialog#ViewReadmeText" in my .ail file to customize the Checkbox label.
This works fine when german setup is selected.
In english setup (default), the custom text is ignored.
Removing 'ignore="en"' seems to make no difference.


I have two helpfiles (german and english), both are listed as separate component and both should be always installed.
However the shortcut to one helpfile should be created based on the selected language.
The shortcut is part of the component, so if I add a language condition, the helpfile would be not installed.
Is there a way to create extra components only for the shortcuts?

Bye, Josef
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Show language based readme file on exit

Hello Josef,
How can I find such values by my own?
This is an Advanced Installer property used for internal purposes.
One more question:
I use "Control.Text.ExitDialog#ViewReadmeText" in my .ail file to customize the Checkbox label.
This works fine when german setup is selected.
In english setup (default), the custom text is ignored.
Removing 'ignore="en"' seems to make no difference.

Please keep in mind that when you create a dictionary for untranslated project string, only localized string values of the translated language (in your case german) are imported from the .ail dictionary. The string values used for the default language (i.e. english) are those from project UI. So, you should set these values from project UI for your default language.

Also, when you are creating a dictionary for untranslated project string from english (starting language) to german (translated language), then english strings values will be included in the .ail dictionary only as a referral for the translators, to ease their job. They will not be imported in the project.
I have two helpfiles (german and english), both are listed as separate component and both should be always installed.
However the shortcut to one helpfile should be created based on the selected language.
The shortcut is part of the component, so if I add a language condition, the helpfile would be not installed.
Is there a way to create extra components only for the shortcuts?

A shortcut to an installed file will be added to the component of its target and this shortcut cannot be moved to another component. So, in order to achieve your scenario you should create the shortcut you want to be installed based on condition as a "Shortcut to an external file". This type of shortcuts can be moved to any component. Then you can create a component containing a dummy resource (i.e. a registry or a file) and, then add your shortcut to this dummy component.

In order to obtain what you want you can proceed like this:
- Go to "Registry" page and create a dummy key (i.e. My_Dummy_Key) using [New Key] toolbar button. Here create a dummy registry (i.e My_Dummy_Registry) using [New Value] toolbar button.
- Go to "Organization" page and drag the related shortcut on the My_Dummy_Registry component. Select My_Dummy_Registry component and in the "Condition" field from the "Component Properties" right pane use "Test if the language of the installation matches the one you specify" predefined condition from the "Edit Condition" dialog in order to condition the component installation.
- Build and run your package.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
selisoft
Posts: 7
Joined: Sat May 26, 2012 12:55 pm

Re: Show language based readme file on exit

Hello Daniel,

I purchased AI Enterprise and get the language things done with the dialog editor.

Thank you,
Josef

Return to “Common Problems”