Computer Learning Zone CLZ Access Excel Word Windows

A leader is judged not by the length of his reign but by the decisions he makes.

-Klingon Proverb
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Installing SQL Server    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Error 1639
Alex Lewis 
       
4 months ago
I get Error 1639 while trying to install SQL Server Express on my machine: "Invalid command line argument. Consult the Windows Installer SDK for detailed command line help. I am using a local account with Windows authentication. I had SQL Server installed previously but I deleted all previous instances from my machine (Services, Apps, Registry Keys, etc.) Any solutions?
Alex Lewis OP  @Reply  
       
4 months ago

Richard Rost  @Reply  
          
4 months ago
A Windows Installer 1639 usually means SQL Setup is being launched with an argument Windows Installer does not like. The next step is to look at the detailed log, not just the summary.

Open the log folder shown at the bottom of the setup window. In addition to Summary_*.txt there should be a Detail.txt (and sometimes other component logs). In those files, search for "Return value 3" and also search for "Command line" or "Arguments". That should show the exact parameter string that triggered the 1639.

Next, try rerunning setup with the smallest selection possible. Choose only "Database Engine Services" and uncheck Full-Text, Replication, and any AI features. If the engine-only install succeeds, we can add features later.

If it still fails, do a deeper cleanup: uninstall all SQL-related items from Apps and Features (SQL Server, Setup Support, Browser, VSS Writer, LocalDB, ODBC drivers, shared components), reboot, then reinstall using a freshly downloaded installer saved to a simple local folder like C:\SQLSetup. Run setup as Administrator.

Also make sure Windows is fully rebooted (no pending restart from updates), and if you have aggressive antivirus, temporarily disable it during the install.

If all else fails, throw that computer out the window and just get a new one. LOL
Alex Lewis OP  @Reply  
       
4 months ago
These are the errors as they are displayed during installation.

I did a quick Google search on these errors, and it says the needed files don't exist(?). You'd think it would automatically install the needed files.
Alex Lewis OP  @Reply  
       
4 months ago

Alex Lewis OP  @Reply  
       
4 months ago

Alex Lewis OP  @Reply  
       
4 months ago

Alex Lewis OP  @Reply  
       
4 months ago
Richard My Access DB is on this machine. I don't want to lose ALL my work. LOL
Richard Rost  @Reply  
          
4 months ago
You can uninstall SQL Server without losing your databases as long as you back up the database files first.

Your databases live as MDF and LDF files on disk, usually under:

C:\Program Files\Microsoft SQL Server\...\MSSQL\DATA\

Copy those files somewhere safe (desktop, external drive, etc.) before doing anything else.

The errors you're seeing (WMI failure, null path, perf counter removal) usually mean the previous SQL install did not uninstall cleanly and left behind broken components. That can cause Setup to fail even on a fresh install attempt.

After backing up your database files, uninstall all SQL Server components from Apps & Features, reboot, then reinstall using a freshly downloaded installer and run setup as Administrator.

Once SQL Server is installed again, you can reattach your MDF files in SQL Server Management Studio and your databases will come right back.
Alex Lewis OP  @Reply  
       
4 months ago
Did a little bit more digging and realized I had leftover components of an old SQL Server download (SQL 2022) in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall section of the Registry Editor. I (carefully and after backing up Windows, of course) deleted all subkeys where the DisplayName included "SQL Server." Reinstalling the SQL Server engine right now (running as an administrator account) and will update with results.
Richard Rost  @Reply  
          
4 months ago
Fingers crossed. I'd definitely backup your MDF files too!
Alex Lewis OP  @Reply  
       
4 months ago
UPDATE:

Richard After following your instructions and doing a few more advanced tricks to get it to work (including msiexec for remnants of old SQL Server files), I finally got it working! I really appreciate all your help!

LLAP
Pete Santiago  @Reply  
      
3 months ago
Good morning.  I'm a little behind on the course as I've been learning other things for my work (Google Scripts, Ubuntu Server, etc.)  This is in response to Alex Lewis, and I'm not promoting this as this is just a tool that I use to clean up unnecessary software on the desktops I managed.  The program is called Revo Uninstaller, and yes, it is free. This shows all your windows programs & software installed.  How this works: Click a program to uninstall, Click on Uninstall at top, it runs through the programs built in Uninstaller first. When it finishes uninstalling, you have the option to click scan which will search for files, folders, and the registry that has to deal with that program for you to select those files and delete them.  I always back up before do this, but I have not had any issues using this within my work or home environment.  Just my two cents to help!  Also, thank you Richard for all that you do.
Alex Lewis OP  @Reply  
       
3 months ago
Pete I may have to check that out. My SQL Server setup is working fine now, but I appreciate the input!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Installing SQL Server.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/9/2026 3:20:45 PM. PLT: 1s