Hi all,

I am trying to deploy SQL server. I used the command line method to install the app 

exe /QS /ACTION=INSTALL / Features=BIDS,CONN

The application asks for a reboot in between the installtion, and I need to install the exe again with the same command line after the reboot for the installation to complete .

Is there a way I can work with this. how will users install the first time, and then reboot and then install again for the SQL Server

Thanks

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

Make sure you're on SQL Server 2008 R2, Try this: 

- Run the setup.exe

- On Installation Tab> New Installation

- Go through the Wizard by Entering the product key, accept license, install setup support files and select all the features that you need. 

- Until you reach the 'Ready to Install' page, look below for the ConfigurationFile.ini path, copy this file and paste in your local folder or a network share where you want to run UNATTENDED installation. 

- Now, cancel this current installation and Edit this ConfigurationFile.ini

Set the following parameters: 

QUIET="True"

SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"

PID="Product License Key"

IACCEPTSQLSERVERLICENSETERMS="True"

==================================

ADDCURRENTUSERASSQLADMIN - delete this line

UIMODE - delete this line

INSTALLSHAREDDIR - delete this line

INSTALLSHAREDWOWDIR - delete this line

INSTANCEDIR - delete this line

==================================

FEATURES= (select your features here - http://msdn.microsoft.com/en-us/library/ms144259.aspx#Feature)

 

- Create a batch file, SilentInstallSQL2008R2.bat, with the following parameters: 

@ECHO off

echo Installing SQL Server 2008 R2

date/t

time /t

"<path to SQL setup folder>\setup.exe" /ConfigurationFile="<path to config file>"

date/t

time /t

 

Answered 04/18/2012 by: Aaron Cool
Red Belt

Please log in to comment
1

Thanks for the reply. I tried that.
I still have the same issue. When I run the command prompt as you mentioned. In the same command prompt it says
"one of the prerequisites installed requires a reboot. Restart the computer and rerun the SQL Server 2008 R2 setup inorder to continue. SQL server 2008 R2 software pre-requisites have been installed and require a restart"

Please advice

Answered 04/18/2012 by: shamu99
Fifth Degree Brown Belt

  • Is there a way I can suppress the reboot. and run the installation.
  • 1) if pre-req is giving reboot command then first suppress in the pre-req, isolate it from the SQL Server.
    2) TRY Passing the Property REBOOT=ReallySuppress
Please log in to comment
0

I was able to install now, without the reboot in between the install. It was updating the windows installer and then initiated for a reboot on a clean machine.

But even after I use the the silent keys QS, there is a window open showing the installtion.It not a interactive screen though, where I need to click next - next. Still the installtion progress is seen.

Is there a key to make it completely silent.

