clickonce 安装程序如何安装先决条件列表中未提及的先决条件

发布于 2024-08-06 01:55:12 字数 632 浏览 5 评论 0原文

我想将 DirectX 9 与我的安装程序打包在一起,因为我的软件需要它才能运行。

你能告诉我该怎么做吗?

我尝试做这件事。我转到先决条件选项卡下的标题,从以下位置下载先决条件并粘贴 DirectX 的 url,即 这个

当我发布它时,它给了我错误:

无法发布,因为项目构建失败。
“.NET Framework Client Profile”需要项目“Windows Installer 3.1”,但未包含在内。

先决条件的安装位置尚未设置为“组件供应商的网站”,并且无法在磁盘上找到项目“.NET Framework Client Profile”中的文件“DotNetFx35Client\DotNetFx35ClientSetup.exe”。请参阅帮助以获取更多信息。

我正在使用没有 .NET 3.5 的虚拟机,因此如果我的计算机中没有该软件,我的安装程序会自行安装它。

I want to package DirectX 9 with my installer as it is necessary for my software to work.

Can you please tell me how can i do that?

I tried doing this thing. I went to the heading under prerequisite tab, download prerequisites from the following location and pasted the url for DirectX, which is this.

When i published it, it gave me error:

Cannot publish because a project failed to build.
Item 'Windows Installer 3.1' is required by '.NET Framework Client Profile', but was not included.

The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFx35Client\DotNetFx35ClientSetup.exe' in item '.NET Framework Client Profile' can not be located on disk. See Help for more information.

I am working on my virtual machine which does not have .NET 3.5 so that my installer installs it itself if it's not in my machine.

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

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

发布评论

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

评论(1

紅太極 2024-08-13 01:55:13

您的解决方法失败了,因为该 URL 对于所有先决条件都是通用的,而不仅仅是一个,因此您的其他先决条件无法加载。

看起来您需要添加自定义先决条件 - 我从来没有自己这样做过,但是 说明在这里。

Your workaround is failing because that URL is universal for all the prerequisites, not just one, and thus your other prerequisites are failing to load.

It looks like you need to add a custom prerequisite -- I've never had to do it myself, but instructions are here.

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