Skip to content

Commit 3517675

Browse files
committed
Remove temporary adksetup on completion
1 parent bb57dce commit 3517675

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/microwin/Invoke-MicrowinGetIso.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ function Invoke-MicrowinGetIso {
165165
$msg = "OSCDIMG is installed, now restart this process."
166166
Invoke-MicrowinBusyInfo -action "done" -message $msg # We set it to done because it immediately returns from this function
167167
[System.Windows.MessageBox]::Show($msg)
168+
Remove-Item -Path "$env:TEMP\adksetup.exe" -Force -ErrorAction SilentlyContinue
168169
return
169170
} else {
170171
[System.Windows.MessageBox]::Show("oscdimg.exe is not found on the system, winutil will now attempt do download and install it from github. This might take a long time.")

0 commit comments

Comments
 (0)