Microsoft SQL Server 2012 Express LocalDB is a developer oriented, on-demand managed instance of the SQL Server engine that can be turned on automatically when needed and turned off when not in use. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Microsoft SQL Server 2012 Express LocalDB from the command line using the MSI installer.
How to Install Microsoft SQL Server 2012 Express LocalDB Silently
SQL Server 2012 Express LocalDB Silent Install (MSI) on 32-bit Systems
- Navigate to: https://www.microsoft.com/en-us/download/details.aspx?id=50003
- Click Download
- Select the ENU\x86\SqlLocalDB.msi
- Download & Copy the SqlLocalDB.msi to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn
- Press Enter
After a few moments you should see the Microsoft SQL Server 2012 Express LocalDB entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Microsoft SQL Server 2012 Express LocalDB |
Vendor: | Microsoft Corporation |
Version: | 11.3.6020.0 |
Architecture: | x86 |
Installer Type: | MSI |
Silent Install Switch: | MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn |
Silent Uninstall Switch: | MsiExec.exe /x {33500FD1-C09A-4FE3-8B88-9469A7A3892D} /qn |
Download Link: | https://www.microsoft.com/en-us/download/details.aspx?id=50003 |
PowerShell Script: | https://silentinstallhq.com/microsoft-sql-server-2012-express-localdb-install-and-uninstall-powershell/ |
SQL Server 2012 Express LocalDB Silent Install (MSI) on 64-bit Systems
- Navigate to: https://www.microsoft.com/en-us/download/details.aspx?id=50003
- Click Download
- Select the ENU\x64\SqlLocalDB.msi
- Download & Copy the SqlLocalDB.msi to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn
- Press Enter
After a few moments you should see the Microsoft SQL Server 2012 Express LocalDB entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Microsoft SQL Server 2012 Express LocalDB |
Vendor: | Microsoft Corporation |
Version: | 11.3.6020.0 |
Architecture: | x64 |
Installer Type: | MSI |
Silent Install Switch: | MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn |
Silent Uninstall Switch: | MsiExec.exe /x {C3682243-2218-4F80-A94A-EB0D7B7AF739} /qn |
Download Link: | https://www.microsoft.com/en-us/download/details.aspx?id=50003 |
PowerShell Script: | https://silentinstallhq.com/microsoft-sql-server-2012-express-localdb-install-and-uninstall-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create an Installation Log File
The Microsoft SQL Server 2012 Express LocalDB installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.
Microsoft SQL Server 2012 Express LocalDB Silent Install with Logging (MSI)
MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\SqlLocalDB-Install.log" |
How to Uninstall Microsoft SQL Server 2012 Express LocalDB Silently
Check out the Microsoft SQL Server 2012 Express LocalDB Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
Version | SQL Server 2012 Express LocalDB Silent Uninstall String |
11.3.6020.0 (32-bit) | MsiExec.exe /x {33500FD1-C09A-4FE3-8B88-9469A7A3892D} /qn |
11.3.6020.0 (64-bit) | MsiExec.exe /x {C3682243-2218-4F80-A94A-EB0D7B7AF739} /qn |
11.2.5058.0 (32-bit) | MsiExec.exe /x {FDC9696F-27C7-4ED1-981C-EE6482919C16} /qn |
11.2.5058.0 (64-bit) | MsiExec.exe /x {E4A1FDA3-689D-44DA-9B39-86BD2270F522} /qn |
11.1.3000.0 (32-bit) | MsiExec.exe /x {FE939060-416C-4ECD-890E-13776E2707C4} /qn |
11.1.3000.0 (64-bit) | MsiExec.exe /x {6C026A91-640F-4A23-8B68-05D589CC6F18} /qn |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.