Question about cscript.js:
Should the file cscript.js which begins with
//delete ctupdate.done if a reboot is scheduled
var WshShell = WScript.CreateObject("WScript.Shell"); var fso = WScript.CreateObject("Scripting.FileSystemObject");
var ForReading = 1; var BasePath = WshShell.ExpandEnvironmentStrings("%SystemDrive%\\netinst\\wpkg\\"); var LogFilePath = BasePath + 'offlineupdate.log'; var CtupdatePath = BasePath + 'ctupdate.done'; var LastLine = ;
Actually be named ctcheck.js because that is what is referred to by offlineupdate.xml? <install cmd='cscript "%SOFTWARE%\ctcheck.js"' />
AndrewS 05:11, 21 December 2010 (CET)
there is no need to "map your repository first"
The page states:
Note 1: CTUpdate cannot be run from a non-mapped drive, so make sure you map your repository first. The bat-file below expects %WPKG_DRIVE% to be set to this drive. Alternatively, you can modify the bat-file to temporarily map the drive. (net use x: \\ntinstall\wpkg /PERSISTENT:no)
That "map your repository first" and "expects %WPKG_DRIVE%" are quite unnecessary if the .cmd were to use 'pushd' instead of 'cd'.
call \ctupdate4\client\cmd\DoUpdate.cmd %*
call and not cmd /c (as the page presently says) because DoUpdate's exit on error needs to be passed up to the wpkg.
-- 18.104.22.168 13:44, 3 July 2012 (CEST)