问题标签 [prerequisites]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
286 浏览

c# - 连接到已部署的 SQL Server Express 数据库

我需要 SQL Server Express 2008 作为我的 WPF 应用程序的先决条件。结果我选择了:

在此处输入图像描述

这很好用。当用户安装应用程序时,如果他没有 SQL Server 2008 Express,安装程序将下载必要的文件并安装 SQL Server Express。

安装完成后,用户现在已经安装了我的项目以及先决条件(SQL Server 2008 Express)

现在的问题是如何连接到该数据库。连接字符串是什么?

编辑

对不起,我错误地解释了我自己。我想连接到数据库引擎,以便我可以执行我的 dabase1.sql 脚本来创建我的应用程序所需的数据库和表。

0 投票
2 回答
3464 浏览

visual-studio - Visual Studio 不包含我指定的先决条件

我有一个由 wpf 应用程序 (project1) 和一个安装项目组成的 Visual Studio 解决方案。我需要这个先决条件: 在此处输入图像描述

当我自己部署 Project1 时,一切正常:

在此处输入图像描述

这是我告诉视觉工作室包含的先决条件......

但我想创建一个安装向导项目并包含我的 Project1 以及我想要部署的额外文件。当我创建该项目时,编译,重新编译选择的发布选项以及选择的调试选项,以确保我包含我的项目构建,看看它的行为方式:

** 删除...看看编辑。我在那里更详细地解释了一切**







我将展示我执行的步骤

脚步:

步骤1)

创建控制台应用程序包括我想要包括的先决条件

在此处输入图像描述

第2步)

将目标框架设置为 .NET Framework 4

在此处输入图像描述

步骤 3)

在属性的发布选项卡中设置此更改:

在此处输入图像描述

在此处输入图像描述

设置 4)

在没有安装向导的情况下发布此解决方案。

在此处输入图像描述

步骤 5)

启动刚刚在另一台干净机器上创建的安装文件

在此处输入图像描述

步骤 6)

取消安装让我们尝试对安装项目做同样的事情

在此处输入图像描述

步骤 7)

创建 setup1 项目后,让我们将 Console 应用程序添加到项目输出中

在此处输入图像描述

步骤 8)

现在我的 setup1 项目看起来像:

在此处输入图像描述

步骤 9)

现在我构建该项目并将其导出到我想要测试安装的另一台计算机

在此处输入图像描述

请注意,当我启动 Setup1.exe 时,它​​要安装 Windows Installer 3.1!!!!为什么????

步骤 10)

好吧,无论如何……让我们继续安装,让我们接受并继续……

在此处输入图像描述

现在它要安装客户端版本而不是完整版!!!为什么?

步骤 11)

现在windows下载安装程序(记得我在设置中告诉Visual Studio我不想下载任何东西......)

步骤 12)

Setup1.exe 现在安装 .net 框架的客户端版本

在此处输入图像描述

步骤 13-14)

Setup1.exe 提示我安装控制台应用程序我单击下一步,因为程序太小我没有时间截屏,但现在安装完成

在此处输入图像描述


安装现已完成


为什么我为控制台应用程序指定的先决条件不包括在内!?如果我不包含安装项目,为什么一切正常?我究竟做错了什么?

0 投票
1 回答
3188 浏览

deployment - Make .NET Framework 4 wpf application portable or more reliable to install

I am required to create a simple application. Since I am good at WPF and I don't know win forms that good I implemented my application by creating a .Net Framework 4.0 WPF project in Visual Studio. Everything works great the application runs like it is supposed to.

Since the application is required to run in multiple platforms (Windows XP and above) I am including the prerequisites when publishing my applications. The prerequisites happen to be:

  • 1) WIC (Windows Imaging Component) old computers need that to run the .net framework 4.0
  • 2) Windows installer 3.1 (needed in order to install the next prerequisite)
  • 3) Windows .NET Framework 4.0 Client Profile

If I install those prerequisites then the application runs like it is supposed to.

Now the problem is:

My boss did not approve my application because he tried installing it in a Windows XP machine with SP2 and this are the things that happened:

Step 1)

Step 2)

Step 3)

Step 4)

We recorded the time, and the application took about 25 minutes to install from start to finish. The computer where we tested the installation was a virtual computer using 2 cores and 1 GB of memory with 3.1 GHZ.


What do you guys recommend in order to speed up this installation? Should I use a different technology such as windows forms using .net 2.0? It will be nice if I can deploy the application that I have already created. If you guys could help me make this application portable I will really appreciate it. In order to do so I tried building my application with all the required references copied to the output directory. That did not work... Or any ideas of how to make the installation be faster will be of great help as well.

0 投票
1 回答
2178 浏览

visual-studio-2010 - 在 InstallShield LE (Visual Studio 2010) 中缺少 SQL Server CE 作为必需的先决条件

我刚刚在 Visual Studio 2010 中启用了 InstallShield LE,并且正在整理一个安装项目。我想将 SQL Server CE 4.0 指定为必需的先决条件,这样 InstallShield 将处理 64 位与 32 位和不同操作系统的复杂性,而无需我检查注册表项或类似的东西。

为什么不包括 SQL Server CE?它被吹捧为 Microsoft 的桌面数据解决方案,而 InstallShield LE 被吹捧为 Visual Studio 安装项目的替代品,那么它不应该是标准的吗?

