When I try to unmount a .wim, I'm getting this error:
Exception thrown: 'System.ComponentModel.Win32Exception' in Microsoft.Wim.dll
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in Microsoft.Wim.dll
Unknown error (0xc142010c)
How I've set it up is like this:
private void UnmountWim()
{
WimgApi.RegisterLogFile(@"C:\Temp\QuickWimLogs\UnmountWim.log");
WimgApi.UnmountImage($@"{tBox_UnmountMountDir.Text}", $@"{tBox_UnmountCaptureDir.Text}", 1, true);
}
The UnmountWim.log says the following:
[295648.303964] [0xc142010c] ImageRecaptureDirectory:(128)
[295648.303964] [0xc142010c] WIMCommitImageHandle:(1429)
[295648.303964] [0xc142010c] WIMUnmountImage:(2037)
I did notice, that if I change the commitChanges to false, then it would somewhat unmount the wim, meaning that the mount folder is empty, but the .wim is still mounted. I can see that when I open a CMD as admin and type in DISM /Get-MountedWimInfo:
Mounted images:
Mount Dir : C:\Temp\Mount1
Image File : C:\Temp\ADRevit2022\Application.wim
Image Index : 1
Mounted Read/Write : No
Status : Invalid
However, I'd like to be able to use the commitChanges to true.
Any help is appreciated!
When I try to unmount a .wim, I'm getting this error:
How I've set it up is like this:
The UnmountWim.log says the following:
I did notice, that if I change the commitChanges to false, then it would somewhat unmount the wim, meaning that the mount folder is empty, but the .wim is still mounted. I can see that when I open a CMD as admin and type in DISM /Get-MountedWimInfo:
However, I'd like to be able to use the commitChanges to true.
Any help is appreciated!