/// <summary> /// Unmounts a Windows image from a specified location. /// </summary> /// <param name="mountPath">A relative or absolute path to the mount directory of the image.</param> /// <param name="commitChanges">Specifies whether or not the changes to the image should be saved.</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 UnmountImage(string mountPath, bool commitChanges, Dism.DismProgressCallback progressCallback) { DismApi.UnmountImage(mountPath, commitChanges, progressCallback, null); }
/// <summary> /// Unmounts a Windows image from a specified location. /// </summary> /// <param name="mountPath">A relative or absolute path to the mount directory of the image.</param> /// <param name="commitChanges">Specifies whether or not the changes to the image should be saved.</param> /// <exception cref="DismException">When a failure occurs.</exception> public static void UnmountImage(string mountPath, bool commitChanges) { DismApi.UnmountImage(mountPath, commitChanges, null); }