我可以在 InstallShield 的 Requirements 文件夹(以及许多其他文件夹)中看到一个 SQL Server CE prq 文件,但它没有出现在 Visual Studio 中。有没有办法启用它?

0 投票
1 回答
180 浏览

winforms - 如何确定应用程序的软件先决条件?

我正在开发一个供家庭使用的小型 WinForms 程序——我无意在任何地方发布它。

在我的开发机器上运行它,在那里我安装了 Visual Studio 和 .NET 以及其他任何东西,但在我可能没有所有这些框架的 PC 上部署它却不行。我正在使用一些用 C++ 编写的库,所以我假设我需要某个版本的 Visual C++ Redistributable,但我不确定是哪个版本?我不确定这是否就是全部。那么,如何确定应用程序的软件先决条件?

我使用了 Dependency Walker 并收到了一条消息IEHIMS.DLL - Error opening file. The system cannot find the file specified (2),但这就是我所能理解的;有这么多的信息,我很难理解这一切。此外,根据快速谷歌的说法,IESHIMS.DLL它与 Internet Explorer 有关,所以它应该不重要。

提前感谢任何花时间考虑我的问题的人。

亲切的问候

0 投票
0 回答
1196 浏览

installshield - Updating Prerequisite (*.prq) Files

Is there a way to update a prerequisite file from the command line?

As part of my build process I build a installer for an OLEDB component and that installer becomes a prerequisite for other installers built after that. So in order to automate the whole process it would be ideal to have the prerequisite file that points to the OLEDB component updated dynamically (checksums and file sizes).

I use Installshield 2011 on my editing VM and the standalone version on my build environment.

Any ideas?

0 投票
1 回答
7989 浏览

asp.net - 如何在 IIS 中部署 .NET Web 项目

我正在 Visual Studio 2010 中开发一个 .NET Web 应用程序。它处于初步阶段,到目前为止我已经实现了 ASP.NET 身份验证。我有一个随 Visual Studio 解决方案附加的数据库 ASPNETDB(当我从 Visual Studio Project->ASP.NET 配置进行 ASP.NET 配置时出现)。到目前为止,我正在 Visual Studio 的集成服务器的帮助下测试应用程序,我还没有安装任何其他软件,如 SQL Server Management Studio 等。

我在 Windows 7 64 位中运行,我想测试在 IIS 7.0 中发布应用程序。IIS 已安装。我也安装了

  • SQL Server 系统 CLR 类型
  • SQL Server 本机客户端
  • SQL Server 2008 R2 管理对象
  • 网络部署工具 2.1

我将按照部署到托管提供商:部署到 IIS 作为测试环境中所示的说明进行操作

所以在此之前,我想知道我是否需要安装或配置其他任何东西?

0 投票
2 回答
50171 浏览

.net - .NET Framework 4.5 操作系统要求(无 Vista 和 XP)

目前,.NET Framework 4.5 仅在 Windows 7 及更高版本上运行

虽然我知道 XP 支持正在被放弃,但我对不支持 Vista 的决定感到有点惊讶。(毕竟 .NET 4 支持 XP 及更高版本。)

是否有任何迹象(新闻公告、MSDN 博客条目……)表明 .NET 4.5 发布时将支持更多操作系统?

0 投票
1 回答
805 浏览

installation - 在先决条件安装之前如何在 Wix 中显示欢迎消息?

我有一个 WiX 安装程序,它安装 .Net 4 和 SQL 作为先决条件。一切正常,但用户在单击 setup.exe 时首先看到的是 .net 4 的 EULA 协议,然后是每个先决条件的 EULA 列表。我的 Wix_Minimal 欢迎屏幕仅在先决条件完成后,即我的实际应用程序的 .msi 启动时才会弹出。

我希望一开始就显示一条欢迎信息,它解释了将要发生的事情。类似“欢迎使用 x 安装。安装程序现在将更新您的计算机。请同意以下许可协议”。

如何让 WiX 在安装开始时显示对话框或消息框?

0 投票
1 回答
3081 浏览

c# - ClickOnce 安装程序先决条件:如何自动检测所需的 Visual C++ 运行时版本

我编写了一个需要安装 Visual C++ 2010 可再发行组件的 C# 应用程序,并且我使用 Visual Studio 中内置的“发布”机制来分发该应用程序——它使用 Microsoft 的“ClickOnce”安装程序技术。

我发现我需要单击“发布”页面上的“先决条件”按钮,但存在问题。

不知道用户是 x86 还是 64 位,我必须选中可再发行组件的 x86 和 x64 版本。

但是,如果 x86 用户安装它,他们会收到错误消息:“系统组件 Visual C++ 2010 运行时库 (x64) 的先决条件检查失败并显示以下错误消息:“仅在 x64 上支持安装 Visual C++ 2010 运行时库 (x64)机器。”

但是如果我不包括 x64 版本,那么 64 位用户就不能使用安装程序。

另一个问题是一些用户收到错误“在机器上检测到更新版本的 Microsoft Visual C++ 2010 Redistributable”,安装程序失败。

这整件事似乎是一团糟。ClickOnce 安装程序技术是否足够聪明,无法确定用户需要 x86 还是 64 位版本的 C++ 可再发行组件?如果安装了较新的版本,那真的是一个表演障碍吗?

这一切似乎都很脆弱,似乎应该有一个非常简单的解决方法。