Skip to content
June 5, 2011 / windperson

英文版的Visual Studio 2010產生Installer時的錯誤訊息

英文版的Visual Studio 2010在它自己的內附的Visual Studio Installer專案,如果語言是選擇繁體中文,在建置時會出現類似下面這兩個警告訊息:

WARNING: Could not match culture 'zh-TW' for item 'Microsoft .NET Framework 4 Client Profile (x86 and x64)'. Using culture 'en' instead.
WARNING: Could not match culture 'zh-TW' for item 'Windows Installer 3.1'. Using culture 'en' instead.

第一個的錯誤原因是.net 4.0 Full Package:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40\zh-Hant\Package.xml

以及.net 4.0 Client Profile:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40Client\zh-Hant\Package.xml

(64位元的電腦是位於Program Files (x86)目錄裡面)

Package.xml檔案內容有誤,可從已安裝中文版VS2010的電腦上複製同樣檔案位置的"Package.xml"檔案替換。

第二個Windows Installer的錯誤原因是,是在Windows Installer 3.1:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\WindowsInstaller3_1

以及Windows Installer 4.5:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\WindowsInstaller4_5

目錄下沒有"zh-Hant"的繁體中文語系設定檔的目錄,可從已安裝中文版VS2010的電腦上複製同樣位置目錄下的zh-Hant目錄到該目錄底下。

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: