Difference between revisions of "Heise Offline-Update"
(Add Heise Security's Offline Update) |
m (Fixed comments in the script) |
||
Line 34: | Line 34: | ||
@echo off | @echo off | ||
− | :: Disconnect the | + | :: Disconnect the o: drive (if connected) |
net use /delete /y o: > nul | net use /delete /y o: > nul | ||
− | :: Connect the | + | :: Connect the o: drive |
net use /y o: \\ntinstall\offlineupdate > nul | net use /y o: \\ntinstall\offlineupdate > nul | ||
Line 47: | Line 47: | ||
cmd /c o:\cmd\DoUpdate.cmd >%SystemDrive%\netinst\wpkg\offlineupdate.log | cmd /c o:\cmd\DoUpdate.cmd >%SystemDrive%\netinst\wpkg\offlineupdate.log | ||
− | :: Disconnect the | + | :: Disconnect the o: drive |
net use /delete /y o: > nul | net use /delete /y o: > nul | ||
</source> | </source> | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Revision as of 16:51, 6 June 2008
Download the Offline-Update scripts. Run the downloader and select the products you want updates for. One note: if you're using the Compatibility Pack for the 2007 Office System then download the updates for Office 2007. Those patch the Compatibility Pack as well as Office 2007.
Once all of the downloads are complete copy the contents of the "client" folder to your server. These scripts assume the share name is "offlineupdate" and the server name is "ntinstall". You also need "rm.exe" and "mkdir.exe" from GnuWin32 in your "tools" folder.
Note: I increment the revision each Patch Tuesday. If you want this to run every time wpkg is run add 'execute="always"' to the package tag and disable the reboot.
offlineupdate.xml:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="offlineupdate"
name="offlineupdate"
revision="200805131"
reboot="true"
priority="0">
<check type="file" condition="exists" path="%SystemDrive%\netinst\wpkg\offlineupdate.log" />
<install cmd='cmd /c %WPKGROOT%\scripts\offlineupdate.cmd' />
<upgrade cmd='cmd /c %WPKGROOT%\scripts\offlineupdate.cmd' />
<remove cmd='cmd /c %WPKGROOT%\tools\rm.exe -f "%SystemDrive%\netinst\wpkg\offlineupdate.log"' />
</package>
</packages>
offlineupdate.cmd:
@echo off
:: Disconnect the o: drive (if connected)
net use /delete /y o: > nul
:: Connect the o: drive
net use /y o: \\ntinstall\offlineupdate > nul
:: Make sure that the log directly exists and is hidden
%WPKGROOT%\tools\mkdir.exe -p %SystemDrive%\netinst\wpkg
attrib +H %SystemDrive%\netinst
:: Update the system and log it
cmd /c o:\cmd\DoUpdate.cmd >%SystemDrive%\netinst\wpkg\offlineupdate.log
:: Disconnect the o: drive
net use /delete /y o: > nul