Method Reference (COM)
AppendImageCaptures and appends an image to an existing WIM file.
AppendImage()
Parameters
Set the following properties before calling:Source | The source folder to capture. |
Destination | The name of the WIM file to capture to. |
ImageName | Name of the image. |
Description | Description of the image. |
DisplayName | Display name of the image (used in Vista setup for display purposes). |
DisplayDescription | Display description of the image (used in Vista setup for display purposes). |
Flags | "", "Ultimate", etc. |
Check | Set to TRUE to add integrity information. |
Verify | Set to TRUE to Verify the data captured. |
Bootable | Set to TRUE to make this image bootable. |
Return Value
Success: | Returns 0. |
Failure: | Returns non-zero. |
Remarks
None.
Related
CaptureImage
Example
Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl", "objWIM_")
objWIM.Source = "c:\test"
objWIM.Destination = "test.wim"
objWIM.ImageName = "Test WIM"
objWIM.Description = "Test Description"
objWIM.DisplayName = ""
objWIM.DisplayDescription = ""
objWIM.Flags = "Ultimate"
objWIM.Check = TRUE
objWIM.Verify = TRUE
objWIM.Bootable = FALSE
objWIM.AppendImage
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