为 C#/SQL 应用程序进行设置
这是我在 stackoverflow 上的第一篇文章,我总是通过谷歌搜索来查看这个网站,所以我决定自己加入!我希望对其他人有用,
我是一名 3d 开发人员 (DirectX),但最近我开始使用 C# 和 SQL Express 制作 SMS 网关,现在我将为我的项目创建一个安装文件(使用 . NET 3.5),我有什么选择?我听说VS 2008可以进行设置,有示例吗?如何将 SQL Express 包含在我的安装应用程序中? 我还下载了Install Shield 2010,它内置了对VS 2008的支持,我想以一种检测目标系统上的SQL的方式进行设置,如果它发现SQL已经安装,则不会尝试安装它再说一次(同样的规则也适用于 .NET),我有什么选择?我怎样才能制作这样的安装文件?
谢谢
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
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?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Microsoft 的 Visual Studio 提供了一个可供您使用的内置安装模板。
单击一次
对于您的方案,您应该查看“添加单击一次”自定义先决条件。
设置和部署< /strong> 应用
对于您的方案,您应该查看 演练。
或者正如您提到的,您有 InstallSheild 2010,然后:
Install Shield Wizard
看看这个限量版演练
至于SQL Server,我认为你可以通常最多使用 SQL Server Compact Edition。 (对于任何更大的东西,您可能需要通知用户自行安装)
With Microsoft's Visual Studio, there is an inbuilt Setup Template which you can use.
Click Once
For your scenario you should take a look at Adding Click once Custom Prerequisites.
Setup And Deployment Application
For your scenario you should take a look at the Walk-through.
Or as you mentioned you have InstallSheild 2010 then:
Install Shield Wizard
Take a look at this Walk-through with Limited 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)
我没有个人经验,但是 SQL Server 2008 Compact可能对此有好处。它是一个嵌入式解决方案,因此您实际上不需要安装服务器。或者,您可以查看 SQLite,它具有本机 .NET 实现(google 搜索“sqlite .net”)。
I have no personal experience with it, but SQL Server 2008 Compact might be good for this. It is an embedded solution so so you don't actually need to install a server. Alternatively you could look at SQLite, which has native .NET implementations (google for "sqlite .net").