The new SharePoint 2010 prerequisites installer installs all the software required to install SharePoint 2010. The default behaviour of this prerequisites installer is to download the files from Internet. However, you can install the prerequisites from a network share.
Today I was looking to install the prerequisites offline from local path. Installing from a local path, like C:, is required when you are in a VM.
Read more here