Skip to content

Commit 8eb212d

Browse files
committed
[Fix] Fixed image edition tasks never finishing
1 parent 2b0d983 commit 8eb212d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Panels/DoWork/ProgressPanel.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5041,7 +5041,7 @@ Public Class ProgressPanel
50415041
"- New edition: " & imgEditionNewEdition & CrLf &
50425042
"- Will the EULA be copied? " & If(imgEditionCopyEula, "Yes, to the following destination: " & imgEditionEulaDestination, "No") & CrLf &
50435043
"- Will the EULA be accepted? " & If(imgEditionAcceptEula, "Yes, with the following product key: " & imgEditionEditionKey, "No") & CrLf)
5044-
CommandArgs &= If(OnlineMgmt, " /online", " /image=" & targetImage) & " /set-edition=" & imgEditionNewEdition
5044+
CommandArgs &= If(OnlineMgmt, " /online", " /image=" & targetImage) & " /norestart /set-edition=" & imgEditionNewEdition
50455045
DynaLog.LogMessage("Checking if the active installation is being managed...")
50465046
If OnlineMgmt Then
50475047
DynaLog.LogMessage("The active installation is being managed. Taking into account other settings the user may have specified...")
@@ -5076,7 +5076,7 @@ Public Class ProgressPanel
50765076
LogView.AppendText(CrLf & "Setting the new product key..." & CrLf &
50775077
"Options:" & CrLf &
50785078
"- New product key: " & pkSetNewProductKey & CrLf)
5079-
CommandArgs &= " /image=" & targetImage & " /set-productkey=" & pkSetNewProductKey
5079+
CommandArgs &= " /image=" & targetImage & " /norestart /set-productkey=" & pkSetNewProductKey
50805080
RunProcess(DismProgram, CommandArgs)
50815081
LogView.AppendText(CrLf & "Getting error level...")
50825082
If Hex(DismExitCode).Length < 8 Then

0 commit comments

Comments
 (0)