Method Reference (COM)
ApplyImageApplies a WIM image to a folder.
ApplyImage()
Parameters
Set the following properties before calling:| Source | The source WIM file to apply. |
| Destination | The destination folder to apply the image to. |
| ImageIndex | The image index of the image to apply. |
| Check | Set to TRUE to check integrity information. |
| Verify | Set to TRUE to Verify the data applied. |
Return Value
| Success: | Returns 0. |
| Failure: | Returns non-zero. |
Remarks
None.
Related
AppendImage, CaptureImage
Example
Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl", "objWIM_")
objWIM.Source = "test.wim"
objWIM.Destination = "c:\test"
objWIM.ImageIndex = 1
objWIM.Check = TRUE
objWIM.Verify = TRUE
objWIM.ApplyImage
WScript.DisconnectObject objWIM
Set objWIM = Nothing
Sub objWIM_Progress(Percent, TimeRemaining)
WScript.Echo Percent & "% - " & TimeRemaining & " sec(s)"
' Abort the operation by using the line below
'objWim.Abort = TRUE
End Sub
Sub objWIM_ProgressInfo(Info)
WScript.Echo Info
End Sub