problem in silent install sql server express sp1 - Advanced Installer Community
meysam
Posts: 31
Joined: Fri Feb 27, 2015 11:23 am

problem in silent install sql server express sp1

hi
please help for silent installation sql server 2008 . i'm tired read guid of adv & micosodft
https://msdn.microsoft.com/en-us/librar ... .100).aspx
http://www.advancedinstaller.com/forums ... =5&t=27625

my scenario is :
1- setup client / server
2- in server dialog choose feature you want
3- if select SQL Server 2008 Express SP1 32 or 64 bit checkbox must install first sql and then exequte sql inline script
4- finish
--------------------
but there is error ODBC Connect; timeout execute and abrot installation. too sql not install. (there is screen shot this error in silent.zip attachment)
i think my configuration in (NO UI) working :
/q /ConfigurationFile="[Rastak_Dir]\MyConfigurationFile.INI"
because in during installation not appear sql ui . I guess the error from my condition of feature sql in Organization Tab can be or ConfigurationFile.ini OR sql condition connection.

PredefinedConnection condition :
( (&SQLServer2008R2E = 3) AND NOT (!SQLServer2008R2E = 3) ) OR ( (&SQLServer2008R2E_1 = 3) AND NOT (!SQLServer2008R2E_1 = 3) )
by this conditon must After completion of the installation sql, (Depending on your version target os) my sql scripts inline execute.


my condition used in feature sql 86 & 64 bit:
(VersionNT64) AND SERVERORCLIENT="RadioServer" AND SQLCHEK

(NOT VersionNT64) AND SERVERORCLIENT="RadioServer" AND SQLCHEK

update:
when install without condition (NO UI) in prerequisites everything in fine .Namely install sql manually and then scripts executed successfully.
/q /ConfigurationFile="[Rastak_Dir]\MyConfigurationFile.INI"
Attachments
ConfigurationFile.ini
configuration file generate by sql wizard.
(12.29 KiB) Downloaded 400 times
Rastak Setup.aip
project file
(63.43 KiB) Downloaded 513 times
silent.zip
screen shot from setting
(314.66 KiB) Downloaded 657 times
meysam
Posts: 31
Joined: Fri Feb 27, 2015 11:23 am

Re: problem in silent install sql server express sp1

i'm change this conditon to:
/ConfigurationFile="[Rastak_Dir]\MyConfigurationFile.INI"
after bulid with this condition , this message will appear.
Attachments
8.PNG
8.PNG (33.46 KiB) Viewed 8643 times
meysam
Posts: 31
Joined: Fri Feb 27, 2015 11:23 am

Re: problem in silent install sql server express sp1

all above error Solved

i find my problem but can't fixed this and that is parameter QUIET when "True" set sql server not install but when "False" set full ui sql appear and install manually. and finish successfully setup.

this list all parameter of ConfigurationFile.ini.
which parameter is require and which parameter is optional?
:?: : what is this value?
---------------------------------------------------------------------------------------------------
;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="Rastak"

; 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"

; 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"

; The directory for the extracted service pack files used to update the setup media.

PCUSOURCE="c:\ad3effda81e8d49e751ae50e9276\PCUSOURCE"


; 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 root installation directory for the WOW64 shared components.

INSTALLSHAREDWOWDIR="C:\Program Files (x86)\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="RASTAK"

; 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\SYSTEM"

; The name of the account that the Analysis Services service runs under.

ASSVCACCOUNT="NT AUTHORITY\SYSTEM"

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

ASSVCSTARTUPTYPE="Automatic"

; The collation to be used by Analysis Services.

ASCOLLATION="Arabic_CI_AS"

; The location for the Analysis Services data files.

ASDATADIR="C:\Program Files\Microsoft SQL Server\MSAS10_50.RASTAK\OLAP\Data"

; The location for the Analysis Services log files.

ASLOGDIR="C:\Program Files\Microsoft SQL Server\MSAS10_50.RASTAK\OLAP\Log"

; The location for the Analysis Services backup files.

ASBACKUPDIR="C:\Program Files\Microsoft SQL Server\MSAS10_50.RASTAK\OLAP\Backup"

; The location for the Analysis Services temporary files.

ASTEMPDIR="C:\Program Files\Microsoft SQL Server\MSAS10_50.RASTAK\OLAP\Temp"

; The location for the Analysis Services configuration files.

ASCONFIGDIR="C:\Program Files\Microsoft SQL Server\MSAS10_50.RASTAK\OLAP\Config"

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

ASPROVIDERMSOLAP="1"

; Specifies the list of administrator accounts that need to be provisioned.

ASSYSADMINACCOUNTS="PC\m.rahmani"

; 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="False"

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

SQLCOLLATION="SQL_Latin1_General_CP1256_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=" :?: "

; The default is Windows Authentication. Use "SQL" for Mixed Mode Authentication.

SECURITYMODE="SQL"

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

ADDCURRENTUSERASSQLADMIN="False"

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

TCPENABLED="1"

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

NPENABLED="0"

; Startup type for Browser Service.

BROWSERSVCSTARTUPTYPE="Automatic"

; Specifies which account the report server NT service should execute under. When omitted or when the value is empty string, the default built-in account for the current operating system.
; The username part of RSSVCACCOUNT is a maximum of 20 characters long and
; The domain part of RSSVCACCOUNT is a maximum of 254 characters long.

RSSVCACCOUNT="NT AUTHORITY\SYSTEM"

; 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="DefaultNativeMode"

; Add description of input argument FTSVCACCOUNT

FTSVCACCOUNT="NT AUTHORITY\LOCAL SERVICE"
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: problem in silent install sql server express sp1

Hello,

Can you please enable the "Run as administrator" option from "Install Parameters" page, rebuild the project and test again the prerequisite installation when the "QUIET" switch is set to "True" and see if this helps?

Also, the "SQLSYSADMINACCOUNTS" switch can be used to declare the Windows accounts which will have the SQL Server system administrator role.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
meysam
Posts: 31
Joined: Fri Feb 27, 2015 11:23 am

Re: problem in silent install sql server express sp1

Can you please enable the "Run as administrator" option from "Install Parameters" page, rebuild the project and test again the prerequisite installation when the "QUIET" switch is set to "True" and see if this helps?

Also, the "SQLSYSADMINACCOUNTS" switch can be used to declare the Windows accounts which will have the SQL Server system administrator role.
thank you daniel

i'm Solved this problem with this way:

change condition to :
/q /ConfigurationFile="[SourceDir]\resource\SQL Server 2008 Express SP1 64\ConfigurationFile.ini"
and by this article clear all optional parameter i don't need this :
https://msdn.microsoft.com/en-us/librar ... .100).aspx

and by this article custom my ConfigurationFile.ini :
http://www.codeproject.com/Articles/113 ... nt-Install

file attachment is my ConfigurationFile.ini than is correct .

finally i'm very happy :)

best regards
meysam
Attachments
ConfigurationFile.ini
i'm hope helpfully for other user ADV.
(1.95 KiB) Downloaded 414 times
Last edited by meysam on Wed Mar 11, 2015 12:15 pm, edited 1 time in total.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: problem in silent install sql server express sp1

You're welcome Meysam. I'm glad you sorted things out.

Thank you for sharing your solution with us. Certainly this will be useful for future users in the same situation.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”