Skip to content

error message with AddPackage #102

@Devils0411

Description

@Devils0411

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions