Path specifies the path to the data image to install. This can be either a local or a network path. If the path is local, no credentials are required.

Values

Path_to_data_image

Specifies the path and the name of the data image to install. Path_to_data_image is a string.

Both local paths and Universal Naming Convention (UNC) paths are supported.

Relative paths are supported, but the name of the file must be specified. The path is relative to the path from where Windows Setup is run.

If the file path cannot be accessed because of an incorrect path or invalid credentials, installation is terminated.

Valid Configuration Passes

windowsPE

Parent Hierarchy

Applies To

For a list of the Windows® editions and architectures thatthis component supports, see Microsoft-Windows-Setup.

XML Example

The following XML output shows how to set the ImageInstall setting to install both an operating system image and a data image.

  Copy Code
<ImageInstall>
	<OSImage>
		<InstallFrom>
			<Credentials>
				<Domain>FabrikamDomain</Domain>
				<Password>MyPassword</Password>
				<Username>MyUsername</Username>
			</Credentials>
			<Path>\\networkshare\share\install.wim</Path>
			<MetaData wcm:action="add">
				<Key>/IMAGE/NAME</Key>
				<Value>FabrikamCustomOSImage</Value>
			</MetaData>
		</InstallFrom>
		<InstallTo>
			<DiskID>0</DiskID>
			<PartitionID>1</PartitionID>
		</InstallTo>
		<WillShowUI>OnError</WillShowUI>
		<InstallToAvailablePartition>false</InstallToAvailablePartition>
	</OSImage>
	<DataImage wcm:action="add">
		<InstallTo>
			<DiskID>0</DiskID>
			<PartitionID>2</PartitionID>
		</InstallTo>
		<InstallFrom>
			<Credentials>
				<Domain>FabrikamDomain</Domain>
				<Password>MyPassword</Password>
				<Username>MyUsername</Username>
			</Credentials>
			<Path>\\networkshare\share\data.wim</Path>
			<MetaData wcm:action="add">
				<Key>/IMAGE/NAME</Key>
				<Value>FabrikamData</Value>
			</MetaData>
		</InstallFrom>
		<Order>1</Order>
	</DataImage>
</ImageInstall>

Relative paths: In this XML example, the installer has the Windows installation programs, the unattend file, and the data image on a USB drive, which is currently assigned to the letter E. The technician changes the working directory to E: before running Windows Setup.

  Copy Code
X:\Windows\System32> E:
E:\> setup.exe /installfrom:".\wims\32bitimage.wim" /unattend:".\autounattend_files\32bit_autounattend.xml"
  Copy Code
<ImageInstall>
	<DataImage>
		<InstallFrom>
			<Path>.\wims\dataimage.wim</Path> 	
			<MetaData wcm:action="add">
				<Key>/IMAGE/INDEX</Key>
				<Value>1</Value>
			</MetaData>
		</InstallFrom>
		<InstallTo>
			<DiskID>0</DiskID>
			<PartitionID>3</PartitionID>
		</InstallTo>
	</DataImage>
</ImageInstall>

See Also

Concepts

InstallFrom