简体   繁体   English

Visual Studio 2010,安装许可证Windows XP / 7

[英]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. 添加单独的文件或确保未使用主输出部署它。

  1. Right-click your installer project -> View -> File System 右键单击安装程序项目 - >查看 - >文件系统
  2. Select "Application Folder". 选择“应用程序文件夹”。
  3. In the right hand pane, right-click -> Add -> File 在右侧窗格中,右键单击 - >添加 - >文件
  4. Add a file that is not part of your project, such as a completely separate rtf file. 添加不属于项目的文件,例如完全独立的rtf文件。
  5. Right-click your installer project -> View -> User Interface 右键单击安装程序项目 - >视图 - >用户界面
  6. Select the "Licence Agreement" dialog. 选择“许可协议”对话框。
  7. In the properties window select your licence file again. 在属性窗口中,再次选择许可证文件。
  8. Select the file you just added to the install file system. 选择刚刚添加到安装文件系统的文件。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM