InstallationLogHelper

Copy Windows install logs (applied image + WinPE) to USB before reboot (WinPE flow). Layout: {usbRoot}\NETSetup\Logs\LastWindowsInstallation\{W|X}\Windows\.... Folder emptied first → holds last installation only.

public static class InstallationLogHelper

1. Methods

1.1. BuildLastInstallationLogsDir(AbsolutePath)

Build {usbRoot}\NETSetup\Logs\LastWindowsInstallation.

public static AbsolutePath BuildLastInstallationLogsDir(AbsolutePath usbRoot)
Table 1. Parameters
Name Type Description

usbRoot

AbsolutePath

Returns: AbsolutePath

1.2. CopyLastInstallationLogs(ISystemHost, AbsolutePath, AbsolutePath)

Empty NETSetup.Helpers.InstallationLogHelper.BuildLastInstallationLogsDir(AbsolutePath), copy logs of appliedWindowsRoot + WinPE. Missing files skipped. Non-fatal: any error → warning, install continues.

public static void CopyLastInstallationLogs(ISystemHost host, AbsolutePath appliedWindowsRoot, AbsolutePath usbRoot)
Table 2. Parameters
Name Type Description

host

ISystemHost

appliedWindowsRoot

AbsolutePath

usbRoot

AbsolutePath