示例#1
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageIndex">The index of the image in the WIM file that you want to mount. For a VHD file, you must specify an index of 1.</param>
 /// <param name="readOnly">Specifies if the image should be mounted in read-only mode.</param>
 /// <param name="progressCallback">A progress callback method to invoke when progress is made.</param>
 /// <param name="userData">Optional user data to pass to the DismProgressCallback method.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="OperationCanceledException">When the user requested the operation be canceled.</exception>
 public static void MountImage(string imageFilePath, string mountPath, int imageIndex, bool readOnly, Dism.DismProgressCallback progressCallback, object userData)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageIndex, readOnly, DismMountImageOptions.None, progressCallback, userData);
 }
示例#2
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageIndex">The index of the image in the WIM file that you want to mount. For a VHD file, you must specify an index of 1.</param>
 /// <param name="readOnly">Specifies if the image should be mounted in read-only mode.</param>
 /// <param name="options">Specifies options to use when mounting an image.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static void MountImage(string imageFilePath, string mountPath, int imageIndex, bool readOnly, DismMountImageOptions options)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageIndex, readOnly, options, null);
 }
示例#3
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageIndex">The index of the image in the WIM file that you want to mount. For a VHD file, you must specify an index of 1.</param>
 /// <param name="readOnly">Specifies if the image should be mounted in read-only mode.</param>
 /// <param name="options">Specifies options to use when mounting an image.</param>
 /// <param name="progressCallback">A progress callback method to invoke when progress is made.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="OperationCanceledException">When the user requested the operation be canceled.</exception>
 public static void MountImage(string imageFilePath, string mountPath, int imageIndex, bool readOnly, DismMountImageOptions options, Dism.DismProgressCallback progressCallback)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageIndex, readOnly, options, progressCallback, null);
 }
示例#4
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageName">The name of the image that you want to mount.</param>
 /// <param name="readOnly">Specifies if the image should be mounted in read-only mode.</param>
 /// <param name="options">Specifies options to use when mounting an image.</param>
 /// <param name="progressCallback">A progress callback method to invoke when progress is made.</param>
 /// <param name="userData">Optional user data to pass to the DismProgressCallback method.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="OperationCanceledException">When the user requested the operation be canceled.</exception>
 public static void MountImage(string imageFilePath, string mountPath, string imageName, bool readOnly, DismMountImageOptions options, Dism.DismProgressCallback progressCallback, object userData)
 {
     DismApi.MountImage(imageFilePath, mountPath, 0, imageName, DismImageIdentifier.ImageName, readOnly, options, progressCallback, userData);
 }
示例#5
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageIndex">The index of the image in the WIM file that you want to mount. For a VHD file, you must specify an index of 1.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static void MountImage(string imageFilePath, string mountPath, int imageIndex)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageIndex, false);
 }
示例#6
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageName">The name of the image that you want to mount.</param>
 /// <param name="readOnly">Specifies if the image should be mounted in read-only mode.</param>
 /// <param name="progressCallback">A progress callback method to invoke when progress is made.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 /// <exception cref="OperationCanceledException">When the user requested the operation be canceled.</exception>
 public static void MountImage(string imageFilePath, string mountPath, string imageName, bool readOnly, Dism.DismProgressCallback progressCallback)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageName, readOnly, DismMountImageOptions.None, progressCallback);
 }
示例#7
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageName">The name of the image that you want to mount.</param>
 /// <param name="readOnly">Specifies if the image should be mounted in read-only mode.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static void MountImage(string imageFilePath, string mountPath, string imageName, bool readOnly)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageName, readOnly, DismMountImageOptions.None);
 }
示例#8
0
 /// <summary>
 /// Mounts a WIM or VHD image file to a specified location.
 /// </summary>
 /// <param name="imageFilePath">The path to the WIM or VHD file on the local computer. A .wim, .vhd, or .vhdx file name extension is required.</param>
 /// <param name="mountPath">The path of the location where the image should be mounted. This mount path must already exist on the computer. The Windows image in a .wim, .vhd, or .vhdx file can be mounted to an empty folder on an NTFS formatted drive. A Windows image in a .vhd or .vhdx file can also be mounted to an unassigned drive letter. You cannot mount an image to the root of the existing drive.</param>
 /// <param name="imageName">The name of the image that you want to mount.</param>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static void MountImage(string imageFilePath, string mountPath, string imageName)
 {
     DismApi.MountImage(imageFilePath, mountPath, imageName, false);
 }