Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to change Localization in VS2008 Setup Project dynamically?
 

How to change Localization in VS2008 Setup Project dynamically?

I would like to know how to change localization in VS2008 setup project dynamically. Scenario is like if operating system's langauge is french and user clicks on setup.exe, all screens should come in french and same for English langauge.

I have created Setup project by keeping Localization property to English. It shows me all screens in English. Now If I changed Localization property to French, it shows me all screens in French. But I want it dynamically and it should consider machine langauge and display accordigly.

Praful Udade  Thursday, November 13, 2008 7:21 AM

Windows Installer doesn't support more than one language in a .MSI file.

The way we are working around this in Microsoft is to put the UI in an external "wrapper" (or chainer or bootstrapper), then pass the command line arguments and any user collected data to the MSI. You then localize your UI and write code that detects the OS locale and loads the appropriate resources.

David Guyer MSFT  Friday, November 14, 2008 5:50 AM

Windows Installer doesn't support more than one language in a .MSI file.

The way we are working around this in Microsoft is to put the UI in an external "wrapper" (or chainer or bootstrapper), then pass the command line arguments and any user collected data to the MSI. You then localize your UI and write code that detects the OS locale and loads the appropriate resources.

David Guyer MSFT  Friday, November 14, 2008 5:50 AM

David,

Can you please explain in details?.

What do you mean by - UI in an external "wrapper" (or chainer or bootstrapper)?

or can you send me some useful link ?

As per my knowledge, there is no options to create resources in Setup Project. Is it true or is there any options to use resources?

My project requirement is to use English and French localization dynamically. It should detect OS locale and should display appropriate screens during installation.

Can you suggest me some proper way in detail?

Praful Udade  Monday, November 17, 2008 8:54 AM

It's largely how I desribed it, you basically build your own and completely control the UI. Then, you can condition some files in your .MSI and pass public properties to the .MSI to control which localized files are installed.

I don't know of any public samples that do this, but it's basically writing your own application.

David Guyer MSFT  Monday, November 17, 2008 11:29 PM

You can use google to search for other answers

Custom Search

More Threads

• http compression when download assemblies from IIS
• update the application from internet
• Publishing : Cannot make this application an online version
• Deploying a MDF File
• how to create custom dialog and integrate into my setup
• Update to .NET 3.0
• Cannot install window service with Installer class
• InvalidDeploymentException "Not a valid number of matching trusts were given an application version."
• Installing 3rd party prerequisite with bootstrapper and multiple MSIs support using ClickOnce
• How to automate the ClickOnce deployment