Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Oracle/MSSQL/MySQL » Fix long path names to files on SQL Server installation media error
  • VHDX resizing and veeam back
    Hyper V Disk allocation: Why Veeam reports full size after Shrinking Windows Server
  • 517443 637286201540125528 16x9 1
    User account and process management in Linux Linux
  • Feature image nagios
    How to Install and Configure Nagios on Ubuntu Linux
  • macos12
    Enable or disable automatic login on macOS: Fix username greyed out for automatic login Mac
  • fix frequent shutdown due to licensing issues   Windows
    Fix Windows Server frequent disconnects and shutdown Windows Server
  • Permission1
    How to create a Shortcut That enables Standard Users to run Applications as Administrator Windows
  • unnamed
    How to start an application automatically on Mac Mac
  • WIinG
    Capture and Record your Screen in Windows 10 with Xbox Game Bar Windows

Fix long path names to files on SQL Server installation media error

Posted on 19/06/202519/06/2025 Christian By Christian No Comments on Fix long path names to files on SQL Server installation media error
installer file too long fix

In this article, we will discuss how to fix long path names to files on SQL Server installation media error. This happens when installing Microsoft SQL Server on Windows Server. Despite installing SQL Server numerous times with the same installation media. I was prompted with the error that the installation media on a network share. Or in a custom folder can cause installation failure if the total length of the path exceeds 260 characters. Please, see how to download and install MSSQL 2019 Express Edition and SSMS, and how to upgrade Windows Admin Center 2306 – 2311: Run WACmg v2401.

SQL Server (MSSQL) is a relational database management system (RDBMS) developed by Microsoft that enables users interact with and manage data via Structured Query Language (SQL). Businesses widely use MSSQL for tasks like transaction processing, data warehousing, and business intelligence.

Also, see and how to upgrade Microsoft SQL Server 2019 to 2022, and how to create a Windows 11 Bootable USB drive. Here is how to create a Windows 10 or 11 bootable USB with UEFI support.

Reason for the long path names to files on SQL Server installation media error?

This error is prompted during SQL Server setup from 2019 which is the version I am installing today. This error also occurs in later versions when the installation media (extracted ISO or installation folder) contains long file paths. This is usually over 260 characters.

As you can see below, when you launch the SQL Server setup file. This will open up SQL Server Installation Center. When you click on “New SQL Server stand-alone installation or add features to an existing installation”.

Ideally, in the Global Rules page, setup automatically advances to the Microsoft Update page if there are no rule errors. Unfortunately, this is not the case for this setup as shown below.

To see more of this error, please click on “Failed” under the status tab.

long pathnmae to file on SQL Server media

Below is the detailed information about the failure. We are being instructed to use Net Use functionality or shorten the path name.

rule check result

Please, see How to encrypt Microsoft SQL Server Traffic, how to link a removable media to a Deployment Share: Replicate Deployment share to a removable device. Here is a guide on how to Install SQL Server Management Studio 21 on Windows Server.

Shorten Path Name

As you can see above, one of the steps we have to resolve this issue is to shorten the path name to SQL Server Setup.exe file.

install path
You could also rename it on the parent folder as shown here.

But, decided to move the SQL Server installation folder to a different folder by coping and renaming it as shown below.

rename folder

As you can see, I have shorten the path name as recommended.

long path fixed

Please, see how to “Install SQL Server Management Studio 20 on Windows Server, and how to install Endpoint Configuration Manager on HyperV VM. Here is “how to uninstall Microsoft SQL Server Management Studio“.

Launch SQL Server Installation Again

When the path name is renamed, ensure to close all open SQL Server Installation Center. Then click on the SQL Server Setup file and when the SQL Server Installation Center opens up. Click on the first option as shown below to install SQL Server unto the server.

As you can see below, we are prompted right in the Install Rules page. Setup checks for potential problems that might occur while running Setup. As you can see below, there is no failure but only a warning message alone regarding Windows Firewall.

long path rule passed

To get more information about the warning message. Kindly click on the warning link under the status tab as shown below.

firewall warning

You should be able to install SQL Server going forward by following the steps or Windows prompted.

I hope you found this article very useful on how to Fix long path names to files on SQL Server installation media error. Please, feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Oracle/MSSQL/MySQL

Post navigation

Previous Post: Install SQL Server Management Studio 21 on Windows Server
Next Post: How to shrink and create new partition on Windows Server

Related Posts

  • Encryption
    How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
  • SQL Server Management Studio 1
    How to manually check and update SQL Server Management Studio Oracle/MSSQL/MySQL
  • Enable or disable SA acocunt
    How to enable an SA account that has been disabled Oracle/MSSQL/MySQL
  • sql server installation
    Install SQL Server 2022 Express and SQL Server Management Studio Oracle/MSSQL/MySQL
  • SQL Error
    Fix “the server was not found or was not accessible: Verify that the instance name is correct and that SQL Server is configured to allow remote connections” Oracle/MSSQL/MySQL
  • azure sql featured image
    How to delete ADFS Windows Internal Database without access credentials Oracle/MSSQL/MySQL

More Related Articles

Encryption How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
SQL Server Management Studio 1 How to manually check and update SQL Server Management Studio Oracle/MSSQL/MySQL
Enable or disable SA acocunt How to enable an SA account that has been disabled Oracle/MSSQL/MySQL
sql server installation Install SQL Server 2022 Express and SQL Server Management Studio Oracle/MSSQL/MySQL
SQL Error Fix “the server was not found or was not accessible: Verify that the instance name is correct and that SQL Server is configured to allow remote connections” Oracle/MSSQL/MySQL
azure sql featured image How to delete ADFS Windows Internal Database without access credentials Oracle/MSSQL/MySQL

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • VHDX resizing and veeam back
    Hyper V Disk allocation: Why Veeam reports full size after Shrinking Windows Server
  • 517443 637286201540125528 16x9 1
    User account and process management in Linux Linux
  • Feature image nagios
    How to Install and Configure Nagios on Ubuntu Linux
  • macos12
    Enable or disable automatic login on macOS: Fix username greyed out for automatic login Mac
  • fix frequent shutdown due to licensing issues   Windows
    Fix Windows Server frequent disconnects and shutdown Windows Server
  • Permission1
    How to create a Shortcut That enables Standard Users to run Applications as Administrator Windows
  • unnamed
    How to start an application automatically on Mac Mac
  • WIinG
    Capture and Record your Screen in Windows 10 with Xbox Game Bar Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,834 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.