SQL Express not upgrading to 2014

Got a problem you cannot solve? Try here.
stevenosmith
Posts: 3
Joined: Thu Jul 21, 2016 2:31 pm

SQL Express not upgrading to 2014

Postby stevenosmith » Wed Jul 27, 2016 1:46 pm

I've included SQL Express 2014 (x86 and x64 WOW) in my application runtimes. But my customer reports that when running the install on a Win 7 64-bit computer with SQL Express 2005, it doesn't upgrade. I'm able to replicate the issue on a computer at the office. Looking at the checksql2014sp1_x86 script, I see the line Check Service State for MSSQL$SQLEXPRESS, which translates into this.

Code: Select all

~Check Service~
~{2CF1450E-2C25-4285-9461-C7B749878585}~
~MSSQL$SQLEXPRESS~
~~
~MSSQL2014_X86~

From here, I'm guessing, but I don't see the 2CF... string in the registry. And if I run sc.exe query in a DOS window, it does show the MSSQL$SQLEXPRESS service as running.

Any thoughts how I can get 2005 to upgrade to 2014?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: SQL Express not upgrading to 2014

Postby FrancescoT » Thu Jul 28, 2016 9:33 am

Dear Steve,

by "default" any version of MS SQL RTMs included with an IA project, to determine if the this has to be installed, it checks if the default MS SQL instance name (MSSQL$SQLEXPRESS) is running on the target machine.

InstallAware uses two MSIcode scripts to check for and to install your desired technology prerequisite. More specifically these consist on a "checkxxx" and "setupxxxx" scripts (where the "x" characters reflect the name of the specific application Runtime).

More specifically and for what concerns "Microsoft SQL Server Express 2014 sp1, the checksql2014sp1_x86 script includes the following code line to determine if the RTM has to be installed.

Code: Select all

Check Service State for MSSQL$SQLEXPRESS (write result into variable MSSQL2014_X86)

Due of the this and to solve your issue you may use a unique "instance name" to identify your MS Sql installation, for example; MYCUSTOMINSTANCE.

Consequently you may use the approach described by the following steps;

1- replace with your custom instance name, the default instance name used by the "Check Service State" statement in the checksql2014sp1_x86 script.

Note that MS SQL uses the form "MSSQL$" + "INSTANCE_NAME" for the service name that belongs to an instance. So supposing your instance name is "MYCUSTOMINSTANCE", the "Check Service State" statement should be;

Code: Select all

Check Service State for MSSQL$MYCUSTOMINSTANCE (write result into variable MSSQL2014_X86)

Code: Select all

~InstallAware Clipboard Data~
~Check Service~
~{2CF1450E-2C25-4285-9461-C7B749878585}~
~MSSQL$MYCUSTOMINSTANCE~
~~
~MSSQL2014_X86~

2- replace with your custom instance name, the default instance name used to install "Microsoft SQL Server Express 2014 sp1". This is defined with the "MSSQL2014_COMMAND_LINE_X86" variable in the "setupsql2014sp1_x86" script. For example;

Code: Select all

Set Variable MSSQL2014_COMMAND_LINE_X86 to /q /ACTION=Install /FEATURES=SQL,SDK /INSTANCENAME="MYCUSTOMINSTANCE" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /SAPWD="Sq1S#rv$r"/SQLSVCPASSWORD="Sq1C#ep$q" /SQLSYSADMINACCOUNTS="$SQL_COMPUTER_NAME$\$SQL_USER_NAME$" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IAcceptSQLServerLicenseTerms


Furthermore, I suggest you to have a look at the "Enumerate MS SQL Instances sample" from;
http://www.installaware.com/forums/viewtopic.php?f=2&t=6772.
You may also use the approach described by the above sample, to determine if a specific MS Sql Instance name is available with the target machine.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

stevenosmith
Posts: 3
Joined: Thu Jul 21, 2016 2:31 pm

Re: SQL Express not upgrading to 2014

Postby stevenosmith » Thu Jul 28, 2016 3:56 pm

Separate instance works great. Thanks!!

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: SQL Express not upgrading to 2014

Postby FrancescoT » Fri Jul 29, 2016 12:53 pm

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 183 guests