my installation has the following parameters:
media -> bootstrapper->"display language selection dialog"
translations -> i chose several languages here and "multilingual package"
dialogs -> second folder dialog
in my installation i want the user to choose another folder for user data, after selecting one for the program data. for that i included a second folder dialog in the installation-process.
in this dialog i want to change the following Properties to fit my needs: Title, Description, FolderLabel. For example i write "Installation of MyProgram" instead of the default value "New Dialog".
In order to support more than one language i put these values not to constant strings but to special Properties ("DataDialogA",...) in the "Install Parameters" that automatically (with a custom action in InstallUISequence->"Begin") change according to the language the user has chosen in the beginning of the installation process.
In the Install Parameters i have also put static Properties ("DataDialog_<language>_A", ...) for every supported language. They contain the right translation for the three dialog texts. The default properties for the dialog should be exchanged according to the chosen language.
here is a sample of my vbscript, that puts the dialog-properties:
Code: Select all
Dim language, oShell
Set oShell = CreateObject("WScript.Shell")
language = Session.Property("ProductLanguage")
if language = 1031 then 'Deutsch
Session.Property("DATADialogA")=Session.Property("DataDialog_De_A")
Session.Property("DATADialogB")=Session.Property("DataDialog_De_B")
Session.Property("DATADialogC")=Session.Property("DataDialog_De_C")
end if
if language = 1033 then 'Englisch
Session.Property("DATADialogA")=Session.Property("DataDialog_Eng_A")
Session.Property("DATADialogB")=Session.Property("DataDialog_Eng_B")
Session.Property("DATADialogC")=Session.Property("DataDialog_Eng_C")
end if
is the time InstallUISequence->"Begin" already too late for the custom action to change the dialog-properties?
could there be another reason why i am having these problems?
FOLLOW US
Get the latest news in Application Packaging