Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to create a "Language Dialog" in setup projects ?
 

How to create a "Language Dialog" in setup projects ?

Hello !

My Windows Forms application has a "Setup Project".
I can change some dialog in this Setup Project using the "Right Click" on it -> "View" -> "User Interface".

How can I create a Dialog to choose the installation language?

Does"Setup Project" support Localization ?

Thanks for all answers,
Andre Abrantes.

Andre Abrantes  Monday, August 03, 2009 9:39 AM
Hi Andre,

> How can I create a Dialog to choose the installation language?

This installation dialog box is not provided by Visual Studio. You need to create such a dialog box by yourself. Unfortunately, VS IDE doesn't support creating custom installation dialog boxes. A way is to use Orca to editing an existing dialog box to create a new dialog box that meets your requirement. Read the following article on more information:

"Create custom dialogs for use in your Visual Studio Setup projects"
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx

Generally, there're two ways to localize an installer package. One way is to create a localized installer package for each language you want. VS supports this by the Localization property of the Setup project. Read the following MSDN document for more information:

"Deployment and Localization"
http://msdn.microsoft.com/en-us/library/kcx25hzz(VS.80).aspx

The other way is to create a transform for each language which contains localized UI texts for the corresponding language and then embed these transform files into the MSI package. Thus when the MSI package is installed on a target machine, the corresponding transform will be applied to the MSI package automatically, according to the regional setting on the target machine, so that the proper UI text will be displayed in the installation dialog boxes during installation.

The latter wayis more flexible than the former, but it requires more efforts. I suggest you adopt the former way to localize your installer package for convenience.

As for your thought, e.g. show a dialog for the user to select a language and then display corresponding UI texts in the dialog boxes during installation, it's difficult to implement because we can't apply a tranform after an installation has started.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Linda Liu  Tuesday, August 04, 2009 4:53 AM
Not in the same setup, no. The project's Properties window has a pull down choice for each language, so youbuild a localised MSI file for each language.
Phil Wilson
PhilWilson  Monday, August 03, 2009 8:08 PM
Not in the same setup, no. The project's Properties window has a pull down choice for each language, so youbuild a localised MSI file for each language.
Phil Wilson
PhilWilson  Monday, August 03, 2009 8:08 PM
Hi Andre,

> How can I create a Dialog to choose the installation language?

This installation dialog box is not provided by Visual Studio. You need to create such a dialog box by yourself. Unfortunately, VS IDE doesn't support creating custom installation dialog boxes. A way is to use Orca to editing an existing dialog box to create a new dialog box that meets your requirement. Read the following article on more information:

"Create custom dialogs for use in your Visual Studio Setup projects"
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx

Generally, there're two ways to localize an installer package. One way is to create a localized installer package for each language you want. VS supports this by the Localization property of the Setup project. Read the following MSDN document for more information:

"Deployment and Localization"
http://msdn.microsoft.com/en-us/library/kcx25hzz(VS.80).aspx

The other way is to create a transform for each language which contains localized UI texts for the corresponding language and then embed these transform files into the MSI package. Thus when the MSI package is installed on a target machine, the corresponding transform will be applied to the MSI package automatically, according to the regional setting on the target machine, so that the proper UI text will be displayed in the installation dialog boxes during installation.

The latter wayis more flexible than the former, but it requires more efforts. I suggest you adopt the former way to localize your installer package for convenience.

As for your thought, e.g. show a dialog for the user to select a language and then display corresponding UI texts in the dialog boxes during installation, it's difficult to implement because we can't apply a tranform after an installation has started.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Linda Liu  Tuesday, August 04, 2009 4:53 AM

You can use google to search for other answers

Custom Search

More Threads

• Localizaion problem of embedded Windows User Control in IE
• Deployment and patching solutions
• VS2008 Setup & Deployment (WinCE application)
• Publishing to multiple types
• Installation process restarts after installation is complete
• User Interface Textboxes blank after all user install
• Alternatives to ClickOnce
• "Unknown Publisher"
• clickonce 2008 shortcut icon on desktop
• Normal installation - update using clickonce?