我試圖建立與維克斯開發了支持多語言的UI我的MSI安裝程序的MSI安裝程序的本土化作戰的,所以我創建Strings_en-us.wxl
文件包含此:使用維克斯
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="Language">1033</String>
<String Id="Codepage">1252</String>
<String Id="DowngradeErrorMessage">A newer version of [ProductName] is already installed.</String>
</WixLocalization>
然後從內Product.wxs
文件:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="$(var.ProduceCode)"
Name="TestSetupProject1"
Version="$(var.Version)"
Language="!(loc.Language)"
Codepage="!(loc.Codepage)"
Manufacturer="$(var.CompanyName)"
UpgradeCode="$(var.UpgradeCode)">
我立即得到一個錯誤:
error CNDL0276: The code page '!(loc.Codepage)' is not a valid Windows code page. Please check the Product/@Codepage attribute value in your source file.
那麼我在這裏做錯了什麼?
我在這方面沒有經驗,但是...... Windows安裝程序使用代碼頁獲取摘要信息和字符串。他們有不同的用途和限制。您不能在產品/ @代碼頁中放置任何Unicode代碼頁ID。這些鏈接可能有幫助:[使用中性代碼頁創建數據庫](http://msdn.microsoft.com/en-us/library/windows/desktop/aa368057.aspx)[WiX代碼頁](http:// wix.sourceforge.net/manual-wix3/codepage.htm)[總結信息流](http://msdn.microsoft.com/en-us/library/windows/desktop/aa372044.aspx) –