我正在使用WIX Toolset创建MSI应用程序,并且我想提供自己的许可证文件以在“许可证协议”对话框上的“许可证协议”期间显示。 我在写字板中创建了一个新文档,并以.rtf扩展名保存了它。无论wix文档的内容是什么,都不会生成,而随之而来的错误是错误LGHT0311。
C:\agent\_work\8\s\src\ext\UIExtension\wixlib\LicenseAgreementDlg.wxs(27,0): error LGHT0311: A string was provided with characters that are not available in the specified database code page '1252'. Either change these characters to ones that exist in the database's code page, or update the database's code page by modifying one of the following attributes: Product/@Codepage, Module/@Codepage, Patch/@Codepage, PatchCreation/@Codepage, or WixLocalization/@Codepage.
Note:- LicenseAgreementDlg.wxs(27,0) contains this line <Text SourceFile="!(wix.WixUILicenseRtf=$(var.licenseRtf))" />
我尝试在产品标签和包装标签中将Codepage值添加为1252,在Summary标签中添加Codepage值。我什至尝试只在许可证文件中放入一个字符,但仍然遇到相同的错误。
请帮助我解决此问题?
答案 0 :(得分:0)
您需要使用写字板创建许可证并以* .rtf扩展名保存。 我正在使用Microsoft Office Word创建许可证,然后使用* .rtf扩展名进行保存,该扩展名出现上述错误。