Install a file depending on language

Common questions about using Actual Installer.
Post Reply
OZRay
Posts: 8
Joined: Mon Apr 26, 2021 4:40 am

Install a file depending on language

Post by OZRay »

Hi I have another question here.
Let say that I have my installation working in French and Anglish with auto-detect.
All my files for both languages are identical except one resource file that is for English and one for French.
Previously with my old buggy installer, I was creating two installation files one for each language because one containing the resource file in French the other one the English file. Can I install all the files and if the installer is in French install the resource file in French or in English in the other case?
One idea I have is to have both files like res_french.zip and res_french.zip in the installation, install both at the right location and when the installer ends, rename one to res.zip as expected by our software that doesn't know the language the user will use until that file is extracted. In such a case, I would try to create a System/Commands to rename the zip file but in that case, how do I know that the user installed the app in French or English?
Regards.
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Install a file depending on language

Post by Leo »

Look at the example at:
https://www.actualinstaller.com/help/commands.html

Code: Select all

If language is French then copy file "French.lng" from SetupTempDir to Installation Directory:
Parameters: 	/C IF /I <Language>==French (COPY /Y "<SetupTempDir>\French.lng" "<InstallDir>\French.lng")
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply