Hi Hardy,
I suggest you use Transforms to create a multiple language installer package. A transform is a collection of changes applied to an installation. By applying a transform to a base installation package, the installer can add or replace data in the installation database. The installer can only apply transforms during an installation.
The following are the steps to create a multiple language installer package.
1. Create a Setup project named SetupTest in VS05 and add the primary output from a WinForms application. Build the Setup project. The resulted installer package is named setuptest.msi.
2. Create a localized version of the installer package, e.g. Chinese.See the http://msdn.microsoft.com/en-us/library/kcx25hzz(VS.80).aspxfor how to do it. Rename the resulted installer package setuptestChinese.msi.
3. Use the following script to generate the specific language transform, in this case, a Chinese language transform.
option explicit
dim wi, basedb, newdb
' NOTE: It is very important to use this validation flag to ensure the transform can be applied to the original msi package later without any error
const msiTransformValidationNone = 1
const msiTransformErrorNone = 0
set wi = CreateObject("WindowsInstaller.Installer")
set basedb = wi.opendatabase("SetupTest.msi", 0)
set newdb = wi.opendatabase ("SetupTestChange.msi", 0)
newdb.GenerateTransform basedb, "2052.mst"
newdb.CreateTransformSummaryInfo basedb, "2052.mst", msiTransformErrorNone, msiTransformValidationNone
set wi=Nothing
Save this script as a .vbs file in the setup project's Debug folder and run it to create a 2052.mst. 2052 is the language id of Chinese. See http://msdn.microsoft.com/en-us/library/aa369771(VS.85).aspxfor more language ids and page code.
4. Embed the 2052.mst into the SetupTest.msi file using WiSubStg.vbs. Note: WiSubStg.vbs is a sample script in Windows Platform SDK and you can find it at C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\Msi\Scripts.
The command line is like below:
Cscript WiSubStg.vbs SetupTest.msi 2052.mst 2052
5. Add 2052 to the package language of the SetupTest.msi (the original package language of SetupTest.msi is 1033) using WiLangId.vbs. Note: WiLangId.vbs resides in the same folder where the WiSubStg.vbs is.
Cscript WiLangId.vbs SetupTest.msi package 1033, 2052
6. Open the 'Regional and Langage Options' in the Control Panel and set the Location to China and format to Chinese(PRC).
7. Double-click the SetupTest.msi to run it. The banner text shown in the welcome form is in Chinese. In addition, the prepare to install dialog shows characters in Chinese as well.
Hope this helps.
Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.