Save this as copyI368.au3 and compile it with AutoIt 3 (http://www.autoitscript.com/). Now you'll have copyI386.exe. You can of course name it whatever you want. Also add it to GUIRunOnce/RunOnceEx/XPlode/WPI to execute it, or whatever you're using of course.
local $possibleDriveletters[24] = ["c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
local $set_driveLetter
; find drive letter
for $i=0 to uBound($possibleDriveletters)-1
if fileExists($possibleDriveletters[$i] & ":\I386") then
$set_driveLetter = $possibleDriveletters[$i] & ":"
exitLoop
endIf
next
; copy I386\* directory to %systemroot%\source\I386\*
dirCopy($set_driveLetter & "\I386", @windowsDir & "\source\I386")
; update the
regWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "SourcePath", "REG_SZ", @windowsDir & "\source\I386")
regWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup", "SourcePath", "REG_SZ", @windowsDir & "\source")
That should do the job!
Founder of DriverPacks.net —
wimleers.com