为C#/SQL应用进行设置 [英] Making a setup for C#/SQL app

查看:52
本文介绍了为C#/SQL应用进行设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在stackoverflow中的第一篇文章,我一直通过Google搜索来检查此站点,所以我决定自己加入!我希望对其他人有用

this is my first post in stackoverflow, I've always checked this site by searching in google, so I decided to join it myself! I hope to be useful to others

我是3d开发人员(DirectX),但最近我开始使用C#和SQL Express制作SMS网关,现在我将为我的项目(使用.NET 3.5)创建一个安装文件,我有什么选择?我听说VS 2008可以进行设置,是否有示例?如何在安装应用程序中包含SQL Express? 我还下载了具有对VS 2008的内置支持的Install Shield 2010,我想以一种在目标系统上检测到SQL的方式进行设置,如果发现已经安装了SQL,则不要尝试安装它再次(可以将相同的规则应用于.NET),我有哪些选择?我该如何制作这样的安装文件?

I'm a 3d developer (DirectX), but recently I've started making an SMS gateway using C# and SQL Express, now I'm going to create a setup file for my project (which uses .NET 3.5), what are my options? I've heard that VS 2008 can make setup, is there any sample? how can I include SQL express in my setup app? also I've downloaded Install Shield 2010 which has a built-in support for VS 2008, I want to make my setup in a way that it detects SQL on target system and if it finds SQL already installed, doesn't try to install it again (the same rule can be applied for .NET), what are my options? how can I make such a setup file?

谢谢

推荐答案

使用Microsoft的Visual Studio,可以使用内置的安装模板.

With Microsoft's Visual Studio, there is an inbuilt Setup Template which you can use.

对于您的情况,您应该查看一下添加一次自定义先决条件.

For your scenario you should take a look at Adding Click once Custom Prerequisites.

设置和部署 应用

对于您的情况,您应该看看

For your scenario you should take a look at the Walk-through.

或者您提到过,那么您已经安装了InstallSheild 2010:

Or as you mentioned you have InstallSheild 2010 then:

  • 安装Shield Wizard

  • Install Shield Wizard

看看这个限量版演练

对于SQL Server,我认为您通常可以达到SQL Server Compact Edition. (对于更大的功能,您可能需要通知用户自己安装)

As for SQL Server i think you can usually go as far as SQL Server Compact Edition. (For anything greater you may need to Inform User to install it himself)

这篇关于为C#/SQL应用进行设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