public MountedWindowsImage(DismMountedImageInfo img) { this._mountPath = img.MountPath; this._imageFilePath = img.ImageFilePath; this._imageIndex = img.ImageIndex; this._isMountedReadOnly = img.MountMode == DismMountMode.DismReadOnly; this._status = img.MountStatus; }
public WimMountedImage(DismMountedImageInfo info) { SYSTEM = new SYSTEM(_mountPath); SOFTWARE = new SOFTWARE(_mountPath); USER = new USER(_mountPath); ADMIN = new ADMIN(_mountPath); _type = Type.Mounted; _index = info.ImageIndex; _wimPath = info.ImageFilePath; _mountPath = _description = info.MountPath; _stat = info.MountStatus; GetState(); if (info.MountStatus == DismMountStatus.NeedsRemount) { DismApi.RemountImage(_mountPath); } }