Difference between revisions of "Talk:Heise Offline-Update"
(Question about cscript.js) |
(→there is no need to "map your repository first": new section) |
||
Line 22: | Line 22: | ||
[[User:AndrewS|AndrewS]] 05:11, 21 December 2010 (CET) | [[User:AndrewS|AndrewS]] 05:11, 21 December 2010 (CET) | ||
+ | |||
+ | == there is no need to "map your repository first" == | ||
+ | |||
+ | The page states: | ||
+ | <div style="font-size:smaller;padding-left:2em"> | ||
+ | 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) | ||
+ | </div> | ||
+ | |||
+ | That "map your repository first" and "expects %WPKG_DRIVE%" are quite unnecessary if the .cmd were to use 'pushd' instead of 'cd'. | ||
+ | |||
+ | Like so:<br /> | ||
+ | <div style="font-family:monospace;font-size:larger;padding-left:2em;"> | ||
+ | '''pushd''' <span style="color:red">"</span>%SOFTWARE%\ctupdate4\client\cmd<span style="color:red">"</span><br /> | ||
+ | ''call'' doupdate.cmd %*<br /> | ||
+ | '''popd''' | ||
+ | </div> | ||
+ | |||
+ | -- [[Special:Contributions/79.225.9.29|79.225.9.29]] 13:44, 3 July 2012 (CEST) |
Revision as of 11:44, 3 July 2012
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%\ctupdate4\client\cmd"
call doupdate.cmd %*
popd
-- 79.225.9.29 13:44, 3 July 2012 (CEST)