clickonce 安装程序如何安装先决条件列表中未提及的先决条件
我想将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的解决方法失败了,因为该 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.