/// <summary> /// Removes a package from an image. /// </summary> /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the DismOpenSession Function.</param> /// <param name="packagePath">The package path.</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> /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception> public static void RemovePackageByPath(DismSession session, string packagePath, Dism.DismProgressCallback progressCallback) { DismApi.RemovePackageByPath(session, packagePath, progressCallback, null); }
/// <summary> /// Removes a package from an image. /// </summary> /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the DismOpenSession Function.</param> /// <param name="packagePath">The package path.</param> /// <exception cref="DismException">When a failure occurs.</exception> /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception> public static void RemovePackageByPath(DismSession session, string packagePath) { DismApi.RemovePackageByPath(session, packagePath, null); }