/// <summary> /// Gets extended information about a package. /// </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 OpenImageSession Function.</param> /// <param name="packagePath">An absolute path to a .cab file or to a folder containing an expanded package.</param> /// <returns>A <see cref="DismPackageInfoEx"/> object.</returns> /// <exception cref="DismException">When a failure occurs.</exception> public static DismPackageInfoEx GetPackageInfoExByPath(DismSession session, string packagePath) { return(DismApi.GetPackageInfoEx(session, packagePath, DismPackageIdentifier.Path)); }
/// <summary> /// Gets extended information about a package. /// </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 OpenImageSession Function.</param> /// <param name="packageName">The name of the package to get information about.</param> /// <returns>A <see cref="DismPackageInfoEx"/> object.</returns> /// <exception cref="DismException">When a failure occurs.</exception> public static DismPackageInfoEx GetPackageInfoExByName(DismSession session, string packageName) { return(DismApi.GetPackageInfoEx(session, packageName, DismPackageIdentifier.Name)); }