Skip to content

Instantly share code, notes, and snippets.

@msabramo
Created March 27, 2015 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msabramo/d3b7bc49b1f2414e372d to your computer and use it in GitHub Desktop.
Save msabramo/d3b7bc49b1f2414e372d to your computer and use it in GitHub Desktop.
Error installing MsSqlServer2012Express on Hyper-V Server with Chocolatey
C:\Program Files\Microsoft SQL Server\110>choco install -y mssqlserver2012express
Chocolatey (v0.9.8.33) is installing 'mssqlserver2012express' and dependencies.
By installing you accept the license for 'mssqlserver2012express' and each dependency you are installing.
MsSqlServer2012Express v11.00.3000.20140928
Downloading SqlServer2012Express 64 bit
from 'http://download.microsoft.com/download/5/2/9/529FEF7B-2EFB-439E-A2D1-A1533227CD69/SQLEXPRWT_x64_ENU.exe'
Installing SqlServer2012Express...
Write-Error : [ERROR] Running C:\Users\ADMINI~1\AppData\Local\Temp\1\chocolatey
\SqlServer2012Express\SqlServer2012ExpressInstall.exe with /q /INDICATEPROGRESS
/ACTION=Install /FEATURES=SQL,Tools /TCPENABLED=1 /INSTANCENAME=SQLEXPRESS /SQ
LSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="BUILTIN\Admini
strators" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENS
ETERMS was not successful. Exit code was '-2067922334'.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:46 char:5
+ Write-Error $errorMessage
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error
Write-Error : SqlServer2012Express did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] [ERROR] Running C:\Users\ADMINI~1\AppData\Local\Temp\1\chocolatey\SqlSe
rver2012Express\SqlServer2012ExpressInstall.exe with /q /INDICATEPROGRESS /ACTI
ON=Install /FEATURES=SQL,Tools /TCPENABLED=1 /INSTANCENAME=SQLEXPRESS /SQLSVCAC
COUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="BUILTIN\Administrato
rs" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENSETERMS
was not successful. Exit code was '-2067922334'.
-----------------------
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:3
+ Write-Error $errorMessage
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error
Write-Error : Package 'MsSqlServer2012Express v11.00.3000.20140928' did not install successfully: [ERROR] Running C:\Users\ADMINI~1\AppData\Local\Temp\1\chocolatey\SqlServer2012Express\SqlServer2012ExpressInstall.exe with /q /INDICATEPROGRESS /ACTION=Install /FEATURES=SQL,Tools /TCPENABLED=1 /INSTANCENAME=SQLEXPRESS /SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="BUILTIN\Administrators" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENSETERMS was not successful. Exit code was '-2067922334'.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:17
+ Write-Error "Package `'$installedPackageName v$installedPackageV ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error
Finished installing 'mssqlserver2012express' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment