简体   繁体   English

如何使用sap,sql server 2008 r2和.net框架为.net项目创建设置

[英]how to create a setup for .net project with sap, sql server 2008 r2 and .net framework

I have created a .NET application which is a WPF application and it consists of database and reports. 我创建了一个.NET应用程序,它是一个WPF应用程序,它由数据库和报告组成。 What i want to do is to create a setups which consists of .Net Framework, SQL Server 2008 R2 and SAP Crystal Reports. 我想要做的是创建一个由.Net Framework,SQL Server 2008 R2和SAP Crystal Reports组成的设置。 All of these should be in a single setup. 所有这些都应该在一个设置中。 If any of these exists in OS so that should be skipped and which are not existing should be installed. 如果操作系统中存在任何这些应该被跳过并且应该安装不存在的操作系统。 If the software are not present so they should be download first and then installed. 如果软件不存在,则应先下载然后再安装。

What is the best solution and steps for it? 什么是最佳解决方案和步骤?

If reference are available similar to my problem please post their links. 如果可以提供类似于我的问题的参考,请发布他们的链接。

If you down vote my question, please tell me the reason for it as to be careful next time. 如果你投票我的问题,请告诉我下次要小心的原因。

What is the best solution and steps for it? 什么是最佳解决方案和步骤?

Just document these software packages as prerequisites and provide your users some documentation as to where to download and how to install them. 只需记录这些软件包作为先决条件,并为您的用户提供有关下载位置和安装方法的一些文档。 We use an almost identical software stack for our applications at my current place of employment, and this is what we do. 我们在目前的工作场所使用几乎相同的软件堆栈,这就是我们的工作。 There are a few reasons for this: 这有几个原因:

  1. Error Handling A lot of things can go wrong when installing these applications. 错误处理安装这些应用程序时可能会出现很多问题。 SQL Server especially has a lot of prerequisites and configuration requirements that are too numerous to account for all of the things that could possibly go wrong. SQL Server特别具有许多先决条件和配置要求,这些要求太多,无法解决可能出错的所有问题。 Crystal Reports also might be problematic. Crystal Reports也可能存在问题。
  2. Legal In order to redistribute software you need to have the right to do so. 法律要重新分发软件,您需要有权这样做。 .NET and CR both provide redistributables, SQL Server 2008 R2 Express used to require you to register in order to redistribute, however, according to this question it looks like they stopped offering that and now it is built into the 2012 license. .NET和CR都提供可再发行组件,SQL Server 2008 R2 Express曾经要求您注册以便重新发布,但是,根据这个问题 ,看起来它们已停止提供,现在它已内置到2012许可证中。
  3. Control Let's say you figure out how to get this installer working, but lets say one of the software packages needs to be updated to fix a security problem. 控制让我们说你弄清楚如何使这个安装程序工作,但我们可以说需要更新其中一个软件包来解决安全问题。 At the same time they change the installer logic, and it breaks your installer procedure. 同时,他们更改了安装程序逻辑,并破坏了安装程序。 Because these installers are outside of your control keeping a consistent installation process can be very time intensive. 由于这些安装程序不在您的控制之下,因此保持一致的安装过程可能非常耗时。

Now I realize the end goal is to have a good user experience, run one installer and everything necessary gets installed. 现在我意识到最终目标是获得良好的用户体验,运行一个安装程序并安装所有必需的东西。 However, the potential for this to break and cause problems and give a really negative user experience, in my opinion, far outweighs any potential user experience gain that might be earned by a unified installer. 但是,在我看来,这种打破并导致问题和给予真正负面用户体验的可能性远远超过统一安装程序可能获得的任何潜在用户体验收益。

If you are really dead set on doing this, I'd recommend just googling it. 如果你真的死定了这个,我建议你谷歌搜索它。 Generally by searching something like crystal reports silent install or sql server unattended install you can usually find instructions on how to supply the proper command line options to get it to install without any user input. 通常通过搜索crystal reports silent installsql server unattended install您通常可以找到有关如何提供正确的命令行选项的说明,以便在没有任何用户输入的情况下安装它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Windows Server 2008 R2 Enterpresi和.NET中的Web应用程序上设置TLS证书? - How can I setup TLS certificate on Windows Server 2008 R2 Enterpresi and Web application in .NET? 如何在SQL Server 2008 R2数据库中创建临时表? - How to create temporary table in sql server 2008 R2 database? SQL Server 2008 R2如何创建ASSEMBLY - SQL Server 2008 R2 how to create ASSEMBLY 如何将SQL Server 2008 R2数据库添加到Visual Studio 2010安装文件中? - How to add my SQL Server 2008 R2 database to my Visual Studio 2010 Setup File? 从Visual Studio安装项目安装SQL Server和.NET Framework - Installing SQL Server and .NET Framework from a visual studio setup project 30秒后在ASP.NET上超时,在SQL Server 2008 R2上没有超时 - Timeout on ASP.NET after 30 seconds, on SQL server 2008 R2 no timeout 哪些.Net程序集作为标准集成到SQL Server 2008 R2 CLR中? - What .Net assemblies are integrated into the SQL Server 2008 R2 CLR as standard? 存储过程不返回任何数据asp.net sql server 2008 r2 - store procedure don't return any data asp.net sql server 2008 r2 使用SQL Server 2008 R2在ASP.NET C#中创建Crystal Report - Creating Crystal Report in asp.net c# with SQL Server 2008 R2 部署使用Asp.Net,C#和Sql Server 2008 R2构建的Web应用程序 - Deploying an Web Application built using Asp.Net,C# and Sql Server 2008 R2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM