Changes

CTUpdate

716 bytes added, 19:48, 31 January 2009
Proper reboot cycles
Download it here: http://www.heise.de/ct/projekte/offlineupdate/download_uk.shtml
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. Note 2(net use x: Making proper reboot cycles etc. have not been paid attention to. CTUpdate does have functionality for resuming on reboot that is not enabled in the below setup.\\ntinstall\wpkg /PERSISTENT:no)
Then run it in order to create a repository containing the languages and systems you want, but you do NOT need to create ISO files. The repository will be placed in the client subfolder. Then copy the entire tree over to the WPKG software folder and use the following entries:
%WPKG_DRIVE%
cd %SOFTWARE%\ctupdate4\client\cmd
del %windir%\ctupdate.done
cmd /c doupdate.cmd %*
date /T > %windir%\ctupdate.done
</source>
 
For '''proper reboot cycles''' you will need to add a line to ctupdate4/client/cmd/DoUpdate.cmd. See diff: (make sure you don't add it to the SuggestRecall part)
<source lang="diff">
--- C:/Users/Kalmi/Desktop/DoUpdate.cmd Sat Sep 13 19:41:10 2008
+++ G:/wpkg/software/ctupdate4/client/cmd/DoUpdate.cmd Sat Jan 31 21:57:03 2009
@@ -736,6 +736,7 @@
echo Installation successful. Please reboot your system now.
echo %DATE% %TIME% - Info: Installation successful >>%UPDATE_LOGFILE%
echo.
+date /T > %windir%\ctupdate.done
goto EoF
:Cleanup
</source>
This will ensure that wpkg will only consider the install successful when ctupdate ends up in InstSuccess (and not in SuggestRecall). So if a restart is needed wpkg will restart(saying the the install failed, but it requires a resart, so I'm going to restart now) and try the install again...
[[Category:Silent installers for Windows Hotfixes]]
58
edits