-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Immediately I apologize for my English. He's not as good as I would like :)
Actually the question itself.
From the command line, DISM can add multiple packages to a mounted image. For example: DISM.exe / IMAGE: D: \ Mount / Add-Package / PackagePath: D: \ Packages
In dismAPI, it is not possible to specify the folder with packages, it gives an error: "The parameter is specified incorrectly." For example:
using (DismSession session = DismApi.OpenOfflineSession ("D: \ Mount"))
{
DismApi.AddPackage (
session,
"D: \ Packages",
ignoreCheck: false,
preventPending: false,
progressCallback: HandleProgress,
userData: null);
}
If you specify the full path to the package, then there are no problems.
Is it possible to make changes to the project to indicate the path to the folder with packages, and not to each package separately?