edit:
Starting from visual studio 2017 Microsoft is no longer offering .ISO images. For the new visual studio 2017 you have to download vs_community.exe from here and create an offline instalation folder:
vs_community.exe –layout c:\vs2017offline
Then, in order to install from that folder you have to first install certificates from \certificates in the download folder and then run the installation.