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

发布于 2024-12-05 15:01:56 字数 576 浏览 0 评论 0原文

Visual studio 2010,Windows XP/7

我不确定我是否在这里做,但我有一个带有(Visual Studio)安装项目的应用程序项目。

我已经为App项目创建了一个许可证文件license.rtf并将其包含到 设置项目。

我还在安装项目中添加了“许可证”对话框,并添加了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

我也尝试过使用 .rtf 文件,但没有成功

/Stefan

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.

I have created a license file, license.rtf to the App project and included it into the
Setup project.

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 ?

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

/Stefan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

身边 2024-12-12 15:01:56

如果附加的 rtf 文件是使用 Visual Studio 本身创建的,则该文件可能存在一些编码问题。因此,使用 Microsoft Word 创建一个新文件并将文件另存为 rtf。

我已经这样解决了我的问题。

If the attached rtf file is created using Visual Studio itself, then there might be some encoding issues with the file. Hence create a new file using Microsoft Word and save the file as rtf.

I have solved my issue like this.

束缚m 2024-12-12 15:01:56

您需要添加一个项目输出中尚不存在的文件。此错误通常是因为您选择的许可证文件是主要输出的一部分,并且无法两次输出该文件来构建许可证对话框。

添加单独的文件或确保它不与您的主要输出一起部署。

  1. 右键单击您的安装程序项目 ->查看->文件系统
  2. 选择“应用程序文件夹”。
  3. 在右侧窗格中,右键单击 ->添加->文件
  4. 添加不属于项目的文件,例如完全独立的 rtf 文件。
  5. 右键单击您的安装程序项目 ->查看->用户界面
  6. 选择“许可协议”对话框。
  7. 在属性窗口中再次选择您的许可证文件。
  8. 选择刚刚添加到安装文件系统的文件。

注意:请确保删除所做的任何错误选择,它们将显示在您的安装程序项目下,并带有红色“无效”图标。即使添加新的单独文件后,旧文件可能仍然存在,导致构建中出现警告。

项目中冲突文件的示例。该图标实际上用于“排除”,但会提示您文件在安装程序构建期间不可用。

应删除的冲突许可证文件

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.
  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.

Conflicting license file that should be removed

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文