Unspecified error while installing sql server management studio 2012.

HI,
I am trying to install microsoft sql server 2012 service pack 1 management studio express. Its throwing "unspecified error".
I am using "sqlmanagementstudio_x64_ENU.exe". Iam using .net framework 3.5.1.
Repies will be appreciated.
Thanks,
Rakesh.

Hello,
I have seen in the past that error and is generally related to remnants
from previous installations of SQL Server. Manually uninstalling the remnants may help as explained on the following resources:
https://connect.microsoft.com/SQLServer/feedback/details/552350/cannolt-install-sql-server-2008-database-engine-reporting-services-and-bids-en-windows-7-ultimate-64-bit
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2890e27c-2848-440c-a755-bb2a81769b5b/sql2008-developer-instalation-fails-on-my-laptop-with-window-7-ultimit-x64?forum=sqlsetupandupgrade
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • Unable to install SQL Server Management Studio 2012

    Hi ,
    I was trying to install MS SQL Server Manager on Server 2012 R2 and I was facing an issue while doing so.
    Please find the attached screenshot for the same.
    Need help ASAP.
    Thanks

    Hi Mahesh,
    Could you please install the Microsoft Windows Software Development Kit (SDK) as dave’s post? Below is the download link for the latest release of SDK.
    https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Error while installing SQL Server 2012 X64 SP2,

    Error while installing SQL Server 2012 X64 SP2,
     When I installed the SQL Server 2012 X64 SP1, I got the attached error.
     What might be the issue here?
     Thank you
     Best
    Jamal

    Hello,
    Are you trying to install SQL Server on a compressed or encrypted drive? SQL Server won’t install on a drive/folder with these attributes.
    Are you trying to install SQL Server on a ReFS file system? It is not supported on SQL Server 2012.
    Disable any security/antivirus software and download the media again. Mount the media (.ISO file) and try to install again.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Getting error while installing sql server std 2008 R2 on win 7 prof. sp1 64bit

    Hi,
    I am getting error while installing sql server std 2008 R2 on win 7 prof. sp1 64bit. I have already tried all option but fail to installation
    an error during the installation of assembly micro soft.vc80.crt

    Hi,
    I am getting error while installing sql server std 2008 R2 on win 7 prof. sp1 64bit. I have already tried all option but fail to installation
    an error during the installation of assembly micro soft.vc80.crt
    Can you please post summary.txt file here.Below link will help you in finding it.
    http://technet.microsoft.com/en-us/library/ms143702(v=sql.105).aspx
    Also with error you posted I guess it is a known issue .You need to install below package and then continue with fresh installation
    http://www.microsoft.com/en-gb/download/details.aspx?id=15336
    Please make sure before beginning fresh installation you make sure previous failed installation is removed completely.Use add remove program to remove failed SQL Server.If yu still face issue please post summary.txt file here
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Error while installing SQL Server 2008 R2 in Windows 7 SP1 machine

    Hi Team,
    Error while installing SQL Server 2008 R2 in Windows 7 SP1 machine. I can confirm this machine has .Net
    Feature enabled and with Latest version.
    TITLE: Microsoft SQL Server 2008 R2 Setup
    The following error has occurred:
    Error 25541.Failed to open XML file C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config, system error: -2147024786
    Regards,
    Muthukumar.S.P.

    Hi,
    Can you follow workaround mentioned in below msdn blog
    http://blogs.msdn.com/b/astebner/archive/2007/11/01/5826719.aspx
    As per the blog you have to open the msi log files which must be located at
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log
    In MSI log files search for the error mentioned in blog. Below link will help you read setup log files
    http://msdn.microsoft.com/en-gb/library/ms143702%28v=sql.105%29.aspx
    PS: Please read links carefully and patiently and if it does not solves issue please post summary.txt file and details.txt file on skydrive for analysis
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • Error While Installing SQL SERVER 2012 on Windows Serrver 2012 R2

    I encounter the following errors while installing SQL SERVER on Windows SERVER 2012 R2, can anybody help me out?
    dotdazzle

    If you are using any system account then password is not needed. From the screenshot I see NT Authority\....  so you don't need password.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Impossible to open .dtproje file after re-installing SQL Server Management Studio

    Hi all,
    today, after re-installing SQL Server Management Studio from a package downloaded from MS web site (SQLManagementStudio_x64_FRA.exe), I tried to open a SSIS package file via Visual Studio and I get a message stating that  this type of project (.dtproj)
    is not supported.
    Here are the events that lead to this problem:
    We have SQL Server 2005 installed on a server and are planning to migrate to SQL Server 2012.
    1 - Earlier this year, to solve a problem that we had with the SSMS client, we installed SSMS 2012 client on my station.
    At this point, it worked fine for SSMS and when I tried to access SSIS it converted the packages  to SSIS 2012 and it worked fine too.
    2 - Yesterday, I tried to access SSMS and I had the message that the test period had expired; at this point I could open a SSIS file.
    3 - To solve the problem with SSMS we decided to re-install it. It worked fine for SSMS but now I am not able to open a SSIS file.
    Do you have any idea of what the problem is and what should I do to solve it?
    It seems that there are some SSIS component missing, how could I get them back?

    You are welcome Sylviep,
    Based on what I see you want to create BI projects (e.g. a SSIS project), thus it will be enough to install SSDT
    which is part of the SQL Server installation media. I do not see why you would re-install SQL Server itself.
    Arthur My Blog

  • SQL Server Management Studio 2012

    Hi Team,
    I have installed trial version of SQL Server management Studio 2012 .Initially I was able to connect to SQL Server Management Studio ,then after I have installed Visual Studio 2013 for web (trial version).Two days later ,On trying to open SQL Server Management
    Studio ,It shows an error that says "Invalid License Data,Reinstall is required ".
    Even on reinstalling with new set of downloaded files ,I could face the same issue .
    Kindly give appropriate solution to resolve this issue .
    OS:Windows 8 (64 bit )

    Please see this url:
    SQL 2012 - Invalid License Data
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • Error installing SQL Server Management Studio Express on Windows Vista RC1

    Hello NG,
    After installing SQL Server 2005 Express Edition on Windows Vista RC1, I wanted to install also the Managent Studio but I always receive the following error message:
    "Bei der Installation dieses Pakets ist ein unerwarteter Fehler aufgetreten. Es liegt eventuell ein das Paket betreffendes Problem vor. Der Fehlercode ist 29506."
    Where can I find more infos about this error-code?
    Anybody knows this problem?
    Thank in advance for every help.

    Thanks Nilashis....
    It worked for me as well...cheers............ :)
    -Lalith

  • SETUP ERROR WHILE INSTALLING SQL SERVER 2008 R2

    Hi ,
    I'm coming across the following error while installing Microsoft SQL Server 2008R2
    SQL Server Setup has encountered the following error:
    The required MSI package 'D:\SQL Sever 2008 R2 Developer Edition\x86\setup\sql_engine_core_shared_msi\sql_engine_core_shared.msi' doesn't exist.
    Error code 0x84B20001.
    I tried reinstalling the same. But results the same.
    Please suggest. :)

    Overall summary:
      Final result:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
    rerun SQL Server Setup.
      Exit code (Decimal):           -2068709375
      Exit facility code:            1202
      Exit error code:               1
      Exit message:                  The required MSI package 'D:\softwares\SQL Sever 2008 R2 Developer Edition\x86\setup\sql_engine_core_shared_msi\sql_engine_core_shared.msi'
    doesn't exist.
      Start time:                    2013-12-31 20:47:50
      End time:                      2013-12-31 20:55:44
      Requested action:              Install
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\Detail.txt
      Exception help link:           http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.1600.1%26EvtType%3d0xD2FD83B3%400xC2B0B50B%401202%401
    Machine Properties:
      Machine name:                  SAMPLE-PC
      Machine processor count:       2
      OS version:                    Windows 7
      OS service pack:              
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x86
      Process architecture:          32 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      Sql Server 2005                                                         
    Tools                                    1033                
    Express Edition      9.2.3042        No       
      Sql Server 2005                                                         
    ToolsClient                              1033                
    Express Edition      9.2.3042        No       
      Sql Server 2005                                                         
    ToolsClient\Connectivity                 1033                 Express Edition     
    9.2.3042        No       
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             Database Engine Services                
    1033                 Express Edition      10.1.2531.0     No       
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             SQL Server Replication                  
    1033                 Express Edition      10.1.2531.0     No       
    Package properties:
      Description:                   SQL Server Database Services 2008 R2
      ProductName:                   SQL Server 2008 R2
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation location:         D:\softwares\SQL Sever 2008 R2 Developer Edition\x86\setup\
      Installation edition:          DEVELOPER
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      False
      AGTSVCACCOUNT:                 TEST
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Manual
      ASBACKUPDIR:                   C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Config
      ASDATADIR:                     C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  TEST
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            SAMPLE-PC\SAMPLE
      ASTEMPDIR:                     C:\Program Files\Microsoft SQL Server\MSAS10_50.TEST\OLAP\Temp
      BROWSERSVCSTARTUPTYPE:         Automatic
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\ConfigurationFile.ini
      CUSOURCE:                     
      ENABLERANU:                    False
      ENU:                           True
      ERRORREPORTING:                False
      FARMACCOUNT:                   <empty>
      FARMADMINPORT:                 0
      FARMPASSWORD:                  *****
      FEATURES:                      SQLENGINE,REPLICATION,FULLTEXT,AS,RS,BIDS,CONN,IS,BC,SDK,SSMS,ADV_SSMS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT AUTHORITY\LOCAL SERVICE
      FTSVCPASSWORD:                 *****
      HELP:                          False
      IACCEPTSQLSERVERLICENSETERMS:  False
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    TEST
      INSTANCENAME:                  TEST
      ISSVCACCOUNT:                  TEST
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      NPENABLED:                     0
      PASSPHRASE:                    *****
      PCUSOURCE:                    
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      ROLE:                          <empty>
      RSINSTALLMODE:                 DefaultNativeMode
      RSSVCACCOUNT:                  SAMPLE-PC\TEST
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 TEST
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           SAMPLE-PC\SAMPLE
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  False
      TCPENABLED:                    0
      UIMODE:                        Normal
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Full-Text Search
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Analysis Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Reporting Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Integration Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Client Tools Connectivity
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Management Tools - Complete
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Management Tools - Basic
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Client Tools SDK
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Client Tools Backwards Compatibility
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Business Intelligence Development Studio
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20131231_204629\SystemConfigurationCheck_Report.htm
    Exception summary:
    The following is an exception stack listing the exceptions in outermost to innermost order
    Inner exceptions are being indented
    Exception type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInvalidOperationException
        Message:
            The required MSI package 'D:\softwares\SQL Sever 2008 R2 Developer Edition\x86\setup\sql_engine_core_shared_msi\sql_engine_core_shared.msi' doesn't exist.
        Data:
          ChainerInvalidOperationExceptionData = InstallPackage
          DisableWatson = true
        Stack:
            at Microsoft.SqlServer.Configuration.SetupExtension.MsiInstallEngineActionBehavior.ModifyAction(String installedProductCode, String installedProductVersion, String pathOfPackageOnMedia, InstallAction pkgAction)
            at Microsoft.SqlServer.Configuration.SetupExtension.MSIInstallerEngine.InstallPackage(PackageId pkg, InstallAction pkgAction)
            at Microsoft.SqlServer.Configuration.MsiExtension.PackageInstallAction.Execute(String actionId, TextWriter errorStream)
            at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)

  • Error while installing SQL Server 2012 Express Edition

    Dear Experts,
    My system configuration is,
    Windows 7 Ultimate
    32 bit
    RAM 8 GB
    I7 Processor
    I am trying to installed Sql serve 2012 with tools version but not able to install.
    Its giving me error Like Value can not be null..
    I search every thing on google but not helps me.
    Please assist.
    Thanks,

    Hello,
    Try .NET Framework repair tool.
    https://support.microsoft.com/kb/2698555?wa=wsignin1.0
    Another possible solution can be found on the following URL.
    http://sqlserver-help.com/2012/07/23/help-getting-error-value-cannot-be-null-while-opening-management-studio-which-value/
    Please share with us the Summary.txt log file. Th following article may help you locate the file on disk.
    https://msdn.microsoft.com/en-us/library/ms143702(v=sql.110).aspx
    Make sure you have enabled .NET Framework 3.5 using Control Panel -> Programs and Features.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • NetFx3 error while installing SQL Server 2012 on windows 8 Pro

    I can't install SQL Server 2012 on my windows 8 Pro, every time I try I get this error: Error while trying to enable NetFx3 
    Can anyone help, please.

    Hi,
    Windows 8 does not include .NET 3.5 (include .NET 2.0 and 3.0) by default.
    1. We can make sure this feature is enabled by check in Program and Features.
    a. Go to Settings. Choose Control Panel then choose Programs.
    b. Click Turn Windows features on or off, and the user will see Windows feature window.
    c. You can enable this feature by click on .NET Framework 3.5 (include .NET 2.0 and 3.0) select it and click OK. After this step, it will download the entire package from internet and install the .NET Framework 3.5 feature.
    This option requires an Internet connection.
    2. As Alberto suggested, you can use the command to enable .NET Framework 3.5 (include .NET 2.0 and 3.0) feature in offline mode to avoid interruption before run SQL Server Setup.
    For your information:
    Installing the .NET Framework 3.5 on Windows 8 or 8.1
    http://msdn.microsoft.com/en-us/library/hh506443(v=vs.110).aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Error while installing SQL Server 2005 SP3

    I have installed SQL Server 2005 Standand Edition (32-bit) on a standalone server machine running
    Windows Server 2003 R2 Standard 64-bit with Service Pack 2. After installing SQL Server, when I tried installing the Service Pack 3 (as per application requirement) through local administrator account, I am repeatedly getting below error in
    "C:\Program Files (x86)\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\Redist9_Hotfix_KB955706_SqlSupport.msi.log"
    SECUREREPAIR: SecureRepair Failed. Error code: 4ec4E6A3388
    MSI (s) (F8:40) [16:49:33:515]:
    Error 1260. Windows cannot open this program because it has been prevented by a software restriction policy.
    I have checked rights on the folders and also got the anti-virus (symantec) services stopped on the server. Still no success, can anyone help.

    I have installed SQL Server 2005 Standand Edition (32-bit) on a standalone server machine running
    Windows Server 2003 R2 Standard 64-bit with Service Pack 2. After installing SQL Server, when I tried installing the Service Pack 3 (as per application requirement) through local administrator account, I am repeatedly getting below error in
    "C:\Program Files (x86)\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\Redist9_Hotfix_KB955706_SqlSupport.msi.log"
    SECUREREPAIR: SecureRepair Failed. Error code: 4ec4E6A3388
    MSI (s) (F8:40) [16:49:33:515]:
    Error 1260. Windows cannot open this program because it has been prevented by a software restriction policy.
    I have checked rights on the folders and also got the anti-virus (symantec) services stopped on the server. Still no success, can anyone help.
    Just to add: Have already referred
    http://support.microsoft.com/kb/918357

  • Attempted to perform an unauthorized operation error while installing SQL Server 2008 R2 Enterprise edition on Windows Server 2012 R2 standard VM server

    I've been trying fresh installation of SQL Server 2008 R2 enterprise on Windows Server 2012 R2 standard VM server several times for two weeks, but always get the error "Attempted to perform an unauthorized operation". At first, I attempted
    to install all features, but failed several times. So I decided to try install just Database Engine service, and still fail at the SqlBrowserConfigAction_Install_ConfigNonRC_Cpu32, with the error "Attempted to perform an unauthorized operation".
    I remote login to server with my admin domain account. This account is in server local Administrators group. I
    1. Right-click on setup.exe file | properties | Compatibility tab | select compatibility to Windows 8.Then click OK.
    2. Right-click on setup.exe file | Run as Administrator, to start the Installation Center.
    I have the document of my installation steps and zip file of the installation logs, if you need to take a look.
    Appreciate for any help!
    ntth

    Hi ntth,
    "Attempted to perform an unauthorized operation"
    The above error is always related to the Windows account SID mapping. I recommend you login into Windows using another Windows account which has administrative privileges and run SQL Server setup using that Windows account.
    Besides, please note that we need to apply SQL Server 2008 R2 Service Pack 2 or a later update when installing SQL Server Windows Server 2012 R2. For more information, please review this
    KB article.
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Error while install sql server 2012 using powershell

    hello all,
    I am using below function to install sql server and its not working  can some one help me please 
    Function Install-Sql2012
    param
    [Parameter()][string]  $Path ,#= (read-host "Enter Installation Binary Path"),
            [Parameter()][string]  $AddSSIS= (read-host "Do u need SSIS Enter 1 for yes o for no") ,
            [Parameter()][string]  $AddSSRS= (read-host "Do u need SSRS Enter 1 for yes o for no") ,
    [Parameter()][string]  $InstanceName = (read-host "Enter Instance name"),
    [Parameter()][string]  $ServiceAccount= (read-host "Enter Service Account"),
    [Parameter()][string]  $ServicePassword= (read-host -assecurestring "Enter Service Account Password") ,
    [Parameter()][string]  $AgentAccount=(read-host "Enter Agent Account"),
    [Parameter()][string]  $AgentPassword=(read-host "Enter Agent pasword"),
            [Parameter()][string]  $Backuppath= (read-host "Enter Backuppath"),
    [Parameter()][string]  $SaPassword= (read-host -assecurestring "Enter SA Account Passowrd"),
            [Parameter()][string]  $SQLTEMPDBDIR= (read-host  "Enter TempDir"),
            [Parameter()][string]  $SQLUSERDBDIR= (read-host  "Enter User Data Directory"),
            [Parameter()][string]  $SQLUSERDBLOGDIR= (read-host  "Enter User Log Directory"),
    #[Parameter(Position=5,Mandatory=$false)][string] $LicenseKey,
    [Parameter()][string]  $SqlCollation = "SQL_Latin1_General_CP1_CI_AS",
    [Parameter()][switch]  $NoTcp,
    [Parameter()][switch]  $NoNamedPipes
    #Build the setup command using the install mode
    if ($Path -eq $null -or $Path -eq "")
    #No path means that the setup is in the same folder
    $command = '.\setup.exe /Action="Install"'
    else
    #Ensure that the path ends with a backslash
    if(!$Path.EndsWith("\"))
    $Path += "\"
    $command = $path + 'setup.exe /Action="Install"'
    #Accept the license agreement - required for command line installs
    $command += ' /IACCEPTSQLSERVERLICENSETERMS'
    #Use the QuietSimple mode (progress bar, but not interactive)
    $command += ' /QS'
    #Set the features to be installed
    #$command += ' /FEATURES=SQLENGINE,CONN,BC,SSMS,ADV_SSMS'
        If ($AddSSIS -ne '0' -and $AddSSIS -ne '1') {
            throw 'Invalid input. Enter a valid value for SSIS.'
        If ($AddSSRS -ne '0' -and $AddSSRS -ne '1') {
            throw 'Invalid input. Enter a valid value for SSRS.'
       if ($AddSSIS -eq 1 -and $AddSSRS -eq 1)
           $command += ' /FEATURES=SQLENGINE,CONN,BC,SSMS,ADV_SSMS,SSIS,SSRS'
       if ($AddSSIS -eq 1 -and $AddSSRS -eq 0)
       $command += ' /FEATURES=SQLENGINE,CONN,BC,SSMS,ADV_SSMS,SSIS'
       if ($AddSSIS -eq 0 -and $AddSSRS -eq 1)
       $command += ' /FEATURES=SQLENGINE,CONN,BC,SSMS,ADV_SSMS,SSRS'
       if  ($AddSSIS -eq 0 -and $AddSSRS -eq 0)
       $command += ' /FEATURES=SQLENGINE,CONN,BC,SSMS,ADV_SSMS'
    #Set the Instance Name
    $command += (' /INSTANCENAME="{0}"' -f $InstanceName)
    #remove Set the License Key only if a value was provided, otherwise install Evaluation edition
    #if ($LicenseKey -ne $null -and $LicenseKey -ne "")
    # $command += (' /PID="{0}"' -f $LicenseKey)
        #set reporting to off
        $command += ('/SQMREPORTING="0"')
        #Add Browser Account 
        $command +=('/BROWSERSVCSTARTUPTYPE="Disabled"')
        #Add Backup path 
        $command +=('/SQLBACKUPDIR="{0}"' -f $backuppath)
    #Check to see if a service account was specified
    if ($ServiceAccount -ne $null -and $ServiceAccount -ne "")
    #Set the database engine service account
    $command += (' /SQLSVCACCOUNT="{0}" /SQLSVCPASSWORD="{1}" /SQLSVCSTARTUPTYPE="Automatic"' -f $ServiceAccount, $ServicePassword)
    #Set the SQL Agent service account
    $command += (' /AGTSVCACCOUNT="{0}" /AGTSVCPASSWORD="{1}" /AGTSVCSTARTUPTYPE="Automatic"' -f $AgentAccount, $AgentPassword)
    else
    #Set the database engine service account to Local System
    $command += ' /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /SQLSVCSTARTUPTYPE="Automatic"'
    #Set the SQL Agent service account to Local System
    $command += ' /AGTSVCACCOUNT="NT AUTHORITY\SYSTEM" /AGTSVCSTARTUPTYPE="Automatic"'
    #Set the server in SQL authentication mode if an SA password was provided
    if ($SaPassword -ne $null -and $SaPassword -ne "")
    $command += (' /SECURITYMODE="SQL" /SAPWD="{0}"' -f $SaPassword)
    #Add current user as SysAdmin
    $command += (' /SQLSYSADMINACCOUNTS="test\ADMIN"')
        #Add Tempdbdata path
    $command += (' /SQLTEMPDBDIR="{0}"' -f $SQLTEMPDBDIR)
        #Add Tempdblog path
        $command += (' /SQLTEMPDBLOGDIR="{0}"' -f $SQLTEMPDBDIR)
         #Add UserDBdata path
        $command += (' /SQLUSERDBDIR="{0}"' -f $SQLUSERDBDIR)
         #Add UserDBlog path
        $command += (' /SQLUSERDBLOGDIR="{0}"' -f $SQLUSERDBLOGDIR)
    #Set the database collation
    $command += (' /SQLCOLLATION="{0}"' -f $SqlCollation)
    #Enable/Disable the TCP Protocol
    if ($NoTcp)
    $command += ' /TCPENABLED="0"'
    else
    $command += ' /TCPENABLED="1"'
    #Enable/Disable the Named Pipes Protocol
    if ($NoNamedPipes)
    $command += ' /NPENABLED="0"'
    else
    $command += ' /NPENABLED="1"'
    if ($PSBoundParameters['Debug']) 
    Write-Output $command
    else
    Invoke-Expression $command
    Install-Sql2012
    Below is the error i am getting 
    PS C:\temp\in> .\Install-Sql2012.ps1
    Do u need SSIS Enter 1 for yes o for no: 0
    Do u need SSRS Enter 1 for yes o for no: 0
    Enter Instance name: MSSQLSERVER
    Enter Service Account:
    Enter Service Account Password:
    Enter Agent Account:
    Enter Agent pasword:
    Enter Backuppath: "C:\Temp\IN\bck"
    Enter SA Account Passowrd: **********
    Enter TempDir: "C:\Temp\IN\bck"
    Enter User Data Directory: "C:\Temp\IN\bck"
    Enter User Log Directory: "C:\Temp\IN\bck"
    Microsoft (R) SQL Server 2012 11.00.2100.60
    Copyright (c) Microsoft Corporation.  All rights reserved.
    The following error occurred:
    Instance name is limited to 16 characters. Yours 'MSSQLSERVER/SQMREPORTING=0/BROWSERSVCSTARTUPTYPE=DISABLED/SQLBACKUPDIR=C:\TEMP\IN\BCK' is 85.
    Error result: -2054422513
    Result facility code: 1420
    Result error code: 15
    Please review the summary.txt log for further details
    Thanks,
    Ashwin.
        

    Line 94, 97 and 100 appear to not have spaces at the beginning of each string, which could cause some issues:
    #set reporting to off
    $command += ('/SQMREPORTING="0"')
    #Add Browser Account
    $command +=('/BROWSERSVCSTARTUPTYPE="Disabled"')
    #Add Backup path
    $command +=('/SQLBACKUPDIR="{0}"' -f $backuppath)
    Probably should be this:
    #set reporting to off
    $command += (' /SQMREPORTING="0"')
    #Add Browser Account
    $command +=(' /BROWSERSVCSTARTUPTYPE="Disabled"')
    #Add Backup path
    $command +=(' /SQLBACKUPDIR="{0}"' -f $backuppath)
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

Maybe you are looking for