Inno Setup: how to change language file depending on code

I am using my own languages ​​(.isl) instead of using the default Inno Setup language files. This allows me to customize some messages. But now I would like to have two versions of each language file, one for the first install and one for the upgrade, but is it possible to select the file from the code? If so, how to do it?

Perhaps there is a better way to change the messages than to change the language files depending on the installation type, if so, I would like to know what to do.

thank

+3


source to share


1 answer


Add alternative texts to the section [Custom Messages]

:
http://www.jrsoftware.org/ishelp/index.php?topic=custommessagessection



Then, in a Pascal script on upgrade, update the corresponding GUI element with the alternative translation downloaded from CustomMessage('MyAlternativeUpgradeString')


http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_custommessage

+3


source







All Articles