Multiple languages EULA and Multiple Instances - 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!

GBERT
Posts: 12
Joined: Fri Jul 10, 2009 10:41 am

Multiple languages EULA and Multiple Instances

I tried following the guide "How to localize the EULA and Readme text?" and found that multilanguage is incompatible with multiple instances.
I was thinking about checking the default language and changing the property value "Fine name" in the LicenseAgreementDlg dialog or using a property for it.
At the moment i don't need really to translate all the setup, but only to change the EULA document...
Any suggestion?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Multiple languages EULA and Multiple Instances

Hello,

Unfortunately this is not supported by Windows Installer. The licenseAgreementDlg Dialog does not use a file internally. The contents of the file are copied directly into the .msi database, which is why a property would be irrelevant.

The only way you could change this field would be to dynamically edit the msi database. You can achieve this using the MSI API Microsoft makes available.

More to the point, you would use the API to edit the row with "LicenseAgreementDlgFileScrollableText_1" in the Component column. This row is found in the Control table. You need to edit the "Text" field of this row.
This should be done before the LicenseAgreementDlg is displayed, which means your custom action needs to be placed as a Published Event on (for example) the "Next" button of WelcomeDlg

I am afraid there is no other alternative.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GBERT
Posts: 12
Joined: Fri Jul 10, 2009 10:41 am

Re: Multiple languages EULA and Multiple Instances

GabrielBarbu wrote: More to the point, you would use the API to edit the row with "LicenseAgreementDlgFileScrollableText_1" in the Component column. This row is found in the Control table. You need to edit the "Text" field of this row.
This should be done before the LicenseAgreementDlg is displayed, which means your custom action needs to be placed as a Published Event on (for example) the "Next" button of WelcomeDlg
I am afraid there is no other alternative.
Using Orca i have opened the generated msi database and located table Control, row with Dialog=LicenseAgreementDlg, Control=AgreementText, Text column, and it contains my EULA padded with a final x00.
Changed it, but no results, an empty EULA is displayed.
Couldn't locate the row-column you refer to.
Did i change the correct one?
Other fields to set properly?
Thanks
Giorgio

P.S. Any vbscript example changing a cell?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Multiple languages EULA and Multiple Instances

Hello,
Using Orca i have opened the generated msi database and located table Control, row with Dialog=LicenseAgreementDlg, Control=AgreementText, Text column, and it contains my EULA padded with a final x00.
This has to contain the rtf formatted text for your EULA, without any x00 padding.
Changed it, but no results, an empty EULA is displayed.
Please note that it has to be in rtf format. Just set your EULA from Advanced Installer, then watch the correct format using Orca. When editing this field, make sure you preserve the format.
Couldn't locate the row-column you refer to.
Oops, sorry about that. I meant edit the row with "AgreementText" in the Control column.
Did i change the correct one?
Yes, I believe you set the correct one.

Note that the field should looks something like this:

Code: Select all

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\f0\fs20 Your license agreement goes here\par
}
You should edit this in an rtf editor to make sure the format is correct.
Other fields to set properly?
There is no need to modify anything else.

Note that editing it with Orca does not help in any way, since you want this field to dynamically change depending on the user machine's locale. Creating a custom action in C++ using the API i mentioned should achieve this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GBERT
Posts: 12
Joined: Fri Jul 10, 2009 10:41 am

Re: Multiple languages EULA and Multiple Instances

GabrielBarbu wrote: Note that editing it with Orca does not help in any way, since you want this field to dynamically change depending on the user machine's locale. Creating a custom action in C++ using the API i mentioned should achieve this.
I know, but usually i test manually the changes before scripting them.
Thanks a lot.
Giorgio

Return to “Common Problems”