You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Similar to #36, this API is just a wrapper around the native API. dism.exe has logic to enumerate files in a folder and call AddPackage multiple times. You'll need to mimic this behavior in your app.
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?
The text was updated successfully, but these errors were encountered: