Hi All,
Today I was installing microsoft SQL developer/express on my laptop. However the installation ends in a
1639 error.
Unable to install SQL Server (setup.exe). Exit code (Decimal): -2068052377Error description: Invalid command line argument. Consult the windows Installer SDK for detailed command line help.
How can I fix this error?
These are parts of the log files:
Log file 1
Configuration file:
C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20180823_181447ConfigurationFile.ini
Detailed results:
Feature:
Database Engine Services
Status:
Failed
Reason for failure:
An error occurred during the setup process of the feature.
Next Step:
Use the following information to resolve the error, and then try the setup process again.
Component name:
SQL Server Database Engine Services Instance Features
Component error code:
1639
Component log file:
C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20180823_181447sql_engine_core_inst_Cpu64_1.log
Error description: Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
Error help link:
https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=
14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400×1639
Log file 2
MSI (s) (4C:0C) [18:15:28:084]: Machine policy value ‘TransformsSecure’ is 0
MSI (s) (4C:0C) [18:15:28:085]: User policy value ‘TransformsAtSource’ is 0
MSI (s) (4C:0C) [18:15:28:086]: Machine policy value ‘DisableUserInstalls’ is 0
MSI (s) (4C:0C) [18:15:28:086]: Specified instance {36C9ADEE-91B0-4FFA-9CBA-9164CE6089D5} via transform :InstID02.mst;:InstName02.mst is already installed. MSINEWINSTANCE requires a new instance
that is not installed.
MSI (s) (4C:0C) [18:15:28:087]: MainEngineThread is returning 1639
MSI (s) (4C:94) [18:15:28:088]: User policy value ‘DisableRollback’ is 0
MSI (s) (4C:94) [18:15:28:088]: Machine policy value ‘DisableRollback’ is 0
MSI (s) (4C:94) [18:15:28:088]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:94) [18:15:28:088]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2
MSI (s) (4C:94) [18:15:28:089]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2
MSI (s) (4C:94) [18:15:28:089]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.
Counter after decrement: -1
MSI (c) (18:C0) [18:15:28:091]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.
Counter after decrement: -1
MSI (c) (18:C0) [18:15:28:091]: MainEngineThread is returning 1639
=== Verbose logging stopped: 23/08/2018
18:15:28 ===
Thanks very much.
Regards,
Giovanni
Hi All,
Today I was installing microsoft SQL developer/express on my laptop. However the installation ends in a
1639 error.
Unable to install SQL Server (setup.exe). Exit code (Decimal): -2068052377Error description: Invalid command line argument. Consult the windows Installer SDK for detailed command line help.
How can I fix this error?
These are parts of the log files:
Log file 1
Configuration file:
C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20180823_181447ConfigurationFile.ini
Detailed results:
Feature:
Database Engine Services
Status:
Failed
Reason for failure:
An error occurred during the setup process of the feature.
Next Step:
Use the following information to resolve the error, and then try the setup process again.
Component name:
SQL Server Database Engine Services Instance Features
Component error code:
1639
Component log file:
C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20180823_181447sql_engine_core_inst_Cpu64_1.log
Error description: Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
Error help link:
https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=
14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400×1639
Log file 2
MSI (s) (4C:0C) [18:15:28:084]: Machine policy value ‘TransformsSecure’ is 0
MSI (s) (4C:0C) [18:15:28:085]: User policy value ‘TransformsAtSource’ is 0
MSI (s) (4C:0C) [18:15:28:086]: Machine policy value ‘DisableUserInstalls’ is 0
MSI (s) (4C:0C) [18:15:28:086]: Specified instance {36C9ADEE-91B0-4FFA-9CBA-9164CE6089D5} via transform :InstID02.mst;:InstName02.mst is already installed. MSINEWINSTANCE requires a new instance
that is not installed.
MSI (s) (4C:0C) [18:15:28:087]: MainEngineThread is returning 1639
MSI (s) (4C:94) [18:15:28:088]: User policy value ‘DisableRollback’ is 0
MSI (s) (4C:94) [18:15:28:088]: Machine policy value ‘DisableRollback’ is 0
MSI (s) (4C:94) [18:15:28:088]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:94) [18:15:28:088]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2
MSI (s) (4C:94) [18:15:28:089]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2
MSI (s) (4C:94) [18:15:28:089]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.
Counter after decrement: -1
MSI (c) (18:C0) [18:15:28:091]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.
Counter after decrement: -1
MSI (c) (18:C0) [18:15:28:091]: MainEngineThread is returning 1639
=== Verbose logging stopped: 23/08/2018
18:15:28 ===
Thanks very much.
Regards,
Giovanni
Hi All,
Today I was installing microsoft SQL developer/express on my laptop. However the installation ends in a
1639 error.
Unable to install SQL Server (setup.exe). Exit code (Decimal): -2068052377Error description: Invalid command line argument. Consult the windows Installer SDK for detailed command line help.
How can I fix this error?
These are parts of the log files:
Log file 1
Configuration file:
C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20180823_181447ConfigurationFile.ini
Detailed results:
Feature:
Database Engine Services
Status:
Failed
Reason for failure:
An error occurred during the setup process of the feature.
Next Step:
Use the following information to resolve the error, and then try the setup process again.
Component name:
SQL Server Database Engine Services Instance Features
Component error code:
1639
Component log file:
C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20180823_181447sql_engine_core_inst_Cpu64_1.log
Error description: Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
Error help link:
https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=
14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400×1639
Log file 2
MSI (s) (4C:0C) [18:15:28:084]: Machine policy value ‘TransformsSecure’ is 0
MSI (s) (4C:0C) [18:15:28:085]: User policy value ‘TransformsAtSource’ is 0
MSI (s) (4C:0C) [18:15:28:086]: Machine policy value ‘DisableUserInstalls’ is 0
MSI (s) (4C:0C) [18:15:28:086]: Specified instance {36C9ADEE-91B0-4FFA-9CBA-9164CE6089D5} via transform :InstID02.mst;:InstName02.mst is already installed. MSINEWINSTANCE requires a new instance
that is not installed.
MSI (s) (4C:0C) [18:15:28:087]: MainEngineThread is returning 1639
MSI (s) (4C:94) [18:15:28:088]: User policy value ‘DisableRollback’ is 0
MSI (s) (4C:94) [18:15:28:088]: Machine policy value ‘DisableRollback’ is 0
MSI (s) (4C:94) [18:15:28:088]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:94) [18:15:28:088]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2
MSI (s) (4C:94) [18:15:28:089]: Note: 1: 1402 2: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInstallerRollbackScripts 3: 2
MSI (s) (4C:94) [18:15:28:089]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.
Counter after decrement: -1
MSI (c) (18:C0) [18:15:28:091]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.
Counter after decrement: -1
MSI (c) (18:C0) [18:15:28:091]: MainEngineThread is returning 1639
=== Verbose logging stopped: 23/08/2018
18:15:28 ===
Thanks very much.
Regards,
Giovanni

- Remove From My Forums
-
Вопрос
-
Hi All,
SQL server 2014 installation failing with below error:
Error :Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
can someone help on this.
-
Перемещено
Olaf HelperMVP
18 января 2017 г. 7:09
Moved from «Database Engine» to a more related forum for better response
-
Перемещено
Все ответы
-
Hi Aditya,
Refer link —>see Matthew answer.
https://social.technet.microsoft.com/Forums/systemcenter/en-US/5271b1df-b980-462d-bf7a-f981795bc623/data-warehouse-setup-wizard-invalid-command-line-argument?forum=setup
see Logs.
Please Mark it as Answered if it answered your question OR mark it as Helpful if it help you to solve your problem.
-
Изменено
AV111
18 января 2017 г. 10:33
-
Изменено
-
Can you post
summary.txt logs here
Cheers,
Shashank
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 Wiki Articles
MVP-
Изменено
Shanky_621MVP
18 января 2017 г. 14:21
-
Изменено
-
Thanks for reply.
Issue was resolved.
Problem was due to previous failed SQL installtion.
I uninstalled all SQL components from control panel
Deleted all registry entry related to MSSQL
Deleted Microsoft SQL Server Folder from program files.
Rebooted server.
After that tried installation again and it went successful.
-
Предложено в качестве ответа
Lin LengMicrosoft contingent staff
20 января 2017 г. 3:07
-
Предложено в качестве ответа
Last week, I was installing SQL Server 2012 on one of the database server. Unfortunately, the installation was failed with the error 1639. I have given below the details of this error code.
Product: Microsoft SQL Server Browser – Update Service Pack 1 for Microsoft SQL Server Browser (KB-NUMBER)’ could not be installed. Error code 1639.

Root Cause
I was not able to find any reason behind this error because I had followed all prerequisites before starting this installation. I went to some forums to get a root cause of this error 1639 or solution to fix it and what i found is described in this article.
This issue (Error 1639) comes when there is a blank space between your SQL Server setup folder directories. As I found my setup files were placed under a directory named “SQL Server 2012”. You can see there are two blank space between this directory name. This was the main reason or cause behind getting this SQL Server installation error. Read next section to fix this issue and install SQL Server successfully on your database server.
Resolution
To fix this issue, we have decided to first uninstall SQL Server instance that was failed to install. I have uninstalled it from “Add and Remove Programs” and deleted all SQL Server folders that was created during the installation. Once failed installation of SQL Server was uninstalled from database server, we have rebooted the machine to proceed with fresh installation.
As I mentioned above, issue was due to blank space between the parent directory of SQL Server setup files. You can see the name of directory in below screenshot.

Now I have removed the blank space between the words of this folder name and changed it to “SQLServer2012”. You can see the below screenshot of this change.

That’s all to fix this issue. Now go ahead and start the installation again for your work.
Once this directory was renamed, I have started the SQL Server installation process. I had launched setup file and proceed for installation. You can also right click on setup file and choose “Run as Administrator” to start the installation. Follow all windows and processes of installation process as you did last time to install it. This time your SQL Server instance will be installed without any issue.
The key takeaway from this issue is to never keep any bank space between files or folders otherwise you will be end up with similar issues.
I hope you like this article. Please Like, Share, Comment & Subscribe to this website to get all new articles directly to your index. You can also follow our Facebook page and Twitter handle to get latest updates.
Read More:
- SQL Server Interview Questions & Answers on Architecture
- SQL Server Interview Questions & Answers on Indexes
- Microsoft SQL Server DBA Interview Questions & Answers
- SQL Server Interview Questions & Answers on Backup & Recovery
- Author
- Recent Posts
I am working at one of the top MNCs and have extensive experience on all versions of SQL Server since 2000,I have good hands on experience onfollowing database features: Database Mirroring, Always ON, Replication, Log Shipping, Geo-Clustering and Performance Tuning and delivered many SQL Server projects on consolidation, upgrades, heterogeneous replication, HA / DR solutions, automation and major performance tuning
Summary
Article Name
How to Fix SQL Server Installation Error 1639?
Description
Last week, I was installing SQL Server 2012 on one of the database server. Unfortunately, the installation was failed with the error 1639. I have given below the details of this error code. Product: Microsoft SQL Server Browser – Update Service Pack 1 for Microsoft SQL Server Browser (KB-NUMBER)’ could not be installed. Error code 1639.
- Remove From My Forums
Installation problem with SQL Server 2017 (Error 1639) — help me a save baby pandas!
-
Question
-
Hello,
I recently uninstalled SQL Server and now I’m trying to install it again (SQL Server 2017 Developer Edition, Basic installation)..
The problem is, every time I do it, in the end of the installation I get a page saying «Oops, unable to install SQL Server».
I’ve tried to delete all sql folders and registry keys, uninstall virtually everything related to SQL Server, installing as admin, cleaning and fixing the registry, reboots, and so on… Nothing seems to be working!
Right now, the installation log states:
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2068052377
Start time: 2019-04-07 16:57:21
End time: 2019-04-07 16:58:02
Requested action: InstallSetup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, and then try the setup process again.Detailed results:
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, and then
try the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 1639
Component log file: C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20190407_165720sql_engine_core_inst_Cpu64_1.log
Error description: Invalid
Command Line Argument. See the Windows Installer SDK for detailed help from the command line.
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400×1639Feature: SQL Browser
Status: PassedFeature: SQL Writer
Status: PassedFeature: SQL Client Connectivity
Status: PassedFeature: SQL Client Connectivity SDK
Status: PassedI’m getting desperate since I’m really running out of time for this project…
Thanks in advance!
- Remove From My Forums
Installation problem with SQL Server 2017 (Error 1639) — help me a save baby pandas!
-
Question
-
Hello,
I recently uninstalled SQL Server and now I’m trying to install it again (SQL Server 2017 Developer Edition, Basic installation)..
The problem is, every time I do it, in the end of the installation I get a page saying «Oops, unable to install SQL Server».
I’ve tried to delete all sql folders and registry keys, uninstall virtually everything related to SQL Server, installing as admin, cleaning and fixing the registry, reboots, and so on… Nothing seems to be working!
Right now, the installation log states:
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2068052377
Start time: 2019-04-07 16:57:21
End time: 2019-04-07 16:58:02
Requested action: InstallSetup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, and then try the setup process again.Detailed results:
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, and then
try the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 1639
Component log file: C:Program FilesMicrosoft SQL Server140Setup BootstrapLog20190407_165720sql_engine_core_inst_Cpu64_1.log
Error description: Invalid
Command Line Argument. See the Windows Installer SDK for detailed help from the command line.
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400×1639Feature: SQL Browser
Status: PassedFeature: SQL Writer
Status: PassedFeature: SQL Client Connectivity
Status: PassedFeature: SQL Client Connectivity SDK
Status: PassedI’m getting desperate since I’m really running out of time for this project…
Thanks in advance!