次の方法で共有


.NET Framework 2.0 Japanese language pack is now available

The .NET Framework 2.0 Japanese language pack is now available for download.  This page has more information about the language pack (the text is in Japanese) and you can download the language pack setup package from this location.

I would also like to provide some helpful information about the setup package for the .NET Framework 2.0 Japanese language pack if you will be installing it as a part of your setup package:

Silent install command line parameters

The command line to silently install the .NET Framework 2.0 langauge packs is slightly different than it was in the .NET Framework 1.1. Here is the command line syntax you should use to silently install the 2.0 language packs:

langpack.exe /q:a /c:"install.exe /q"

Note that the same command line parameters that I documented for the .NET Framework 2.0 apply here, because the same setup wrapper is used for the language packs as for the core redistributable package.

This command line will be the same for all additional .NET Framework 2.0 language packs when they are released.

Detecting whether or not the language pack is installed

You should use the following registry key/value to determine whether or not the .NET Framework 2.0 Japanese language pack is installed:

  • Registry root: HKEY_LOCAL_MACHINE
  • Key name: Software\Microsoft\NET Framework Setup\NDP\v2.0.50727\1041
  • Value name: Install
  • Value data type: REG_DWORD
  • Value data: 1

You can also use the same set of return codes that I documented for the .NET Framework 2.0 to determine success or failure of language pack installation, because the same setup wrapper is used for the language packs as for the core redistributable package.

When the remaining .NET Framework 2.0 language packs are released, the detection method will be the same except the key name listed above will be the 4-digit language code corresponding to the language in question instead of 1041 (which is the language code for Japanese).

Should I install the Japanese language pack with my Japanese .NET Framework application?

The general answer to this is "yes." The .NET Framework 2.0 is separated into a core and multiple language packs, and the common-language runtime (CLR) is MUI-aware. That means that the CLR will use the OS language preferences to determine what strings to load when running managed applications. If the language pack for the preferred language is not installed on the system, the CLR will fall back to the English string resources installed as part of the core .NET Framework 2.0 redistributable package.

The .NET Framework 2.0 language packs provide localized string resources for the following:

  • Exceptions thrown by .NET Framework class libraries that are not caught by the calling application
  • Compiler messages from managed code compilers (such as csc.exe and vbc.exe)
  • Usage information for managed code tools that ship as part of the .NET Framework redistributable (such as caspol.exe)

Comments

  • Anonymous
    May 30, 2006
    Hi Aaron!

    I just asked myself, if the is a simple mechanism to integrate a language pack installation into the redistributable package? I could not find a way without huge customizations of the original redistributable MSI. Do you have any suggestions?

    Regards,
    Marcello

  • Anonymous
    June 01, 2006
    Hi Marcello - There is not a way to integrate a language pack into the redistributable package setup to have them install as a single unit.  You will need a wrapper setup EXE that will chain together these pieces.  This EXE should check to see if the packages are already installed, and if not, it can install each of them sequentially in silent mode and check the return code to determine success/failure.

    I should also note that you should not attempt to make any modifications to the original redistributable MSI.  Doing so can cause future hotfixes or service packs for the redist package to fail to install, which is a very bad thing...

  • Anonymous
    June 13, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/574618.aspx

  • Anonymous
    June 23, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/492809.aspx

  • Anonymous
    August 27, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/454956.aspx

  • Anonymous
    October 21, 2006
    The comment has been removed

  • Anonymous
    February 16, 2007
    Where to get Visual Studio 2005 and the .NET Framework 2.0 Where to download the .NET Framework 2.0 redistributable

  • Anonymous
    July 18, 2007
    The comment has been removed