| title | Create a Localized Bootstrapper Package | |||
|---|---|---|---|---|
| description | Learn how to create localized versions of the bootstrapper package in ClickOnce by creating two more files for each locale. | |||
| ms.date | 01/12/2024 | |||
| ms.topic | how-to | |||
| helpviewer_keywords |
|
|||
| author | mikejo5000 | |||
| ms.author | mikejo | |||
| ms.subservice | deployment |
After you create a bootstrapper package, you can create localized versions of the bootstrapper package by creating two more files for each locale: a software license terms file (such as a eula.rtf) and a package manifest (package.xml).
By default, Visual Studio includes localized bootstrapper packages only for a few specific version of .NET Framework. You can create localized packages for other bootstrappers by completing three steps.
-
Create a folder that is named after the locale name in \Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\<BootstrapperPackageName>.
-
Create a file that contains the software license terms for the bootstrapper package and put it in the new folder.
-
Create a package manifest named package.xml, update the strings and culture, and put the file in the new folder. If you have already created a bootstrapper of Visual Studio in the target language, you can copy the Visual Studio package.xml file and modify it in this step.
Note
If you are using a Setup project to deploy applications, you can localize your application by changing the Localization property.
[!INCLUDEnote_settings_general]
-
Create a folder that is named after the locale name.
On 32-bit computers, create the folder in the \Program Files\Microsoft SDKs\ClickOnce Bootstrapper\Packages\<BootstrapperPackageName>\ folder.
On 64-bit computers, create the folder in the \Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\<BootstrapperPackageName>\ folder.
The following table shows the folder names that you can use to match a locale.
Locale Folder name Chinese (Simplified) zh-Hans Chinese (Traditional) zh-Hant Czech cs German de English en Spanish es French fr Italian it Korean ko Japanese ja Polish pl Portuguese (Brazil) pt-BR Russian ru Turkish tr -
Create a file that contains the software license terms for the bootstrapper package and put it in the new folder.
-
Create a package manifest named package.xml and put it in the new folder. For more information, see How to: Create a package manifest.
-
Update the
<Strings>section of the package manifest so that the strings are in the correct language for the locale. -
Change the
<String Name="Culture">value to match the folder name. -
Save the package.xml file.
-
Create a folder that is named fr. The folder name must match the locale name.
On 32-bit computers, create the folder in the \Program Files\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX35SP1\ folder.
On 64-bit computers, create the folder in the \Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX35SP1\ folder.
-
Put a localized version of the software license terms into the fr folder.
-
Copy the \Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX35SP1\en\package.xml file to the fr folder, and open the file in the XML Designer.
-
Update the
<Strings>section of the package manifest so that the error strings are in French. -
Change the
<String Name="Culture">value to fr. -
Save the package.xml file.
Note
Starting with the Visual Studio 2019 Update 7 release bootstrapper packages will also be discovered under the path {VS Install Path}\MSBuild\Microsoft\VisualStudio\BootstrapperPackages.