[attachment=1923:WIMGAPI_1.0.7z]
WIMGAPI Module v1.0
The places where you see the number 1, that is the image index.
Mount Image
If CWIM_MountImage(1,"C:\Wimfile.wim","C:\MountPath") = true then
'DO THIS
else
'MSGBOX("There was an error mounting this image")
end ifUnMount ImageIf CWIM_UnMountImage(1,"C:\Wimfile.wim","C:\MountPath",True) = true then
'DO THIS
else
'MSGBOX("There was an error unmounting this image")
end ifDelete ImageCWIM_DeleteImage("C:\WimFile.wim",1)GetWIMInfoDim WImInfo = CWIM_GetWimInfo("C:\Wimfile.wim")Capture ImageCWIM_CaptureImage("C:\FolderToCapture","C:\NewWim.wim",WIM_COMPRESS_LZX,"C:\Temp")Export ImageCWIM_ExportImage("C:\OriginalWim.wim","C:\ExportedWim.wim",1,"C:\Temp")













