Skip to content

Commit 50c4398

Browse files
create log file on iso generation
1 parent ed5ec52 commit 50c4398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

functions/private/Invoke-WinUtilISO.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ function Invoke-WinUtilISOModify {
261261
$sync["WPFWin11ISOStatusLog"].CaretIndex = $sync["WPFWin11ISOStatusLog"].Text.Length
262262
$sync["WPFWin11ISOStatusLog"].ScrollToEnd()
263263
})
264+
Add-Content -Path (Join-Path $workDir "WinUtil_Win11ISO.log") -Value "[$ts] $msg" -ErrorAction SilentlyContinue
264265
}
265266

266267
function SetProgress($label, $pct) {
@@ -534,6 +535,7 @@ function Invoke-WinUtilISOCleanAndReset {
534535
$sync["WPFWin11ISOStatusLog"].CaretIndex = $sync["WPFWin11ISOStatusLog"].Text.Length
535536
$sync["WPFWin11ISOStatusLog"].ScrollToEnd()
536537
})
538+
Add-Content -Path (Join-Path $workDir "WinUtil_Win11ISO.log") -Value "[$ts] $msg" -ErrorAction SilentlyContinue
537539
}
538540
function SetProgress($label, $pct) {
539541
$sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{

0 commit comments

Comments
 (0)