本文介绍了如何“启用'从与我的应用程序相同的位置下载先决条件'"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tl;博士Visual Studio 2013创建普通安装程序,项目模板:其他项目类型> Visual Studio安装程序>安装项目

tl;drVisual Studio 2013Creating a plain installer, project template: Other Project Types > Visual Studio Installer > Setup Project

我必须缺少一些简单的东西.我已经下载了用于我的必备软件的安装程序(即NDP451-KB2858728-x86-x64-AllOS-ENU.exe),要告诉Visual Studio在哪里可以找到它们(或将它们放在看起来自然的位置)有多困难? )?

There's gotta be something simple I'm missing. I've got the installers (i.e NDP451-KB2858728-x86-x64-AllOS-ENU.exe) for my prerequisites downloaded, how hard can it be to tell Visual Studio where to find them (or to put them where it naturally will look)?

================================================ ==

=================================================

除了合并先决条件外,其他所有事情都可以解决.

Got everything working, except for incorporating prerequisites.

我在Google上找到了这个,找到了其他一些堆栈交换文章,但没有什么能完全回答这个问题.

I have google this, found some other stack exchange articles, but nothing quite answers the question.

我创建了一个简单的安装项目",其中包含一些先决条件,我希望这些先决条件与安装程序捆绑在一起(安装时最终用户不下载).我收到此错误:

I have created a plain "Setup Project" with some prerequisites, which I want bundled with the installer (no downloading by the end user at install time). I get this error:

错误1要在先决条件"对话框中启用从与我的应用程序相同的位置下载先决条件",必须将项目"Microsoft .NET Framework 4.5(x86和x64)"的文件"DotNetFX45 \ dotNetFx45_Full_x86_x64.exe"下载到您的本地计算机.有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkId=239883 . d:\ junk \ installerWalkthrough \ Setup1 \ Setup1.vdproj Setup1

Error 1 To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'DotNetFX45\dotNetFx45_Full_x86_x64.exe' for item 'Microsoft .NET Framework 4.5 (x86 and x64)' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883. d:\junk\installerWalkthrough\Setup1\Setup1.vdproj Setup1

这很清楚.

例外:下载后,我应该把它放在哪里,以便Visual Studio知道在哪里可以找到它并将其包含在安装项目的构建中?

EXCEPT: after I download it, where do I put it so Visual Studio knows where to find it to include it in the build of the setup project?

我一直在寻找一些选项/属性来指定安装文件的路径,以实现先决条件,但不走运.如果我转到错误消息中提到的URL,它将继续显示"clickonce"和其他类型的安装.与普通的安装项目"类型无关.并且关于将下载文件放置在何处的指示非常清晰,似乎特定于win版本8.1A,但是如果您进入"C:\ Program Files(x86)\ Microsoft SDKs \ Windows \",则有许多不同的win版本列为子文件夹,有些带有bootstrapper文件夹,有些则没有,等等.

I've looked for some option/properties to specify a path to the setup files for prerequisites, no luck. If I go to the url mentioned in the error message, it goes on about "clickonce" and other types of install. Nothing about plain "Setup Project" type of install. And the instructions about where to put the downloaded file are as clear as mud, seem to be specific for win version 8.1A, but if you go down into "C:\Program Files (x86)\Microsoft SDKs\Windows\" there are many different win version listed as subfolders, some with a bootstrapper folder, others not, etc.

我尝试将NDP451-KB2858728-x86-x64-AllOS-ENU.exe放入C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v8.1A \ Bootstrapper \ Packages \ DotNetFX451 \ en (错误消息的网址)告诉我将其放入,但是VS在构建时找不到它.

I tried putting NDP451-KB2858728-x86-x64-AllOS-ENU.exe in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\DotNetFX451\en which seems to be where (url from error message) is telling me to put it, but VS does not find it on build.

我必须缺少一些简单的东西.我已经下载了用于必备软件的安装程序,要告诉Visual Studio从何处获取安装程序有多困难?

There's gotta be something simple I'm missing. I've got the installers for my prerequisites downloaded, how hard can it be to tell Visual Studio where to get them?

推荐答案

Visual Studio 2017路径再次更改-继续使用

Visual Studio 2017 path has changed again - go with

C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\vcredist_x64

这篇关于如何“启用'从与我的应用程序相同的位置下载先决条件'"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 00:16