I am trying to install SQL Server 2012 Express SP1 via the command line, however it just quietly fails, no error messages. Can anyone help?
Here are the commands I'm using.
c:\>sqlexpr32_x86_enu.exe /QS /IACCEPTSQLSERVERLICENSETERMS
/ACTION=Install /ROLE=AllFeatures_WithDefaults /ENU
/UpdateEnabled=1 /UpdateSource=MU
/FEATURES=SQLENGINE,REPLICATION
/INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server"
/INSTANCENAME=SQLEXPRESS /INSTANCEID=SQLEXPRESS
/INSTANCEDIR="C:\Program Files (x86)\Microsoft SQL Server"
/AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"
/AGTSVCSTARTUPTYPE=Automatic /SQLSVCSTARTUPTYPE=Automatic
/BROWSERSVCSTARTUPTYPE=Automatic /ENABLERANU
/SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS"
/SQLSVCACCOUNT="NT Service\MSSQL$SQLEXPRESS"
/SECURITYMODE=SQL /SAPWD="P#ssword1"
/ADDCURRENTUSERASSQLADMIN /TCPENABLED=1 /NPENABLED=1
Related
I have a project that installs an SQL server using a command line string. The string worked fine of SQL Server 2012 Express but now I am trying the same string using SQL Server 2014 Express Service Pack 1 and the installation fails and I receive this error in the summary log.
My command:
SQLServer2014SP1-KB3058865-x64-ENU.EXE /qs /ACTION=Install
/FEATURES=SQL /INSTANCENAME="CLIMET01"
/SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"
/SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"
/TCPENABLED="1" /IACCEPTSQLSERVERLICENSETERMS
Error:
The specified value 'Install' is invalid. To run in unattended mode, you must specify a valid ACTION. The valid values for ACTION are: ' None RemovePatch Uninstall Install Upgrade Patch Repair LandingPage ClusterReport RunRules PrepareFailoverCluster CompleteFailoverCluster InstallFailoverCluster RemoveNode AddNode EditionUpgrade Bootstrap ComponentUpdate Help RebuildDatabase RunDiscovery PrepareImage CompleteImage ConfigureImage'
HResult : 0x858c000d
FacilityCode : 1420 (58c)
ErrorCode : 13 (000d)
Data:
SQL.Setup.FailureCategory = InputSettingValidationFailure
actionValue = Install
Any ideas? Thank you!
You are not installing SQL Server Express but a service pack "upgrade package", hence Install is probably invalid. Try using Upgrade or Patch
See: https://www.microsoft.com/en-us/download/details.aspx?id=46694
Microsoft SQL Server 2014 SP1 Update - this package contains the
Microsoft SQL Server 2014 Service Pack 1 update to be applied to
existing SQL Server 2014 installations.
See also: https://blogs.msdn.microsoft.com/samlester/2015/05/26/sql-server-2014-service-pack-1-unattended-setup-error-the-specified-value-upgrade-is-invalid/
Try this link for installation files:
https://www.microsoft.com/en-us/download/details.aspx?id=53167
I am trying to create a .bat file to install SQL Server 2014 Express silently, and with my own options, but each time it runs, it quits in the middle.
Here is my command:
C:> SQLEXPR_x86_EN /ACTION=Install /QS /BROWSERSVCSTARTUPTYPE=Automatic
/ADDCURRENTUSERASSQLADMIN=True /IACCEPTSQLSERVERLICENSETERMS
/FEATURES=SQLEngine /SQLSVCSTARTUPTYPE=Automatic
/INSTANCENAME="MX_SERVER_SQL" /NPENABLED=1 /TCPENABLED=1
/AGTSVCACCOUNT="NT AUTHORITY\Network Service"
/SQLSVCACCOUNT="NT AUTHORITY\Network Service"
/SQLSYSADMINACCOUNTS=BUILTIN\Administrators /SECURITYMODE=SQL
/SAPWD=My_123456
Why does it not run to the end?
ERROR > The installation starts but somewhere after start to load the files it quits and stops the installation and nothing installed
It didn't run to the end because it probably encountered a failure during setup! To diagnose setup failures, look at the setup log files.
Specifically, file path %programfiles%\Microsoft SQL Server\120\Setup Bootstrap\Log.
based on your sa password i would think it doesn't meet server complexity requirements.
I am trying to install SQL Server Express 2012 silently from my application installer created using Inno Setup. When running the following command from the command line, SQL Server Express 2012 is installed as I want only showing progress of the install but not allowing the user to enter any input.
Command line command that works:
C:\Users\Jason\Desktop>SQLEXPR_x86_ENU.exe /ACTION=Install /INSTANCENAME=MYINSTANCE /INSTANCEID=MYINSTANCE /QS /HIDECONSOLE /INDICATEPROGRESS="False" /IAcceptSQLServerLicenseTerms /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtin\administrators" /SKIPRULES="RebootRequiredCheck"
In order to do this from my Inno Setup script I have the following code:
Exec(installName,
'/ACTION=Install /INSTANCENAME=MYINSTANCE /INSTANCEID=MYINSTANCE /QS /HIDECONSOLE /INDICATEPROGRESS="False" /IAcceptSQLServerLicenseTerms /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtin\administrators" /SKIPRULES="RebootRequiredCheck"',
'',
SW_SHOW,
ewWaitUntilTerminated,
ResultCode);
where installName = SQLEXPR_x86_ENU.exe
When run from the Installer the SQL Server Express 2012 installer starts but after the first information dialog it then shows the SQL Server Installation Center window and the user has to select the type of installation before the installer continues. They also have to agree to the license agreement which was not required when running directly from the command line.
Any ideas on how to run the installer silently from Inno Setup?
change from "BUILTIN\Administrators" to "BUILTIN\Users" will be fine.
The problem is probably with passing command line params to SQLEXPR_x86_ENU.exe
If you run extracted SQL setup.exe with your command linie all should be OK. But if you pass a command line through SQLEXPR_x86_ENU.exe it first extracts installer and then runs it with modified command line - one pair of quotation marks "" is removed (or rather it passes only first string as params). That's why whole command line params for setup.exe should be placed in additional quotation marks ""
Your command line should looks like this one (starts with ' and " and finishes with " and'):
'"/ACTION=Install /INSTANCENAME=MYINSTANCE /INSTANCEID=MYINSTANCE /QS /HIDECONSOLE /INDICATEPROGRESS="False" /IAcceptSQLServerLicenseTerms /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtin\administrators" /SKIPRULES="RebootRequiredCheck""'
I have an application which has SQL Server 2008 Express as a prerequisite.
The installation fails in Windows 8 Pro however with the following error message:
Installing using command
'C:\Users\Ranjith\AppData\Local\Temp\VSD26C2.tmp\SqlExpress2008\SQLEXPR32_x86_ENU.EXE'
and parameters '/q /hideconsole /action=Install /features=SQL
/instancename=SQLEXPRESS /enableranu=1 /sqlsvcaccount="NT
Authority\Network Service" /AddCurrentUserAsSqlAdmin
/skiprules=RebootRequiredCheck' Process exited with code -2068643839
Status of package 'SQL Server 2008 Express' after install is
'InstallFailed'
What does the exit code -2068643839 mean?
NOTE: Tried posting in social.msdn.microsoft.com with not much responses.
I use InstallShield 2010 to create my setup.
My program needs SQL Server 2008 Express. So I added "Microsoft SQL Server 2008 Express SP1 (x86)" in the redistributables section.
Then in "Edit Prerequisites" => "Application To Run" tab, I insert this statement in a textbox:
SQLEXPR32_x86_ENU.exe /qs /ACTION=Install /FEATURES=SQLENGINE /INSTANCENAME=MSSQLSERVER
/SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /SQLSVCPASSWORD="YesYes"
/SQLSYSADMINACCOUNTS="Builtin\Administrators"
/AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENSETERMS=true
http://i46.tinypic.com/a0a343.jpg
But when I run the setup, after some minutes I see this message and SQL Server 2008 Express isn't installed.
http://i50.tinypic.com/2krcr9.jpg
Now how can I completely install SQL Server 2008 Express in silent mode?
[UPDATE]
Problem Solved:
I Do 3 Steps To Solved My Problem:
1- Restart My Computer
2- Delete "/IACCEPTSQLSERVERLICENSETERMS=true" From Statement
3 - Delete /SQLSVCPASSWORD="YesYes" From Statement
I am not sure /IACCEPTSQLSERVERLICENSETERMS requires a boolean value at all?... I just include the statement, without a parameter value and it works.
After several hour trying,I have done it:
1.In InstallShield2010,Go to:"Installation Designer" Tab->Application Data->Redistributable
2.Find the “Microsoft SQL Server 2008 Express SP1 (x86 & x64Wow)” from the list and right click on it and click on "Edit Prerequisite" .
3.In “Application to Run” write:
/qs /INSTANCEID=”SQLEXPRESS” /ACTION=”Install” /FEATURES=SQLENGINE /INSTANCENAME=”SQLEXPRESS” /SQLSVCACCOUNT=”NT AUTHORITY\SYSTEM” /SQLSYSADMINACCOUNTS=”Builtin\Administrators” /ADDCURRENTUSERASSQLADMIN
in “Specify command line for the application”.
For more information,Please take a look at:
http://www.hadirobati.com/wpEn/silent-install-of-sql-server-2008-express-in-installshield/