[英]Visual studio 2010, Setup license Windows XP/7
Visual studio 2010, Windows XP/7 Visual Studio 2010,Windows XP / 7
I am not sure if I am doing right here but I have an application project with a (visual studio) Setup project. 我不确定我是否在这里做,但我有一个应用项目与(visual studio)安装项目。
I have created a license file, license.rtf to the App project and included it into the Setup project. 我已经为App项目创建了一个许可文件license.rtf,并将其包含在Setup项目中。
I have also added the "License" dialog box in the Setup project and added the license.txt file to the dialog box but when I rebuild the Setup project I get the following error message ? 我还在安装项目中添加了“许可证”对话框,并将license.txt文件添加到对话框中,但是当我重建安装项目时,我收到以下错误消息?
Error 1 Unable to build dialog module named 'c:\Program Files (x86)\
Microsoft Visual Studio 10.0\Common7\Tools\Deployment\.\VsdDialogs\
1033\VsdLicenseDlg.wid'
C:\svn\eis-damalini-easylink\EasyLink\Setup1\Setup1.vdproj Setup1
I have also tried with an .rtf file but no success 我也尝试过.rtf文件,但没有成功
/Stefan /斯特凡
If the attached rtf file is created using Visual Studio itself, then there might be some encoding issues with the file. 如果附加的rtf文件是使用Visual Studio本身创建的,则该文件可能存在一些编码问题。 Hence create a new file using Microsoft Word and save the file as rtf. 因此,使用Microsoft Word创建一个新文件并将文件另存为rtf。
I have solved my issue like this. 我已经解决了这个问题。
You need to add a file that does not already exist in your project output . 您需要添加项目输出中尚不存在的文件。 This error is usually because you selected a license file that is part of your primary output and it can't output the file twice to build the license dialog. 此错误通常是因为您选择了作为主输出一部分的许可证文件,并且无法输出文件两次以构建许可证对话框。
Add a separate file or ensure that it is not being deployed with your primary output. 添加单独的文件或确保未使用主输出部署它。
NB: Make sure you delete any incorrect selection you have made, they will show up under your installer project with a red "invalid" icon. 注意:确保删除任何不正确的选择,它们将显示在安装程序项目下,并带有红色的“无效”图标。 Even after adding a new separate file, the old one may still linger causing warnings in your build. 即使在添加新的单独文件后,旧文件仍可能会停留,从而导致构建中出现警告。
Example of what a conflicted file looks like in your project. 项目中出现冲突文件的示例。 The icon is actually for "exclude" but gives you a hint that your file isn't going to be available during the installer build. 该图标实际上是“排除”,但会提示您在安装程序构建期间文件不可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.