Path Error When Installing SQL Server 2016 on Command Line

Error

The input setting “SQLUSERDBDIR” has invalid character ” ” “. Retry setup with valid value for “SQLUSERDBDIR”.

Fix

Do not using quotes when specifying the /SQLUSERDBDIR,  /SQLUSERDBLOGDIR,  /SQLTEMPDBDIR, /SQLTEMPDBLOGDIR parameter values i.e. /SQLUSERDBDIR=M:\MSSQL\Data NOT  /SQLUSERDBDIR=”M:\MSSQL\Data”

It was different one version earlier.