I‘ve set the same name for all objects and directory names “ImageDeploy” just to simplify, when splitting the WIM file use the same filename in the prefix so the modified script can use the split files.
-
Backup and modify “Drive:\Distribution\Scripts\LTIApply.wsf” as shown at the bottom of this page .
-
Split the WMI file: imagex.exe /check /split ImageDeploy.wim ImageDeploy.swm 4000
-
Create a Operataing System as Custom Image file and choose the captured WIM file.
-
Replace the WIM file with the SWM files in "Drive:\Distribution\Operating Systems\ImageDeploy"
-
Create a new build
-
Create a new Deployment point as Removable media
-
Perform "Update (files only)" the deployment point
-
Make sure the old WIM file can not be found in either "Drive:\Distribution\Operating Systems\ImageDeploy" or "Drive:\<ImageDeploy>\Content\Deploy\Operating Systems\<ImageDeploy>"
-
Perform "Update" the deployment point to generate the ISO file
Note that this only applies to XP images, Vista is handled differently in the script and I may work on that later.
Also keep this in mind when applying XP images using BDD 2007:
http://www.deployvista.com/Blog/tabid/70/EntryID/17/Default.aspx
LTIApply.wsf changes:
Locate lines 551, 555 and 578 for modifications,
'Lalli, added splitfile detection
If not oFSO.FileExists(sImagePath) then
if not oFSO.FileExists(Left(sImagePath, Len(sImagePath)-4) & ".swm") then
oUtility.ValidateConnection sImagePath
End if
End if
'Lalli, added splitfile detection
If not oFSO.FileExists(sImagePath) then
If not oFSO.FileExists(Left(sImagePath, Len(sImagePath)-4) & ".swm") then
oLogging.CreateEntry "Image file " & sImagePath & " does not exist, aborting", LogTypeError
ApplyImage = Failure
Exit Function
End if
End if
' Clean off old OS if running in PE
If oEnvironment.Item("OSVersion") = "WinPE" then
CleanDrive
End if
' Apply the new image
iRc = oUtility.FindFile("imagex.exe", sImageX)
If iRc <> Success then
oLogging.CreateEntry "ERROR: Unable to find ImageX", LogTypeError
ApplyImage = Failure
Exit Function
End if
'Lalli, added splitfile detection
If oFSO.FileExists(Left(sImagePath, Len(sImagePath)-4) & ".swm") then
sCmd = "cmd /c """"" & sImageX & """ /ref """ & Left(sImagePath, Len(sImagePath)-4) & "*.swm" & """ /apply """ & Left(sImagePath, Len(sImagePath)-4) & ".swm" & """ " & sImageIndex & " C:\ >> " & oUtility.LogPath & "\LTIApply_imagex.log 2>&1"""
Else
sCmd = "cmd /c """"" & sImageX & """ /apply """ & sImagePath & """ " & sImageIndex & " C:\ >> " & oUtility.LogPath & "\LTIApply_imagex.log 2>&1"""
End if