Difference between revisions of "Heise Offline-Update"
m |
(Cleaned up the script) |
||
Line 35: | Line 35: | ||
<source lang="dos"> | <source lang="dos"> | ||
@echo off | @echo off | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:: Make sure that the log directly exists and is hidden | :: Make sure that the log directly exists and is hidden | ||
Line 47: | Line 41: | ||
:: Update the system and log it | :: Update the system and log it | ||
− | cmd /c | + | pushd \\ntinstall\offlineupdate |
− | + | cmd /c cmd\DoUpdate.cmd >%SystemDrive%\netinst\wpkg\offlineupdate.log | |
− | + | popd \\ntinstall\offlineupdate | |
− | + | ||
</source> | </source> | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Revision as of 23:16, 25 November 2008
Silent installer for Heise Offline-Update.
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
:: 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
pushd \\ntinstall\offlineupdate
cmd /c cmd\DoUpdate.cmd >%SystemDrive%\netinst\wpkg\offlineupdate.log
popd \\ntinstall\offlineupdate