开发者

Create Setup, which installs Microsoft SQL Server 2005, if not installed (with Visual Studio 2008)

I want to create a setup which requires Microsoft SQL Server 2005 and .NET Framework 3.5. If this software isn't installed, the S开发者_StackOverflow中文版etup should offer the user to install them now.


I don't know if you can include either of the two in the installation package itself.

However, you can tell the setup app to check if the .Net Framework and SQL Server 2005 Express Edition are installed. If they are not, it will download and install them and then continue with the installation of you application. Of course, that does require an Internet connection.

These options are available when you right-click on your setup project, select Properties, and then click on the Prerequisites button.

Note that like Paddy said, SQL Server 2005 is a different story.


As others said before, SQL Server 2005 is a different ballgame, however if it's SQL Server 2005 Express that you want, it's straightforward. This sample from www.codeproject.com might help:

.NET Installer that Automatically Installs SQL 2005 Express

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