How to fix 'The specified directory for the INSTALLSHAREDDIR parameter is not valid'

This post shows you how to fix 'The specified directory, “C:\Program Files (x86)\Microsoft SQL Server\”, for the INSTALLSHAREDDIR parameter is not valid because this directory is compressed or is in a compressed directory. Specify a directory that is not compressed.'

SQL Server Setup has encountered the following error

Error code 0x858C001E

sql server setup failure


64 bit

C:\Program Files (x86)\Microsoft SQL Server

32 bit

C:\Program Files\Microsoft SQL Server

Next, Right-click on your folder, then select properties

microsoft sql server properties

Clicking Advanced button

advanced attributes

Uncheck "Compress contents to save disk space", then click OK button.

Finally, Reinstall your SQL Server.