Difference between revisions of "Talk:Heise Offline-Update"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(there is no need to "map your repository first": new section)
(there is no need to "map your repository first")
Line 34: Line 34:
 
Like so:<br />
 
Like so:<br />
 
<div style="font-family:monospace;font-size:larger;padding-left:2em;">
 
<div style="font-family:monospace;font-size:larger;padding-left:2em;">
'''pushd''' <span style="color:red">&quot;</span>%SOFTWARE%\ctupdate4\client\cmd<span style="color:red">&quot;</span><br />
+
'''pushd''' <span style="color:red">&quot;</span>%SOFTWARE%<span style="color:red">&quot;</span><br />
''call'' doupdate.cmd %*<br />
+
''call'' \ctupdate4\client\cmd\DoUpdate.cmd %*<br />
 
'''popd'''
 
'''popd'''
 
</div>
 
</div>
  
 
-- [[Special:Contributions/79.225.9.29|79.225.9.29]] 13:44, 3 July 2012 (CEST)
 
-- [[Special:Contributions/79.225.9.29|79.225.9.29]] 13:44, 3 July 2012 (CEST)

Revision as of 11:48, 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%"
call \ctupdate4\client\cmd\DoUpdate.cmd %*
popd

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