How to Silently Install SQL Server 2008 Express In InstallShield 2010 - sql-server-2008-express

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/

Related

The specified value 'Install' is invalid SQL Server 2014 Service Pack 1

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

Silent Install of SQL Server Express 2012 from Inno Setup

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

SQL Server 2008 Express Prerequisite fails

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.

SQL Server 2008 installed, though running version is still 2005

A while back I installed SQL Server 2008 on a development machine which already had Sql Server 2005 express from Visual Studio. When I look in my programs, I see 'Microsoft Sql Server 2008', which contains the management studio, etc. As well I can see 'MS Sql Server 2005'.
When I run a query in Management Studio 2008 to select the version running on my machine, it comes up as 2005, and leaves me scratching my head. When I look in the configuration manager, all I see is the SQLEXPRESS instance running ...
Are there any "quick" solutions to get 2008 running instead of 2005, considering 2008 is installed?
If your using the SQL Server 2005 Configuration Manager you will only see 2005 instances and lower.
To view instances of SQL Server 2008 you will want to make sure you are using SQL Sever 2008 Configuration Manager.
The final option would be to View All services using the Service Control Manager. Here you will need to look at what instances of SQL Server you have running on the machine.
If you want to find all the instance names, one way is to run powershell and execute the following
PS C:\> gwmi win32_service -filter "name like 'MSSQL%'" | fl DisplayName, pathname
For me the result is
DisplayName : SQL Server (SQLEXPRESS)
pathname : "c:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\B
inn\sqlservr.exe" -sSQLEXPRESS
DisplayName : SQL Server (SQLEXPRESS2005)
pathname : "c:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Binn\sqlserv
r.exe" -sSQLEXPRESS2005
DisplayName : SQL Full-text Filter Daemon Launcher (MSSQLSERVER)
pathname : "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\
Binn\fdlauncher.exe" -s MSSQL10.MSSQLSERVER
DisplayName : SQL Server (MSSQLSERVER)
pathname : "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\
Binn\sqlservr.exe" -sMSSQLSERVER
DisplayName : SQL Server Active Directory Helper
pathname : "c:\Program Files\Microsoft SQL Server\90\Shared\sqladhlp90.exe"
DisplayName : SQL Active Directory Helper Service
pathname : "C:\Program Files\Microsoft SQL Server\100\Shared\SQLADHLP.EXE"
DisplayName : SQL Server Analysis Services (MSSQLSERVER)
pathname : "C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\bi
n\msmdsrv.exe" -s "C:\Program Files\Microsoft SQL Server\MSAS10.M
SSQLSERVER\OLAP\Config"
Look for the one that has MSSQL10 and make sure that the service is started. Then use that instance name when connecting via SSMS.
If for some reason you didn't install into the default structure you can always visit the Exe directly and check its version for something like 2007.100.xxx
I happen to have 2005 and 2008 express as well as 2008 standard
If I was better at PowerShell I would have piped the PathName to get the version info

Change SQL Server 2005 Server Collation

I need to set up an instance of SQL Server 2005 with SQL_Latin1_General_CP850_Bin as the server collation (the vendor did not take into accounting looking at DB collation for a bunch of things so stored procedures and temp tables default to the server level and the default collation will not work). During the install for SQL Server it did not give that as an option so I left it at default and finished installing it.
According to MSDN and Technet I should need to just run the following command:
setup.exe /q /ACTION=RebuildDatabase /INSTANCENAME=MSSQLSERVER /SAPWD="sa-pwd" /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /SqlCollation=SQL_Latin1_General_CP1_CI_AI
However, whenever I run the above command with my parameters I get the pop-up of the SQL Server installation wizard, accept the agreement, and then it gives me output stating how to use the command.
Any idea what I can do?
I think you're looking at instructions for SQL Server 2008.
See the article here for instructions for 2005.
If possible, I would uninstall and reinstall rather than trying to change it. Changing it without re-installing is not a simple process. To change from the default during install, just uncheck the "Hide advanced configuration options" check box on the Registration Information screen; doing that will give you a Collation Settings option about 4 screens later in the install.