Talk:Heise Offline-Update

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Question about cscript.js:

Should the file cscript.js which begins with

cscript.js:

//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'.

Like so:

pushd "%SOFTWARE%"
call \ctupdate4\client\cmd\DoUpdate.cmd %*
popd

call and not cmd /c (as the page presently says) because DoUpdate's exit on error needs to be passed up to the wpkg.

-- 79.225.9.29 13:44, 3 July 2012 (CEST)