Download Visual Studio installer from Microsoft sites. Then run the following command:
vs_professional__1084175251.1559142290.exe --layout d:\vs2017offline --lang en-US