如何在Exe中附加Sqlserver(使用Install Shield创建)在C#中 [英] How Can I Attach Sqlserver In Exe(Created Using Install Shield) In C#

查看:86
本文介绍了如何在Exe中附加Sqlserver(使用Install Shield创建)在C#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个项目的exe。前端是c#,后端是sqlserver2012。这是一个Windows应用程序。我想在另一个系统中安装这个exe。为此我想用这个exe绑定sql server。如何使用installshield完成此操作?请帮我。

谢谢。

Hi,
I created an exe of my project. Front end is c# and back end is sqlserver2012. It is a windows application. I want to install this exe in another system. for that I want to bind sql server with this exe. How can I done this with installshield? Please help me.
Thanks.

推荐答案

您还没有提到您正在使用的Visual Studio版本。正如您已标记C#4.0,我假设您使用的是Visual Studio 2010.



首先,您需要在解决方案中添加一个安装项目。如果您之前没有这样做,请查看详细步骤 -

如何:创建或添加安装项目 [ ^ ]



然后

1.右键单击设置项目

2.选择属性

3.单击先决条件按钮

4.选择SQL Server



希望,它有帮助:)




更新:我道歉。提出了错误的解决方案,因为我错过了将Installshield带入帐户。但是,如果您使用的是Visual Studio 2012,那么您可以参考以下文章来完成工作。

使用创建设置文件的简单步骤来自VS 2012的InstallShield LE [ ^ ]
You haven't mentioned which version of visual studio you are using. As you have tagged C# 4.0, I am assuming that you are using Visual Studio 2010.

First of all, you need to add a setup project to your solution. If you haven't done this earlier check foloowing for the detailed steps-
How to: Create or Add a Setup Project[^]

Then
1. right click on the setup project
2. select properties
3. click on prerequisites button
4. select SQL Server

Hope, it helps :)


Update: I apologise. Have proposed wrong solution as I have missed to take "Installshield" in to account.However, if you are using Visual Studio 2012 then you can refer to the following article to get your job done.
Simple Steps to Create Setup File Using InstallShield LE From VS 2012[^]


这篇关于如何在Exe中附加Sqlserver(使用Install Shield创建)在C#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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