@@ -5493,15 +5493,17 @@ Public Class ProgressPanel
5493
5493
"- Unattended answer file: " & UnattendedFile)
5494
5494
Try
5495
5495
DynaLog.LogMessage( "Copying unattended answer file to the Panther directory of the Windows image..." )
5496
- If Not Directory.Exists(Path.Combine(targetImage , "Windows" , "Panther" )) Then
5497
- Directory.CreateDirectory(Path.Combine(targetImage , "Windows" , "Panther" ))
5496
+ If Not Directory.Exists(Path.Combine(MountDir , "Windows" , "Panther" )) Then
5497
+ Directory.CreateDirectory(Path.Combine(MountDir , "Windows" , "Panther" ))
5498
5498
End If
5499
- File.Copy(UnattendedFile, Path.Combine(targetImage , "Windows" , "Panther" , "unattend.xml" ))
5499
+ File.Copy(UnattendedFile, Path.Combine(MountDir , "Windows" , "Panther" , "unattend.xml" ), True )
5500
5500
DynaLog.LogMessage( "Copying unattended answer file to the System32 directory of the Windows image..." )
5501
- If Not Directory.Exists(Path.Combine(targetImage , "Windows" , "system32" , "Sysprep" )) Then
5502
- Directory.CreateDirectory(Path.Combine(targetImage , "Windows" , "system32" , "Sysprep" ))
5501
+ If Not Directory.Exists(Path.Combine(MountDir , "Windows" , "system32" , "Sysprep" )) Then
5502
+ Directory.CreateDirectory(Path.Combine(MountDir , "Windows" , "system32" , "Sysprep" ))
5503
5503
End If
5504
- File.Copy(UnattendedFile, Path.Combine(targetImage, "Windows" , "system32" , "sysprep" , "unattend.xml" ))
5504
+ File.Copy(UnattendedFile, Path.Combine(MountDir, "Windows" , "system32" , "sysprep" , "unattend.xml" ), True )
5505
+ GetErrorCode( True )
5506
+ Exit Sub
5505
5507
Catch ex As Exception
5506
5508
DynaLog.LogMessage( "Could not copy unattended answer file to targets. Error message: " & ex.Message)
5507
5509
CommandArgs &= If (OnlineMgmt, " /online" , " /image=" & targetImage) & " /apply-unattend=" & Quote & UnattendedFile & Quote
0 commit comments