如何安装sql server

时间:2015-05-07 08:58:20

标签: sql-server

我用sql server 2008的后端完成了一个c#windows应用程序 现在我想在客户端机器上安装sql server而不询问任何窗口 我的意思是客户永远不会看到我想安装它的sql安装我已经用installsheild 2010完成了安装文件

坦克你 Mehaboob

1 个答案:

答案 0 :(得分:2)

假设您要安装SQL Server 2008 Express,可以使用silent install中的custom action

Setup.exe /ConfigurationFile=SQLExpress.ini /Q

使用您的SQLExpress.ini文件,如下所示:

[SQLSERVER2008] 
INSTANCEID="SQLExpress" 
ACTION="Install" 
FEATURES=SQLENGINE 
HELP="False" 
INDICATEPROGRESS="False" 
QUIET="False" 
QUIETSIMPLE="False" 
X86="True" 
PCUSOURCE="C:\install\SqlExpress_2008\PCUSOURCE" 
ERRORREPORTING="False" 
INSTALLSHAREDDIR="C:\Program Files (x86)\Microsoft SQL Server" 
INSTANCEDIR="C:\Program Files (x86)\Microsoft SQL Server" 
SQMREPORTING="False" 
INSTANCENAME="SQLEXPRESS" 
AGTSVCSTARTUPTYPE="Manual" 
ISSVCSTARTUPTYPE="Automatic" 
ISSVCACCOUNT="NT AUTHORITY\NetworkService" 
ASSVCSTARTUPTYPE="Automatic" 
ASCOLLATION="Latin1_General_CI_AS" 
ASDATADIR="Data" 
ASLOGDIR="Log" 
ASBACKUPDIR="Backup" 
ASTEMPDIR="Temp" 
ASCONFIGDIR="Config" 
ASPROVIDERMSOLAP="1" 
SQLSVCSTARTUPTYPE="Automatic" 
FILESTREAMLEVEL="0" 
ENABLERANU="True" 
SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS" 
SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" 
SQLSYSADMINACCOUNTS="DOMAIN\Administrator" 
ADDCURRENTUSERASSQLADMIN="False" 
TCPENABLED="0" 
NPENABLED="0" 
BROWSERSVCSTARTUPTYPE="Disabled" 
RSSVCSTARTUPTYPE="Automatic" 
RSINSTALLMODE="FilesOnlyMode"