Answered 04/19/2012 by: shamu99
Fifth Degree Brown Belt

  • ;SQLSERVER2008 Configuration File
    [SQLSERVER2008]

    ; Specify the Instance ID for the SQL Server features you have specified. SQL Server directory structure, registry structure, and service names will reflect the instance ID of the SQL Server instance.

    INSTANCEID="SQLExpress"

    ; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.

    ACTION="Install"

    ; Specifies features to install, uninstall, or upgrade. The list of top-level features include SQL, AS, RS, IS, and Tools. The SQL feature will install the database engine, replication, and full-text. The Tools feature will install Management Tools, Books online, Business Intelligence Development Studio, and other shared components.

    FEATURES=SQLENGINE,REPLICATION,SSMS,SNAC_SDK

    ; Displays the command line parameters usage

    HELP="False"

    ; Specifies that the detailed Setup log should be piped to the console.

    INDICATEPROGRESS="False"
    IAcceptSQLServerLicenseTerms="True"
    ; Setup will not display any user interface.

    QUIET="False"

    ; Setup will display progress only without any user interaction.

    QUIETSIMPLE="TRUE"

    ; Specifies that Setup should install into WOW64. This command line argument is not supported on an IA64 or a 32-bit system.

    X86="False"

    ; Detailed help for command line argument ROLE has not been defined yet.

    ROLE="AllFeatures_WithDefaults"

    ; Detailed help for command line argument ENU has not been defined yet.

    ENU="True"

    ; Parameter that controls the user interface behavior. Valid values are Normal for the full UI, and AutoAdvance for a simplied UI.

    ;UIMODE="Normal"

    ; Specify if errors can be reported to Microsoft to improve future SQL Server releases. Specify 1 or True to enable and 0 or False to disable this feature.

    ERRORREPORTING="False"

    ; Specify the root installation directory for native shared components.

    INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server"

    ; Specify the installation directory.

    INSTANCEDIR="C:\Program Files\Microsoft SQL Server"

    ; Specify that SQL Server feature usage data can be collected and sent to Microsoft. Specify 1 or True to enable and 0 or False to disable this feature.

    SQMREPORTING="False"

    ; Specify a default or named instance. MSSQLSERVER is the default instance for non-Express editions and SQLExpress for Express editions. This parameter is required when installing the SQL Server Database Engine (SQL), Analysis Services (AS), or Reporting Services (RS).

    INSTANCENAME="SQLEXPRESS"

    ; Agent account name

    AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"

    ; Auto-start service after installation.

    AGTSVCSTARTUPTYPE="Disabled"

    ; Startup type for Integration Services.

    ISSVCSTARTUPTYPE="Automatic"

    ; Account for Integration Services: Domain\User or system account.

    ISSVCACCOUNT="NT AUTHORITY\NetworkService"

    ; Controls the service startup type setting after the service has been created.

    ASSVCSTARTUPTYPE="Automatic"

    ; The collation to be used by Analysis Services.

    ASCOLLATION="Latin1_General_CI_AS"

    ; The location for the Analysis Services data files.

    ASDATADIR="Data"

    ; The location for the Analysis Services log files.

    ASLOGDIR="Log"

    ; The location for the Analysis Services backup files.

    ASBACKUPDIR="Backup"

    ; The location for the Analysis Services temporary files.

    ASTEMPDIR="Temp"

    ; The location for the Analysis Services configuration files.

    ASCONFIGDIR="Config"

    ; Specifies whether or not the MSOLAP provider is allowed to run in process.

    ASPROVIDERMSOLAP="1"

    ; A port number used to connect to the SharePoint Central Administration web application.

    FARMADMINPORT="0"

    ; Startup type for the SQL Server service.

    SQLSVCSTARTUPTYPE="Automatic"

    ; Level to enable FILESTREAM feature at (0, 1, 2 or 3).

    FILESTREAMLEVEL="0"

    ; Set to "1" to enable RANU for SQL Server Express.

    ENABLERANU="True"

    ; Specifies a Windows collation or an SQL collation to use for the Database Engine.

    SQLCOLLATION="Latin1_General_CI_AS"

    ; Account for SQL Server service: Domain\User or system account.

    SQLSVCACCOUNT="NT AUTHORITY\SYSTEM"

    ; Windows account(s) to provision as SQL Server system administrators.

    SQLSYSADMINACCOUNTS=""

    ; Provision current user as a Database Engine system administrator for SQL Server 2008 R2 Express.

    ADDCURRENTUSERASSQLADMIN="True"

    ; Specify 0 to disable or 1 to enable the TCP/IP protocol.

    TCPENABLED="0"

    ; Specify 0 to disable or 1 to enable the Named Pipes protocol.

    NPENABLED="0"

    ; Startup type for Browser Service.

    BROWSERSVCSTARTUPTYPE="Disabled"

    ; Specifies how the startup mode of the report server NT service. When
    ; Manual - Service startup is manual mode (default).
    ; Automatic - Service startup is automatic mode.
    ; Disabled - Service is disabled

    RSSVCSTARTUPTYPE="Automatic"

    ; Specifies which mode report server is installed in.
    ; Default value: “FilesOnlyâ€

    RSINSTALLMODE="FilesOnlyMode"


    copy this whole and put in "ConfigurationFile.ini"
    and run below command

    setup.exe" /ConfigurationFile=ConfigurationFile.ini
Please log in to comment
Answer this question or Comment on this question for clarity